Features
Worktrees and changes
A session keeps track of the git worktrees it works in, and you read what changed as numbered steps.
You manage the list by asking the agent, workers start only where it allows, and a branch reaches your main branch through the project’s merge queue when you press Land or type “land it”. The diff opens in a read-only viewer.
It works the same in pi’s terminal UI and in Sova.
Ask the agent
There’s no button and no command for worktrees: you ask the agent, and it uses its worktree tool. It can:
- Create a worktree on a new branch,
feat/<name>. By default the folder is.worktrees/<repo>-<name>beside your main checkout, based on the commit your session’s folder is on. That branch is kept as the worktree’s base branch: when a merge happens outside the tool, it’s the first place Sova looks for the worktree’s commits. - Attach a worktree that already exists, including one another session created. It has to be the worktree’s top folder, on a branch.
- Detach a worktree. It’s marked dropped and stays in the list as history. Nothing is deleted on disk.
- Merge a worktree’s branch into its target,
master(ormainin a repository withoutmaster) unless you name another, whatever branch the worktree was based on. Where the target is checked out, that checkout must have no uncommitted changes to tracked files. Git fast-forwards when it can and makes a merge commit when it can’t. A conflict stops the merge and is reported, and nothing changes. Where the target isn’t checked out, only a fast-forward is done. In a project whose merge queue is set up, a merge into the main branch is refused: branches reach it only through the queue. - Land a branch when you type “land it” (or “merge it”) in its own chat. The agent commits what’s left and lands the branch at its head commit: through the merge queue where the project has one, else as a plain merge into the main branch. Only your own typed words count; a message the Overseer or another session sent never does. “land it without its specs” and “land it, skip review” are taken as said.
- List the worktrees with their status.
Only the session’s own agent has this tool. Workers and team members never do, and a session whose tools run on a remote target refuses it.
With the session’s sandbox on, the agent asks you before it creates, attaches, or merges (a plain merge by “land it” included), naming the path and the branch. If you decline, nothing changes. While the sandbox is on, every active worktree is a folder the session and its workers may write to.
Where workers may start
A worker may start only in the session’s own folder (or a folder inside it), or inside one of the session’s active worktrees. Any other folder is refused, and the refusal names the session’s worktrees. This applies to single workers, team members, and resumed workers alike, on pi and on Claude Code.
A worker started inside a worktree, pi or Claude Code, writes only inside that worktree unless the session’s sandbox is Off. Under Subagents only, the default, it can still read the rest of your machine, but its writes go only to the worktree, its own scratch space (a private /tmp on Linux) and its chat’s shared folder, where a chat, its workers and its teams leave briefs, reports and handover notes for each other.
A fork of a session starts with the same worktree list. A worktree that came from another session says so in the Session tab.
A chat working in a worktree reads that worktree’s own project modes, the ones on its branch, not your main checkout’s.
The Worktrees section
Open the session pane and its Session tab. Right after Repository, Worktrees lists every worktree the session tracks, dropped and merged ones included, with a count line such as “2 active · 1 merged”. Each row names the branch and the folder, and has a status chip: Active, Dropped, or Merged “into master at 4ef9f18”. A worktree whose folder is gone never reads Active: it reads Landed, with “Landed · cleaned up”, when its work is in the branch the project lands on, and Removed when it isn’t, such as “Removed · not merged”.
A worktree the session created or attached also gets a readiness chip, worked out from git with no model call:
| Chip | Means |
|---|---|
| Ready | Truly ready to land: at least 1 commit ahead, and nothing below holds it back. In a project with no merge queue it reads Ready to merge. A branch with real work that isn’t ready says its own state and keeps Land. |
| Waiting for your OK | Ready, and the session’s last reply asks you something, like whether to merge. |
| In progress | A turn or a worker is running, it has 3 or more uncommitted files, it has no commits yet, it conflicts with its base (not in a project the merge queue serves: there Land queues it and the merge thread settles the conflict), a commit on it is marked unfinished (WIP, TEMP, fixup! and the like), or the last test, typecheck, or build failed. |
| Blocked | The session waits on your answers to open questions. |
| Stale | Merged, but the folder has uncommitted changes and nothing is running. |
| Drafts to land | Its code has landed but some spec drafts haven’t, such as “Code landed · 2 spec drafts not landed”. Land lands just the drafts. |
Each row also has a line naming the branch’s project and where it merges, such as “AmalMoney · merges into master”; it unfolds to the exact folders. Under the chips, one line gives the reason in words, such as “Ready to land · 19 commits ahead · docs: 2 new, 1 changed” or “Conflicts with master · 17 files”. It wraps on a phone instead of hiding behind a tooltip.
Once a branch is in the merge queue, its chip reads the queue’s state instead: Queued · 2nd (with when it starts and how long it takes), Checking, Conflict, Approved · waiting for a fix, Back with the chat (with its try, “try 2 of 3”, and the chat’s answer), Waiting for the merge thread, Paused: you stopped the chat, Behaviour differs, Needs you, Can’t tell whose failure, Out of tries, Drafts changed, or Landed with its commit and notes. “1 newer commit not included” shows on a landed branch you’ve worked on since. Your Land stands while the branch’s chat fixes it: no row offers a Send Back or a second Land for its fixes. Each row has the action its state calls for: Land (with Land Without Review and Land Without Its Specs… in its menu), the answers of a decision that waits for you (Accept, Land Anyway, Try Again, Land, and Answer in Chat, which puts you in the chat’s message box), Remove from Queue at every stage of the queue, and Review Changes first. While the queue’s review of the branch runs, the row shows it with Open Reviewer Chat. View Merge Queue opens the project’s queue.
The same rows, actions and states are in the composer’s worktrees control, beside “N inputs”: it shows the most useful fact with a count, such as “2 ready” or “1 needs a fix”, and opens a Worktrees dialog. In a project whose queue isn’t set up yet, a ready row offers Set Up Queue instead of Land, and the line says to type “land it” in the chat to merge it.
A card for each merge
When the session merges a worktree, with the tool or with plain git during one of its turns, a merge card lands in the transcript. It shows the folder, the branch, the target branch, the resulting commit, how many commits and lines came in, and whether it was a fast-forward or a merge commit. A merge spotted after a turn says “seen after the turn”. A merge another session made gets no card here, though the Session tab still shows that worktree as merged. A branch that lands through the merge queue gets the queue’s own card in its chat instead.
Removing finished worktrees
Automatic cleanup ships switched off for now, so Sova doesn’t remove a worktree of yours on its own; it removes only the scratch copies the merge queue makes for a conflict, once that attempt ends. The worktree tool’s merge and the merge queue’s landing both leave the folder in place. A new session’s empty screen ends with a plain line about its repository, such as “160 worktrees · 3 retired”, with nothing to press.
A finished worktree (nothing of its own left to land, or no commits of its own) offers Remove Worktree, last among its row’s actions. It asks once, in the same place as Land: “Remove {branch}?”, saying the folder goes and whether its branch goes too or stays, as the project’s Delete branches when cleaning up says (off by default, in Merge queue settings). Its last commit stays, and Restore brings it back. When the Overseer archives a session, it can remove that session’s own finished worktrees too, through the same step.
To throw away a branch you won’t land, use Discard Branch…, the last item of the Land ▾ menu. It lists what goes first (commits the target doesn’t have, files, drafts, the folder and the chats idle in it, which are archived), keeps no backup, and deletes the branch at the tip you saw.
Git’s own remove would delete every ignored file and every repository nested in the folder without asking, so Sova reads what a worktree holds first, wherever it removes one. A folder stays when it holds something git can’t bring back: an uncommitted file, an ignored file that can’t be rebuilt (folders such as node_modules, dist or build can be, and go with it), or a nested repository or worktree. It stays too when Sova couldn’t read it all. Its row says what it holds and offers Remove Anyway, which first lists exactly what goes and starts on Back. Sova runs every check again and removes it only if what it holds is still what you confirmed.
Reviewing what changed
The changes viewer shows what a session changed on disk. It only reads: it never writes to your working tree and never runs a git command that changes anything. It shows one comparison: the session’s uncommitted changes, a worktree’s branch, or one commit. It opens from these places:
- The Session tab: Review Changes beside “Uncommitted changes” shows them against your last commit, and Review Changes on an active worktree’s row shows its branch as it is now against the branch it lands on (or, once merged, what the merge brought in). The worktree’s uncommitted files are included and marked “uncommitted”, and the counts say how many, since Land takes commits only.
- The composer’s Worktrees dialog: each live row’s Review Changes, the same comparison. Closing the viewer leaves the dialog open.
- The project’s Merge Queue view: every row’s Review Changes, such as a queued branch’s approved commit, or what a landing brought in.
- A merge card’s Review Changes, for what that merge brought in.
- The agent’s
show_changescard. Ask the agent to show you the changes and it opens the viewer instead of pasting a diff, and replies in a sentence or two.
The change as steps
The viewer tells the diff as numbered steps. Every hunk lands in exactly one step, or under Other changes, which comes last. A hunk is never split between steps.
When the agent calls show_changes, it writes the steps itself: a title, an optional line on why, and the hunks each one holds. It can’t leave a hunk out. A diff with more than one hunk is refused without steps, and so are steps that leave a hunk unplaced or only name hunks an earlier step already holds; the refusal lists what’s still missing so the agent can fix it in one retry. A change of more than 3,000 files is refused too, and the agent narrows it to the paths you care about.
Without the agent’s steps, each turn that edited files is a step, titled from the message that started it. Edits made by hand or by another session go under Other changes.
A file that was only renamed, only had its mode changed, or was added empty has no lines to show. It still counts as one change, listed in its step as “renamed, no line changes”, “mode changed, no line changes” or “empty file”.
Empty steps. If one of the agent’s steps ends up with nothing to show, it keeps its number and its place, greyed, with the reason under its title: an earlier step already holds those changes, or they’re no longer in the diff (an older card, or uncommitted work that changed since). No later step is renumbered.
Commits. On a branch or a merge, Sova works out from git history which commits each step’s changes came from. The steps list shows them under each step, as “a1b2c3d · 1 commit” or “a1b2c3d → e4f5a6b · 3 commits”, oldest first. The open step has a From 3 commits row, collapsed until you open it, which lists each commit with its short id, subject and how long ago it was made. Uncommitted changes have no commits, and a single commit’s view names its commit in the header instead. If the history can’t be read in time, the row says “commits unknown” and the diff still shows.
The agent’s card. The show_changes card appears as soon as the call finishes, while the agent is still replying. A branch card opens on exactly the diff the agent showed you, even after the branch moves on; a card for uncommitted changes shows what’s on disk now. A card the agent limited to some paths opens limited to the same paths.
Reading the diff
The left pane holds a file tree above the steps; the right pane shows one file or one step. Pick a file to see its whole diff, with each hunk headed by the step that made it. Pick a step to see its hunks across files. You can mark a file Viewed while the viewer is open, and hide the left pane to give the diff the whole width.
- Unified or Split. Unified is the default. Split puts the old side beside the new one when the pane is wide enough.
- Folds. Unchanged lines between hunks fold to “⋯ Show n unchanged lines”, which opens them in place.
- Keys. With the diff focused,
ngoes to the next hunk andpto the previous one. - Big files. A file with more than 1,500 changed lines waits behind a Load Diff button.
- On a phone. The list and the diff become two views, with Back between them, and the diff is Unified.
Edits and writes in the transcript use the same diff: an edit or write tool card shows what it changed, with its “+n −m” count on the closed row.