Worker worktrees
An orchestration worker runs in its own checkout.baton/<short-run>/<task-slug>. Two workers can edit the same file without colliding, and a reviewer can read a clean diff against the source branch. A worker that changes files commits as baton worker: <title>.
Thread worktrees
/worktree starts a thread in a new worktree instead of the current checkout.
- If the source checkout is clean, Baton creates the worktree and opens the thread there.
- If the source checkout has uncommitted changes, Baton asks first. Enter snapshots tracked and untracked files that are not ignored into the new worktree.
sruns one harness in the live checkout instead. Esc cancels.
/task <number> creates a worktree for a GitHub issue. Without a number it loads open issues, and it prints a clear notice when it cannot read them.
Share large directories
Build output and dependency caches do not need a copy per worktree. Addbaton.json to the repository root.
Checkpoints
A checkpoint is a hidden git ref that captures the working tree at a turn boundary./checkpointslists the points for the thread./diffshows a checkpoint against the working tree./reviewreads the latest turn diff and attaches notes to changed lines./rewindmoves the conversation back and restores the files when the checkout is safe to restore.baton restore <thread> <turn>does the same from a shell, and--forceallows a dirty linked worktree.
--force, and it refuses to overwrite a worktree that another thread is using. It never deletes a checkpoint, so a failed restore leaves the conversation and files as they were.
Next
Recover work
Rewind, retry, and restore with the guards that keep them safe.
Ship from the terminal
Commit, push, and open a pull request.