Skip to Content
Orca Guide
Playbooks

Four Battle-Tested Orca Playbooks

Copy-paste SOPs for real engineering workflows—Three-Agent Bug Race, Writer+Reviewer Dual-Agent Loop, Design Mode + AI Diff UI Fix, and Unattended Remote + Mobile Approval.

Orca 1.4.xUpdated 2026-12-0411 minPlaybookUnofficial Community Guide

🎯 Goal

Individual features only click when combined into repeatable workflows. This page gives you four complete, production-ready SOP playbooks you can run verbatim in Orca:

  1. Three-Agent Bug Race: Race Claude Code, Codex, and Gemini CLI from the exact same start-from ref, pick the cleanest fix, and safely delete losers;
  2. Writer + Reviewer Dual-Agent Loop: Pair one coding model with an independent cross-model auditor, then funnel findings through Annotate AI Diff;
  3. Design Mode + AI Diff Frontend Fix: Click broken UI in embedded Chromium, let hot-reload verify the patch, then polish code tokens via inline diff comments;
  4. Unattended Remote + Mobile Approval Flow: Keep Bots and scheduled automations running on an always-on orca serve host and unblock Needs you approvals from Orca Mobile.

📋 Prerequisites

  • At least two agent CLIs configured (e.g. Claude Code, Codex, or Gemini CLI), plus awareness of parallel quota burn (Your First 3-Agent Parallel Run).
  • Repo scripts.setup configured for .env.local, dependency sharing, isolated PORTs, and isolated local test DBs so parallel worktrees never collide (Worktrees & the 4 Real Pitfalls).

Budget Discipline: When NOT to Run a 3-Agent Race

Running 3 agents simultaneously burns ~3× tokens and rate-limit windows. Reserve 3-way races for elusive bugs, high-risk refactors, or time-critical incidents. For routine feature work, use the Writer + Reviewer loop or a single worktree.


🛠️ Step-by-Step

Playbook 1: Three-Agent Bug Race

Best for: Intermittent race conditions, tricky auth redirects, or obscure test failures where different models reason differently.

1. Spawn 3 Worktrees From the Identical start-from ref

Click + three times on your repo (or use CLI) targeting the exact same base branch (origin/main), assigning one model per worktree:

orca worktree create --repo id:<repoId> --name race-claude --base-branch origin/main --agent claude --json
orca worktree create --repo id:<repoId> --name race-codex  --base-branch origin/main --agent codex  --json
orca worktree create --repo id:<repoId> --name race-gemini --base-branch origin/main --agent gemini --json

2. Send One Verifiable, Repro-First Prompt to All Three

Require a failing test before any fix, plus exact pass gates:

Repro: npm test -- auth.pkce intermittently throws invalid_verifier on token refresh. First write a deterministic test reproducing the race, then fix the root cause and verify npm test + npm run typecheck pass.

3. Watch Quota & Compare Diffs Side-by-Side

Monitor the status-bar rate-limit meters (watch for the 80% warning chip). Once finished, open each worktree's Diff Viewer:

  • Check test integrity: did an agent weaken assertions to pass?
  • Check blast radius: which patch solves the root cause with minimal collateral edits?

4. Ship Winner & Clean Up Losers Safely

Commit, push, and Create PR from the winning worktree. Delete the two losing worktrees; if unmerged local commits trigger Orca's Preserved branches (Review N Branches), inspect and force-delete the discarded branches cleanly.


⚠️ Common Pitfalls

1. Three-Agent Race Falsely Fails Because Worktrees Share `:3000` or One SQLite DB

Symptom: Worktree 1 passes tests while Worktrees 2 and 3 crash with EADDRINUSE or SQLITE_BUSY, skewing your model comparison.
Fix: Always enforce per-worktree PORT and isolated DB files/schemas before launching parallel races (see Worktrees & the 4 Real Pitfalls).

2. Dual-Agent Reviewer Edits Files Simultaneously With the Writer

Symptom: Running two agents on the same worktree where both edit files causes clobbered hunks and lost context.
Fix: Explicitly restrict the Reviewer prompt to read-only auditing (do not modify files), then route accepted notes through Annotate AI Diff back to the Writer.

3. Running Shared Remote Bots in `Full access` Mode

Risk: Any external Slack/issue prompt could trigger unrestricted shell commands on your always-on host.
Fix: Enforce Ask for approval on shared or connector-backed Bots so risky tool executions pause cleanly in your mobile Needs you queue.


✅ Checklist & Next Steps

Pick one playbook to run on a real task this week:

  • Try a scoped 2–3 agent race from the same start-from ref and clean up losing worktrees/preserved branches;
  • Run a cross-model Writer + Reviewer audit coupled with Annotate AI Diff;
  • Fix a real UI glitch via Design Mode (A/D) without manually pasting selectors or CSS;
  • Bookmark the interactive command & troubleshooting reference below for daily triage.

On this page