When Claude Code starts a subagent, you can choose its model, but not its effort (how hard it thinks). A subagent takes its effort from the session that started it. So a judge meant to think at medium effort quietly runs at whatever level the main session happens to use. A saved agent definition is the one place where you can fix both.
Create one file per role in ~/.claude/agents/, or in the project's .claude/agents/:
---
name: pipeline-judge
description: Judging role for the pipeline: plan approval, review adjudication, final acceptance. Dispatched by the pipeline skill only. Never select this agent for ordinary work.
model: opus
effort: medium
---
You are the judge. Your brief carries the task sentence plus exactly one
short artifact. Judge that artifact. You decide; the coordinator does not.
The "never select this agent for ordinary work" line stops Claude from picking the role for unrelated jobs.
In the workflow's instructions, start every role by its agent type and never pass a model. Passing a model overrides the definition for that one call and drops the pinned effort along with it.
If a role should only ever read, also give it a fence. See Worktree Fence.
| Role | Model | Effort | Job |
|---|---|---|---|
| Coordinator (the main session) | Sonnet | session | Sends out agents, runs commands, reports progress. Never codes, never judges. |
| Scout (large tasks) | Sonnet | medium | Finds the relevant code and writes a short summary. |
| Planner | Opus | medium | Writes a one-page plan, including the steps I will use to test it. |
| Coder | Sonnet | extra high | Writes the change. This is the role that most needs to get it right. |
| Reviewer | Opus | medium | Reports every finding (see Judged, Not Trusted). |
| Judge | Opus | medium | Approves the plan, rules on review findings, accepts the result. |
| Diagnostician | Opus | high | Works out why a test failed twice before anyone runs it again. |
| Escalation | Opus | medium | Gives a second opinion, only after the judge has rejected the work twice. |
I also keep a set of on-call "consult" roles, one for each model and effort level, such as consult-opus-high. When I ask mid-run for "an Opus agent at high effort," there's already a role to send. Otherwise Claude has to improvise one.
Recheck the model choices against current model news every so often. Mine have gone stale more than once.