A GitHub template (formerly the ai-project-orchestrator template) for running an orchestrated "army" of Claude Code agents on a codebase: a lead orchestrator scopes a task and delegates to worktree-isolated implementers, whose work is gated by adversarial reviewers — looping until tests, coverage, and review all pass.
The design is two-tier: a generic harness (portable across any stack) plus a thin project adapter
(.claude/gates.json + CLAUDE.md) that you fill in per project. Onboarding a new repo is a ~20-line
config edit, not a rebuild.
Status: v0 — a starting point to iterate on. The underlying Claude Code features (subagents, worktree isolation, the workflow engine) are evolving; treat your first runs as calibration.
- Click “Use this template” on GitHub → create your repo.
- Open it in Claude Code and follow
docs/GETTING_STARTED.md(fillCLAUDE.mdand.claude/gates.json— there are copy-paste prompts indocs/PROMPTS.mdthat draft them for you), then work through the new-project configuration checklist to wire it into the autonomous loop. - Drive it: see
docs/USAGE.md.
.claude/
agents/ orchestrator · implementer (worktree) · reviewer · test-runner ← generic, portable
workflows/ feature-fanout.js — deterministic scope→implement→review→loop
scripts/ gate.sh — runs a gate command from gates.json
settings.json hooks (lint on edit, tests on stop) + permissions ← generic
gates.json ★ PROJECT ADAPTER — module map, gate commands, model routing ← you fill this
CLAUDE.md ★ project context ← you fill this
.github/ PR template (the per-agent "demo artifact")
docs/
GETTING_STARTED.md setup, step by step
ARCHITECTURE.md the mental model & the three levers
USAGE.md how to drive the orchestrator day to day
PROMPTS.md copy-paste prompts to populate files & kick off work
TOKEN_BUDGET.md cost control & measurement
HARDENING.md running the loop hands-off safely (bypass + sandbox)
★ = the only two files you must edit per project.
The orchestrator-worker pattern is powerful but costs ~15× the tokens of a single chat (per Anthropic's
own research system). Scale effort to task complexity, route cheap models to cheap work, and measure spend.
See docs/TOKEN_BUDGET.md.