quartermaster: the right model and effort for every Claude Code agent

A coordinator session plans the work and hands each task to a worker session. The easy habit is to start every worker on the biggest model at high effort: it is the safe choice, and nobody stops to weigh each task. The habit has a price. A wording fix in the docs draws on the same usage limit as a payment migration, and the limit runs out sooner than it should.

quartermaster (qm) takes that choice over. It is a free, open-source command-line tool from IZZY for people who run a coordinator Claude Code session that spawns worker and reviewer sessions. Before each spawn it picks the model and effort the task needs. It also keeps private text on your machine, sends reviews to Codex while your Codex limit has room and to Claude after, and logs every decision so you can check it against what really happened.

The measurements behind it

The tool started from numbers, not from a hunch. The project’s README gives aggregates measured on one developer’s own history before quartermaster existed: 249 Claude Code worker sessions and 1,051 Codex sessions over 40 days. Costs were counted as real tokens at API list prices, which is a yardstick for how fast limits drain, not what a plan bills.

  • 67% of what workers cost was cache reads: long sessions re-reading their growing context. About 72% of the re-reads that tool output caused was reading code.
  • Almost every worker was spawned on the biggest model at high effort, whatever the task. Small tasks were cheap in total, but each one was overpaid.
  • The fixed start block of a worker (system prompt, instructions, plugins, MCP tools, the brief) was about 63k tokens, 16% of all the context tokens processed.
  • 221 of 418 Codex reviews ran at the highest effort, and about 70% of them started Codex sub-agents of their own.

quartermaster acts on each of these: it picks the model and effort from the task, starts workers with a lean profile, pushes code reading into a cheap explorer agent, and sets an explicit model and effort on every review.

How a worker gets its model

The coordinator runs qm spawn worker with the task brief, a type (feature, fix, docs, research, migration, ui and a few more), a size (S, M or L) and a hint, which is its own pick. qm then reads a fixed table from top to bottom, and the first row that matches wins. A shortened version:

The task Model / effort
Carries risk, and is large or leaves the design open opus / xhigh
Carries risk opus / high
UI work, or visual quality is central opus / medium
Small, and docs, release paperwork or mostly mechanical sonnet / low
Small sonnet / medium
Large, or the design or the root cause is open opus / medium
Medium sonnet / high

Three rows come before these: a tier you force, a brief the privacy gate kept on your machine (the coordinator’s hint is used, capped at opus/high), and research, which gets sonnet/medium, or opus/medium if the design is left open.

Risk is true when the brief names authentication, access control, credentials or secrets, payments, deployment, migrations or exposure, when the type is migration, or, with a TypeSafe key, when Jev does not clearly say no to a risk question. Code checks the wording with a fixed word pattern, which skips standing boilerplate such as “do not deploy”.

Two details show the intent. Fable is never picked by the table: it is available only when you force it, and a forced tier needs a written reason, which is logged. And when your Claude 5-hour usage is above 90%, a decision for a brief without risk moves one step down, so the last of the limit goes to the work that needs it. qm needs its status-line wrapper to know the usage, and it never shifts a forced tier, a brief kept local or the UI row.

The rule the README states for all of this is short: code decides, from facts. A model is asked only narrow, typed questions, such as “is this brief mostly mechanical?” or “does it change authentication or payments?”. That model is Jev, from TypeSafe, and it is optional. Without a TypeSafe key, routing uses the type, the size, the hint and the risk pattern, and the decision’s reasons say so.

Reviews: Codex first, then Claude

qm spawn review routes a code review the same way. A fix check (round two or more) gets a medium effort. On a first review, a risky change gets the most, and a bigger model or a higher effort when its diff is over 1,000 lines. Otherwise a diff under 300 lines gets a lighter tier than a larger one.

The review goes to Codex while your Codex limit has room, and to Claude after. If a Codex run fails after it started, the same prompt goes to Claude too. Every call carries an explicit model and effort, and the reviewer can only read: Codex runs in a read-only sandbox, and a Claude review gets reading tools only. The result comes back as structured findings, each with its severity, file, line, scenario and fix.

A leaner worker

A worker started by qm does not inherit everything the coordinator has. It gets the model and effort from the decision, only the MCP servers you name for that repository (none by default), and only the plugins you list, plus the worker plugin and the official LSP plugin for the repository’s main language when it is installed. Bash output and file reads are capped. It runs with the coordinator’s own permission flag, never a stronger one.

Inside the worker, the qm-worker plugin works on the biggest cost in the measurements, re-reading code. Past a budget of exploration reads in one phase, it tells the worker to send code reading to an explorer sub-agent, which runs on Haiku. At 70% of its compact window, it tells the worker to finish the step, write a handoff note and report.

On the coordinator’s side, the qm-coordinator plugin denies the raw ways of starting a worker or a review and says what to run instead. Every rule has a switch: on, note (say it, do not block) or off.

A privacy gate before anything leaves

