# How to fan one prompt across five agents and merge the best result with orca

Repo: [stablyai/orca](https://github.com/stablyai/orca) | Difficulty: Intermediate | Time: 30 minutes | Basis: Seen in the wild

Send the same task to several coding agents in isolated worktrees, compare the diffs, and keep the winner.

**Who it is for:** Developer stuck on a tricky refactor who wants more than one agent's attempt before committing

**The problem:** Trying one agent at a time is slow, and agents sharing one checkout overwrite each other's changes.

**The outcome:** You get several independent attempts at the same task, each on its own branch, and merge only the one you like.

## Steps

1. Install Orca and open your repo in it.
2. Start Claude Code, Codex and OpenCode, each in its own worktree.
3. Paste the same prompt into each agent.
4. Review each worktree's diff side by side, then merge the winner.

## Prompt to paste into your agent

```text
Using stablyai/orca, set up parallel worktrees in <my repo> and run Claude Code, Codex and OpenCode on this task: <task description>. Show me each agent's diff so I can compare, and verify no agent touched files outside its own worktree.
```

## Caveat

Each agent burns tokens on your own subscription, so fanning one prompt across five agents multiplies usage and can hit rate limits fast.

## Seen in the wild

- X (Oct 2026): https://x.com/i/web/status/2112088192568738199
- Reddit: https://i.redd.it/cuhji7c09ovh1.png

Disclaimer: Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk. Full text: https://dedupedai.com/disclaimer/

URL: https://dedupedai.com/use-cases/stablyai-orca/compare-agents-on-one-prompt/
