pilotfish 🐟
Small, fast role agents handle volume work while the frontier main session
keeps planning, approval, integration, and final judgment.
pilotfish is a multi-model orchestration policy for
Claude Code. The macOS and Linux Plugin
adds hook-based ambient activation; the global configuration install remains a
legacy alternative. The policy uses the opus family for the main session,
Sonnet for bounded execution, Haiku for reconnaissance, and fresh Opus contexts
for risk-triggered review.
繁體中文
Contents
Why
Most coding-session tokens are spent on search, repetitive edits, tests, and
documentation rather than frontier judgment. pilotfish routes those bounded
paths to cheaper roles while keeping the main session accountable and using
fresh-context reviewers at material acceptance boundaries.
New installs default to the opus alias; Fable remains an explicit
/model fable choice. This is a cost-aware default, not a claim that one model
wins every task. The rationale and measurements live in
research, the design notes, and
#23.
How it works
The Plugin packages the policy and namespaced roles under Claude Code's
native Plugin lifecycle. The legacy global install uses these direct targets:
| Layer | Installed target | Responsibility |
|---|
| Machine | ~/.claude/settings.json | Main-model alias and fallback chain |
| Roles | ~/.claude/agents/*.md | Model, effort, and capability boundary for each role |
| Policy | ~/.claude/CLAUDE.md | Dispatch, approval, verification, and long-run behavior |
If CLAUDE_CONFIG_DIR is set, all ~/.claude/ paths above move under that
configuration root.
flowchart TD
U["You"] --> I
subgraph MAIN["main session — opus family alias"]
I["Interaction shape
execute / explore_then_plan / co_discover"]
I --> O
O["Orchestrator
plan / decide / spec / review"]
end
O -->|recon| S["scout
haiku · effort low"]
O -.->|recon, legacy only| X["Explore
haiku · effort low"]
O -->|Plan challenge| PV["plan-verifier
opus · read-only"]
PV -->|READY / REVISE| O
O -->|mechanical spec| M["mech-executor
sonnet · effort low"]
O -->|judgment work| E["executor
sonnet · effort medium"]
O -->|security evidence| SR["security-reviewer
opus · read-only"]
SR --> O
O -->|approved security work| SEC["security-executor
opus · effort medium"]
M --> V["verifier
opus · fresh context"]
E --> V
SEC --> V
V -->|CONFIRMED / REFUTED / INCONCLUSIVE| O
| Role | Model | Default effort | Purpose |
|---|
scout | haiku | low | Read-only repository reconnaissance |
Explore | haiku | low | Broad read-only search without inheriting the main model — legacy global install only (why) |
plan-verifier | opus | medium | Pre-approval Plan challenge: READY or structured REVISE |
security-reviewer | opus | high | Read-only security evidence before approval |
mech-executor | sonnet | low | Fully specified mechanical repetition |
executor | sonnet | medium | Approved implementation requiring local judgment |
verifier | opus | medium | Fresh-context outcome falsification after implementation |
security-executor | opus | medium | Approved security-sensitive implementation |
Each role's effort is a recommended default, not a fixed setting. The policy asks
the main session to pass the Agent tool's effort (Claude Code 2.1.292 or newer)
for each delegation, chosen from the task's difficulty, ambiguity and cost of
error: a lookup can stay at low while a hard investigation runs at high. The
reviewers have a floor at their defaults: verifier and plan-verifier never
below medium, security-reviewer never below high. Model routing stays fixed;
per Claude Code's documentation, CLAUDE_CODE_EFFORT_LEVEL, when set, overrides
both (evidence).