Routing a brief with a model’s help means sending the brief somewhere. The README’s rule is: redact first; once redacted, text may leave. Before any text goes to TypeSafe, the gate replaces:

  • secrets, emails, phone numbers, IPv4 addresses other than loopback and long high-entropy tokens, with placeholders such as <SECRET_1> and <EMAIL_1>;
  • your home folder, with ~;
  • each client or supplier name you list in the config, with a stable pseudonym;
  • on a Mac with the optional helper, person names, found by Apple’s name detector and confirmed by the on-device Foundation Model, which is then asked whether anything private is left.

If a secret cannot be redacted whole, or the on-device model says something private is left, the text stays on your machine and routing falls back to the coordinator’s hint. The decision log never holds the text of a brief. The README is plain about the limit: redaction is best effort, so list your clients and suppliers, especially on Linux, where person names are not detected.

Closing and restoring a whole project

A coordinator with five workers is a lot to lose to a reboot. qm down records each session’s context and last activity, then closes the project’s terminal sessions. qm up brings the coordinator and its workers back, and it never starts a second copy of a session that is still running.

For each session it chooses between resuming and starting fresh from a handoff note, because resuming a cold session writes its whole context to the cache again. The plan shows the cost, and qm asks before it starts anything. A first qm up in a project where Claude sessions are already running can adopt them: nothing is restarted and nothing is typed into any session.

Checking the decisions

Every decision is appended to a log on your machine. qm report prints what workers cost and how their reviews went, by tier and by worker, and with --baseline it flags routing rows that did worse than your earlier sessions. qm status shows what is on and off, and why.

What version 0.1.0 does not do

  • It is built for one way of working: a coordinator Claude Code session that spawns workers and reviews. If you run a single session, there is nothing for it to route.
  • It publishes no savings figure. The measurements above describe the problem; qm report is how you measure the result on your own work.
  • To start workers it needs the agterm terminal or tmux. Without either, routing and reviews still work. We built and use it in agterm; tmux is supported.
  • Redaction is best effort, and person names are detected on macOS only.
  • macOS is where we use it. The Linux builds are covered by automated tests, but we do not use them on a Linux machine ourselves, and there is no Windows build.
  • It is a first release, and an early one.

Install and try it

brew install izzy-agency/tap/quartermaster
qm init

qm init writes the config, reports which providers it found, asks for an optional TypeSafe key and prints the two lines that install the coordinator plugin inside Claude Code. qm init --undo puts back what it changed. To see what a spawn would do without launching anything:

qm spawn worker --dry-run --brief brief.md --type docs --size S \
  --hint sonnet/low --name example-docs --cwd <repo>

quartermaster needs the claude command. Everything else is optional: TypeSafe, Codex, gitleaks, the macOS helper, agterm, tmux and a notifier. A missing one turns its feature off, and qm status says so. The notifier can be any command, for example tg from our own claude-tg, which sends Claude Code messages to your phone over Telegram.

Builds are published for macOS and Linux, on arm64 and x86_64. The macOS builds are signed with a Developer ID and notarized. The source is on GitHub under the MIT licence, and the tool sits on our open-source page next to our other tools.

Why we built it

We built quartermaster for our own work. A coordinator that spawns workers all day makes the same decision dozens of times, and the measurements showed how it was made: the biggest model, at high effort, whatever the task. A written table that code applies before each spawn, with a log to check it against, is easier to trust and to correct than a habit.

Thanks go to agterm, the terminal quartermaster was built in and works best with. And deciding which model does which task, with which permissions and under which review, is part of our agent harness framework.

Running several agents across a team?

If your team is moving from one coding assistant to several agents working in parallel, our AI Agents & LLM Products work covers the harness around them: which model does which task, what each agent may touch and how its work is reviewed.

Frequently asked questions

Yes. quartermaster is open source under the MIT licence. quartermaster itself has no account and no paid tier; TypeSafe and Codex are separate, optional services with their own accounts.

There is no published figure, and we will not invent one. The README gives the measurements that motivated the tool, not a result. qm report --baseline compares your routed workers with your own earlier sessions.

Only if you add a TypeSafe key, and only after redaction. What then goes to TypeSafe is a worker brief, a review prompt and, for the coordinator’s ask gate and feedback hook, the recent conversation and your message with the written rules it is compared with. Secrets, emails, phone numbers and the client names you listed are replaced first. Text the gate cannot clean stays on your machine. Reviews run through the codex and claude commands on your machine, under your own logins.

No. Without one, routing uses the task’s type and size, the coordinator’s hint and the risk word pattern. The coordinator rules that depend on Jev, the ask gate and the feedback hook, are off.

Yes. Without the codex command, every review goes to Claude.

No. qm spawn worker starts workers in agterm or in tmux. agterm is the terminal the tool was built in and works best with.

izzy.agency teamEngineering & product insights from the izzy.agency team.We use AI in our research and preparation. The analysis, the sourcing and the writing are ours. How we work