Memory, routing, orchestration, cost — every piece in daily use, with the measurements attached.
← all explainers
· Yasaswy Nagavolu

The Cast-List: Keeping an Agentic Harness Running When You're Out of Quota

Run every dispatched task on your flagship model and you'll burn the week's quota on work that never needed it. The fix isn't using the assistant less — it's stopping the expensive model from doing the cheap seats. Three roles (a conductor, session players, and a cast list that names who plays what), one hard-learned constraint (only named, registered agents can be retiered — generic dispatch is schema-locked to the flagship), and one structural gate (a distinct reviewer must sign off before anything ships).

ai-agentsautomationtoolingcost-optimizationmulti-model

An agentic coding harness like Claude Code is at its best when it stops being a single prompt and starts being a small company of agents — one scopes a change, another writes the diff, another runs the tests, another reads the result and decides what to do next. Left to its own defaults, though, every one of those agents runs on the same model: the flagship, the most expensive tier, the one your account is metered against weekly. That works on a light Tuesday. It burns through the week’s quota halfway through a heavy one — and the work that’s left over is exactly the work the flagship model exists for. The architecture call, the requirements grilling, the adversarial review of someone else’s diff: you can’t run any of it, because the cap is gone. You start taking the mechanical work back onto your own keyboard. The harness that was supposed to multiply you is now rationed to two or three tasks a day and idle for everything else. You haven’t run out of work. You’ve run out of the wrong tier doing the wrong work.

The shape of the failure is specific and worth naming: it is a tier-mismatch problem, not a usage problem. The total volume of work was fine. The total volume of flagship-model work was not. Most of what burned the cap would have run equally well on a cheaper model routed through a multi-model gateway.

Architecture: the cast list, from chat

The fix has three parts that people constantly conflate: a conductor, session players, and a cast list that says who plays what. The diagram below traces one concrete dispatch journey through all three — a multi-part feature request fanned out across the cast, executed on the cheap tier, and gated before it can land. Click any node to jump to that step, and watch the meter in the top strip.

The Cast-List
Agent Routing Pattern
STEP 1/6▸type prompt
Σ 0 tok·$0.00Claude Opus 4.8 · flagship cap
dispatch by name
route to session tier
hand to reviewer
verdict → conductor

Two things in that loop are the whole argument, shown rather than stated.

The meter only moves twice. It sits flat at $0 through the session-player and reviewer steps in the middle of the loop — those run on a separate, cheaper meter and don’t touch the rationed flagship cap at all — and ticks exactly twice: once when the conductor plans, once when it reviews the verdict. That flat line through the cheap middle is the thesis. Most of the loop is free of the thing you’re rationing.

The conductor is the only coloured box. Everything else — the cast-list registry, the session player, the reviewer — is a plain white document, because those are cheaper surfaces reached through a gateway, with no brand colour of their own. The flagship model is the only thing on the board that costs you cap to wake up. Tiering is, visually and mechanically, the act of keeping that one coloured box asleep for the cheap work.

The conductor

The conductor is your flagship-tier model. It does three things and, once the pattern is in place, only those three: it plans the work (breaking a feature into scorable subtasks), it makes the ambiguous judgement calls the cheaper models can’t be trusted with, and it adversarially reviews the session players’ output before any of it is allowed to land. It runs all week without ever running dry, because it has been reserved for exactly this.

Session players

Session players are cheaper, interchangeable models reached through a multi-model gateway (OpenRouter, in the concrete version). They execute mechanical, well-specified work: implementing a diff whose scope is already decided, running and fixing a test suite, generating docs or config from a template, doing a bulk research fetch. If a task has a clear definition of done and a reviewable artefact at the end, a session player can do it. The point is not that they are bad models — many are excellent. The point is that they are not the model you are rationing.

The cast list

The cast list is the mechanism that makes tiering real instead of aspirational. Each named, registered agent has its own small definition file that declares which model it runs on. When the conductor dispatches a registered agent by name, the harness reads the model out of that agent’s own file — not out of the dispatch call, not out of a global default. The agent’s identity is what selects the tier.

Only cast members can play a different instrument than the conductor. The unregistered, generic “run anything” dispatch shape has its model parameter locked by the tool’s own schema to the flagship-tier options, because there is no definition file to read a different model from.

This is the hard-learned constraint, and it is worth stating bluntly: cost-tiering only works if the work is routed through a named agent with its own definition file. The harness’s generic, ad-hoc dispatch — the tempting “just spin up a task with no agent behind it” shape — cannot be redirected to a cheaper tier, because there is nothing for the harness to read the model declaration from. Its model parameter is schema-restricted to the flagship options. So either your task is a registered cast member, or it runs on the conductor. There is no third option. Building the cast list is therefore not a polish step; it is the precondition for tiering existing at all.

The guardrail

Cheap models are good at mechanical execution and bad at deciding when something is ready to leave the building. So tiering is paired with a mandatory review step: a separate, still-cheap-but-distinct reviewer role must sign off before certain gated actions are allowed — committing changes, publishing content, mutating anything external. This is enforced structurally, not by a prompt that asks nicely. Something concrete denies the gated action (a pre-commit hook, a validation gate, a tool-permission check) until the reviewer has actually run and returned a positive verdict. The session player can do the work. It cannot ship the work. Only the review gate can ship the work — and the review gate cannot be talked out of existing by the agent that wants to ship.

