Orca and parallel agents
Two agents in one folder edit the same files at the same time. A git worktree each fixes that, and Orca manages the worktrees for you.
Worktrees
A git worktree is a second checkout of the same repository, in its own folder, on its own branch. Agents in different worktrees can't overwrite each other's work, and each result arrives as a branch you can review and merge.
The cycle
# 1. Hand a task to an agent in a new worktreeorca worktree create --name fix-total --agent codex \--prompt "Fix the total bug in @src/cart.ts. Add a test and run it."# 2. See every agent at a glanceorca worktree ps# 3. Read what one of them didorca terminal read --terminal term-fix-total# 4. Tell the team where it standsorca worktree set --worktree fix-total --workspace-status in-review --comment "fix ready, tests pass"# 5. Bring the work into maingit merge fix-total
orca terminal send --terminal <handle> --text "..." --enter sends a follow-up prompt to an agent that's already running. In the real app, terminal handles come from orca terminal list; in the simulator they look like term-<worktree>.
Splitting work so nobody collides
Give each agent a task that touches different files. Prices in src/price.ts and the cart total in src/cart.ts merge cleanly. Two agents both editing src/cart.ts produce a merge conflict for the second one.
Shared rules matter more here: every worktree gets a copy of AGENTS.md, so every agent tests the same way and follows the same conventions.
Statuses
todo, in-progress, in-review and completed show on each worktree's card in Orca, with your comment underneath. Keep the comment to one line about where things stand.