Minor modes
Spec
With spec on, the agent works from the project's spec. It reads the claims a task touches before coding, and proposes changes to them in drafts that become official when its branch lands.
The project’s spec
A project’s spec is its documentation of what the product does, kept in the repository under
.sova/spec/: Markdown files that state the claims, and a record of each claim in a small file
beside its Markdown file (an older spec may keep every record in one manifest.json; the tools read
both, and one command converts it). A
claim is one promise about the product, listed with the files that implement it and labels saying
how far it has been checked. A project with no spec yet can start one: the agent begins it in a
draft.
Spec is a minor mode: turn it on in the chat’s mode menu (see Modes), in either major mode. While it’s on, the agent follows a guide in two parts. A short finding-your-way part rides every turn. The writing procedure (drafts, agreement, evidence, promotion) reaches the agent once, when it starts to change what the product does.
Finding its way
The short part has the agent:
- Search the spec with a few words of the task, a file or a name, and use the spec’s map when that finds nothing.
- Read the claims that fit, look at their neighbours, and check what relies on a claim it will change. A link it didn’t read is unread, never absent.
- Check each claim against the code it lists: a claim’s labels are not proof, and where a claim and the code disagree, it says so.
- Name the file or commit behind every finding, and report on the product, not on the spec procedure.
In Sova the agent does these look-ups with its spec tool, which every chat you code in and every
worker but a team’s monitor has, whether or not spec is on. The tool only reads: the project’s spec or
one of its drafts, in the chat’s own folder or a worktree it tracks. In a project with no spec it
answers “This project has no spec here.” For a folder that doesn’t exist it answers with an error
saying so.
The spec tools a chat and its workers run, for look-ups and drafts alike, are the ones of the copy of Sova that runs that chat, and the merge queue and releases use the running Sova’s own, so a link in your pi folder into an older copy of Sova never changes them. A pi terminal, and a chat on a remote machine, use the tools installed in their own agent folder.
Before coding
Before its first edit that changes what the product does, the agent reads the writing procedure. If it hasn’t read it by then, the procedure arrives once on its own, with the first spec note after an edit or with your go-ahead on an alignment. After the chat is compacted it arrives again. It never changes the chat’s instructions, so a Claude Code chat doesn’t restart for it.
The procedure has the agent read the claims the task touches, one passage at a time. It then proposes the change to the spec in a draft, kept apart from the current spec, writing the new promise before the code. A change reaches the spec only when it is promoted.
While coding
After a tool call that brings new changed files, the agent gets a short [spec census] note on
that tool result. It says how many changed files the spec covers and how many no claim covers yet,
and names the new ones. Read-only tools don’t trigger it.
If the change contradicts a claim that existed before the task, or changes what a user sees beyond it, the agent updates that claim in the task’s draft without asking: your go-ahead for the task covers it. Its reply lists each one as “Also updates {claim}: {what}”.
With align on too
When you confirm an alignment, that go-ahead is also your agreement to the promises it decides. Before it builds anything, the agent writes each decision that changes behavior as a promise in a draft and stamps it with who agreed and when, marked agreed, not built; the promises become official when the branch lands. If the agent hasn’t been given the writing procedure yet, it comes with that go-ahead. The build then updates those same promises. If a later change edits the numbers or names in a promise you agreed to without a new agreement, promotion points it out.
Finishing
Once the agent stops editing, its next tool call carries one more line, the unread line. It names the claims the agent’s own changed files land in that the agent hasn’t read yet, ranked by the names, strings and numbers in the lines it changed, with a claim that only shares a broad file with many others ranked lower: at most ten are marked read first, and the rest are left to the one command that lists them, uncounted, so the line asks only for the ones it names. A claim that still states a value the change removed (say, “12 MB” after a limit went to 16 MB) says so and is always marked read first. The agent reads the ones marked first. The line comes once, and again only when a later edit lands in other claims.
When the work is done, the agent checks each promise it changed against what it built and records a short note on what it checked. Its drafts become official when its branch lands: after the landing’s checks pass, the landing makes every draft on the branch official in one step and commits that with the code, so the docs land in the same merge as the code they describe, and there is no second, docs-only merge. Drafts that wouldn’t fit (a promise with no note, or one that changed on the default branch since) hold the branch and go back to its chat, which fixes them without a new commit. The merge queue makes them official in its merge copy before its checks run, so the docs that land were tested; pressing Land never records you as agreeing to them. Where nothing lands branches, the agent runs that one step itself before its last commit. A draft whose branch already landed without it lands with a fresh branch from the default branch, never on the default branch itself.
A turn with spec on ends when the model stops, as one with spec off does. Nothing re-prompts it, and the “Also updates” line is the only spec line a reply carries; nothing checks it.
The tools check structure: that a claim exists, maps to files and is labelled. No check proves a claim is true. That is still a reading of the code.
The spec writer
A chat’s profile can name a spec writer: a helper that writes the spec drafts while spec is on, so the main model doesn’t have to. Set it in the profile’s Spec writer row (“Use a spec writer while spec is on”). The gear on spec’s row in the mode menu opens that row for the profile this chat’s helpers run on. With none, the session writes the spec itself. Without a fallback, if the writer can’t run, the session writes it too.
What workers get
Spec is the one minor mode that reaches workers. While it’s on, every worker the chat starts gets the same short part and a short note. A worker that writes code also gets the writing procedure once, with its first spec note, its own duties first. A worker whose instructions don’t carry the guide gets a brief quoting the rules from both parts. The note says:
- its brief is its go-ahead;
- it works in the draft its brief names, or says which one it started;
- it doesn’t commit unless its brief says so, and then only on its brief’s branch, never by landing on the default branch; its notes on what it verified go in its draft, which lands with the branch;
- its final report lists each claim it updated that existed before the task.
When a worker that wrote code finishes, its summary carries one line naming the claims its changes landed in, and the changed files no claim covers.
A worker gets the modes its parent has when it starts, so turning spec on or off later doesn’t reach a worker that’s already running. A team’s monitor gets no guide. A worker that runs on its worktree’s own agent folder has spec only while its parent has it on, too.
Project coding sessions
A project has no coding-mode setting of its own: its coding sessions start in this computer’s default mode, the one the default profile starts in (Update {name} in a chat’s mode menu saves it), and the project page names it. A coding session has spec only when that default does, and you or an Overseer can turn it on or off in a running session, as in any chat.