Git worktree per agent
A git worktree per agent gives each coding agent its own checkout and branch from one repository, so parallel runs cannot clobber each other. rev0 creates the worktree for every ticket automatically, on a branch named agent/ticket-id, and lets you delete it once the ticket is merged.
How it works
- Create a ticket in a git repo. rev0 makes the branch and a sibling worktree directory.
- The agent works there and rev0 commits after every run.
- Pick a base branch per ticket, or let rev0 detect it.
- After the merge, delete the worktree from the ticket.
In the docs
Questions
Where do the worktrees live?
In a sibling directory named after the repo with .agent_worktrees added, or in the folder you set with REV0_WORKTREE_ROOT.
What if the folder is not a git repo?
Tickets in the same non git folder run one at a time, since they cannot be isolated.
Browse the rev0 docs or compare rev0 with other tools.