The ledger: what tiering actually costs

Numbers below are illustrative and order-of-magnitude only — not audited figures, and your ratios will differ with your work mix. They are here to make the shape of the change legible, not to promise a specific multiplier. Treat them like a programme’s ticket-pricing tiers: the point is the relative proportion, not the exact price.

Weekly dispatch ledger — before vs. after the cast list

Task typeTierDispatchesFlagship shareShare
Implement a scoped diffsession~280%
Run / fix testssession~140%
Docs / config / bulk researchsession~120%
Adversarial review of diffsreview~100%
Architecture / judgement callsconductor~6100%
Requirements grillingconductor~4100%
Flagship dispatches (before)conductor~74100%
Flagship dispatches (after)conductor~10~14%

Illustrative, order-of-magnitude. Before the cast list, ~100% of dispatched subagent work ran on the flagship and a heavy week’s cap hit roughly halfway. After, ~70–80% of dispatches moved to cheaper session-player tiers; the conductor stayed fully available for planning and review across the entire week.

The headline number — flagship consumption dropping from effectively all of the week’s dispatches to roughly a seventh — is less interesting than the second-order effect: the conductor is no longer the thing you are rationing. It is available, every day, for the work that actually needed it. The cheap seats absorbed the cheap work. The cap survives the week.

Setup: building your own cast list

The pattern is adoptable on any harness that lets you register named agents with their own configuration. The steps below are guidance, not literal repository instructions — your harness’s exact file format and hook names will differ, but the shape is the same.

  1. Give every agent its own definition file, with a declared model. One file per named agent. Each declares, at minimum, the model tier it runs on and a one-line scope of what it owns. This is the cast list — the literal precondition for tiering. Without it, every dispatch falls through to the flagship default. A cast member looks roughly like:

    # agents/implementer.md — a named cast member
    name: implementer
    model: openrouter/z-ai/glm-4.6   # read server-side at dispatch time
    scope: "execute already-scoped diffs; do not decide scope"
  2. Dispatch agents by name, never by ad-hoc “run anything”. The temptation is the generic dispatch shape: spin up a task with no agent behind it and pass a model in the call. Resist it. That shape is schema-locked to flagship options precisely because there is no definition file to read a different model from. If you want a cheaper tier, the work has to be a registered cast member. There is no shortcut.

  3. Add a small guard that enforces the model at dispatch time. A pre-dispatch check (a hook or a thin wrapper around the harness’s dispatch entry point) reads the agent’s declared model and either honours it or corrects it back to the declared value if a caller tried to override it inline. The tier is a property of the agent, not of the call site.

  4. Lint the model string format. A cheap validation step checks every agent file’s model: field against an allowed pattern — provider slug, family, tier. This catches the quiet failure mode where an agent silently inherits a typo’d or deprecated model string and quietly runs on the flagship tier for a week before anyone notices.

  5. Put a structural gate in front of anything sensitive. For commit, publish, and any external mutation: a hook denies the action until a separate reviewer role has run and returned a positive verdict. The reviewer can be a cheap model — it just has to be a different agent than the one that did the work. “Asked it to review itself in the prompt” is not a gate; it is a hope. Make the gate code, not prose.

  6. Reserve the conductor for planning and review — and nothing else. Once the cast list is populated and the gates are in place, the flagship model should only show up on architecture calls, requirements grilling, and the final adversarial pass. If you find it running on anything mechanical, that is a routing bug, not a usage choice — fix the cast list entry, don’t ration the conductor harder.

Done right, the result is not “use the assistant less.” It is the opposite: use it more, on more tiers, with the expensive tier held in reserve for the work that genuinely earns it. The cast list is what makes that possible — because only cast members can play a different instrument than the conductor.

Technicals

  • Agentic harness: Claude Code — the conductor and the dispatch layer that reads each agent’s declared model.
  • Pattern name: The Cast-List
  • Multi-model gateway: OpenRouter, routing to a flagship-tier reasoning model (e.g. an anthropic/claude-opus-class family) for the conductor, and to cheaper high-throughput families for the session players (e.g. a z-ai/glm-class coder/generalist model and a lighter meta-llama/llama-class model for the bulk/research seats).
  • Cast-list mechanism: each registered agent carries its own model declaration in its definition file; the harness reads the model server-side from that file when the agent is dispatched by name. Generic unregistered dispatch cannot be retiered — its model parameter is schema-restricted to flagship options because there is no definition file to read from.
  • Guardrail: a lint/validation step checks the declared model string format on every agent file, plus a structural hook gate (pre-commit / tool-permission) denies sensitive actions until a separate reviewer role has actually run and signed off.
  • Memory / RAG: a lightweight persistent store for cross-session conventions, so tiering decisions and review verdicts survive across days.
  • Source: clean-room pattern piece — no project or repo named by design. The building blocks (Claude Code, OpenRouter) are public; the cast-list shape is what to copy.