A practical guide to worktrees, parallel tasks, and reviewing agent work
The problem of coding with AI is no longer just finding a capable agent. It's being able to get multiple agents working on the same project without turning the repository into a crossroads of modifications, terminals and conversations that are difficult to reconstruct.
Orca tries to solve this very problem. It is a desktop environment for orchestrating coding agents: it organizes repositories, terminals, browsers, diffs and sessions in a single application. It is not an AI model and does not replace Git. It connects to the CLI agents you already use, such as Claude Code, Codex, Cursor CLI, and others, and creates a separate Git worktree for each task.
The distinction is important: Orca doesn't write the software for you. It helps you organize the work of the tools that write it.
The worktree is the work unit
A worktree is a working directory linked to the same Git repository, but with its own files and branches. In Orca each task can therefore have its own space, its own agent and its own diff. Two agents working on different worktrees do not overwrite each other while modifying files.
This changes the way you use agents. Instead of opening three chats on the same checkout and hoping the changes coexist, you create a distinct environment for each activity. When the work is ready, the results are compared and a decision is made on what to integrate.
Orca also brings together terminals, editors, browsers and review tools in this view. You can monitor agents, inspect diffs and, if necessary, comment on a change asking the agent to correct it. The expected cycle is simple: create the worktree, work, review, integrate.
How to use it productively
The temptation is to launch agents in parallel on any request. That's not always a good idea: if the task is small or ambiguous, you multiply costs and results to control without really speeding up the work.
A more disciplined flow starts with a question: Can this activity be split or compared without tight dependencies?
1. Choose a narrow outcome
“Fix the app” is not a task. “Fix the case where login sends two competing requests and add a test that reproduces the problem” is much more so.
Write first the expected result, the files or behaviors involved, what the agent should not change, and the test command to execute. A clear boundary makes both the agent's job and subsequent review easier.
2. Create a worktree for each independent task
Add the repository to Orca and create a workspace with a recognizable name, for example fix-login-race or add-export-csv. Each workspace starts from a specific branch or commit and maintains its own checkout.
This is useful for tasks that can proceed separately: a fix and related testing, an independent migration, or two alternative approaches to the same bug.
3. Use multiple agents when you want to compare alternatives
For an uncertain problem, you can launch the same prompt on two or three worktrees, even with different agents. The comparison is more interesting when you ask for autonomous solutions to the same problem: not three agents modifying the same folder, but three isolable and comparable proposals.
For different tasks, instead assign each agent a distinct, non-overlapping goal. If two tasks depend on the same interface or files, define the contract first or do them sequentially. Parallelism without coordination shifts the time saved to conflict resolution.
4. Give everyone the same acceptance criteria
An action prompt can look like this:
Obiettivo: correggere la condizione di gara nel flusso di login.
Contesto: il problema si manifesta quando due richieste arrivano insieme.
Vincoli: non cambiare il contratto pubblico né il comportamento dei login normali.
Verifica: aggiungi un test riproducibile ed esegui il test mirato.
Consegna: riassumi i file modificati, le decisioni prese e i test eseguiti.
Non fare commit o push.When comparing multiple agents, keeping the goal and criteria the same avoids rewarding a response just because it interpreted the problem more permissively.
5. Review the diff, not the agent's confident tone
Open the diff view of each worktree. Check whether the change fixes the cause of the problem, whether it introduces unsolicited changes and whether the tests really cover the case. The agent can help you write code and comment on changes; the decision to integrate remains yours.
If an approach is promising but incomplete, use the diff comments to ask for a timely correction. Then rerun the tests and check the new diff, not just the final message.
6. Integrate one result at a time
Choose the best solution, test the project and integrate the selected branch. Only after verifying the result do you delete or archive the worktrees that are not needed. The task view helps you orient yourself, but it does not replace the responsibility of understanding what will go into the main branch.
A caution to be set immediately
The Orca documentation reports that CLI agent sessions can be started with flags that skip default confirmations or approvals. To change the behavior, in the settings you can choose Manual mode for non-custom CLI agent launches.
A worktree separates files and branches, but should not automatically be considered a security sandbox for your computer, credentials, or network. Before entrusting a task to an agent, check the permissions with which it starts, avoid exposing unnecessary secrets and do not use complete autonomy on operations that can affect real data or services. “The diff is isolated” does not mean “every action of the agent is harmless”.
When Orca makes sense
Orca is especially interesting if you already work with CLI agents, manage multiple tasks in parallel, and want to keep checkouts separate while comparing and reviewing changes. Supports macOS, Windows and Linux; the site presents it as free and open source. However, the agents and their subscriptions remain the ones you choose to use.
If you're working on a small edit alone, a single agent in your editor may suffice. Orca becomes more useful when the problem is not generating a response, but coordinating sessions, branches, terminals and reviews without losing the thread.
Productivity, here, is not measured by counting how many agents are turned on. It is measured by how quickly you can turn independent proposals into a verified and understandable change.
Official references
- Orca: what is it
- The first session with three agents
- Worktree and work cycle
- Supported Agents and Permissions
- Download
