Gearbox

Gearbox is a Claude Code plugin that automatically routes subagent delegations to the cheapest model tier that can handle the work — haiku for search and mechanical edits, sonnet for standard implementation, opus for hard architectural problems. It adds an escalation ladder so a cheap agent that gets stuck hands off to a more expensive one, and a verifier gate that catches gaming patterns (like reward-hacking an impossible test) before bad results are accepted. JSONL telemetry logs every delegation and its outcomes — which tier ran it, whether a named agent or a generic proxy handled it, verifier verdicts, and escalations — so you can measure how your routing actually behaves.
Install
In your terminal:
claude
Inside the Claude Code session (slash commands — these do not work in your shell):
/plugin marketplace add Adityaraj0421/gearbox
/plugin install gearbox@gearbox
At the scope prompt, choose user (all projects). If you accept the default, Gearbox only routes in the folder you installed from.
Restart the session. The SessionStart hook activates routing automatically on every session start — no per-project setup required.
Recommended: set your session model to sonnet (/model sonnet) — this is the orchestrator tier. Gearbox controls subagent models; it does not override your main session model.
Tier table
| Tier | Agent | Model | Use for |
|---|
| T0 | scout | haiku | exploration, search, reading, summarizing |
| T0 | grunt | haiku | mechanical edits, 1-2 files, zero design decisions |
| T1 | builder | sonnet | features, bug fixes, tests, refactors ≤5 files |
| T2 | architect | opus | cross-cutting design, concurrency, migrations, performance, security |
Escalation ladder
When a cheaper tier reports "needs escalation" or fails twice on the same root cause, the orchestrator escalates exactly one tier and passes the full failure report. Hard floors apply regardless of classification: auth, payments, migrations, and concurrency start at T1 minimum; production-breaking risk starts at T2.
Independent verifier
After any T1/T2 delegation that modified files, a verifier agent (haiku) reviews the diff before the result is accepted. It checks intent vs. letter, gaming patterns, and scope. Importantly: it receives a BASELINE git status snapshot taken before the delegation, so pre-existing uncommitted files are not misattributed to the implementer.
Verdict outcomes:
- APPROVE — change matches intent, no gaming, in scope
- REJECT — gaming pattern found or out-of-scope file touched; sends back to same tier once, then escalates
- SKIPPED — implementer escalated with no file changes; escalation ladder handles it
Customizing the routing policy (optional)
Run /gearbox:init inside a project to create a local copy of the routing policy at .claude/routing.md. The SessionStart hook will inject your local copy instead of the plugin default. Edit .claude/routing.md to adjust tier thresholds, add project-specific hard floors, or extend the escalation rules.
Troubleshooting
Something not working? Run /gearbox:doctor first — it checks the eleven most common failure modes and tells you the fix. Paste its output into any issue you file.
Known limitations