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.

Setup

  1. 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.

  2. 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.

  3. If a role should only ever read, also give it a fence. See Worktree Fence.

The roles I use

RoleModelEffortJob
Coordinator (the main session)SonnetsessionSends out agents, runs commands, reports progress. Never codes, never judges.
Scout (large tasks)SonnetmediumFinds the relevant code and writes a short summary.
PlannerOpusmediumWrites a one-page plan, including the steps I will use to test it.
CoderSonnetextra highWrites the change. This is the role that most needs to get it right.
ReviewerOpusmediumReports every finding (see Judged, Not Trusted).
JudgeOpusmediumApproves the plan, rules on review findings, accepts the result.
DiagnosticianOpushighWorks out why a test failed twice before anyone runs it again.
EscalationOpusmediumGives 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.

Loading SilverBullet…