PlaybookAdvanced10 min read6 August 2026

The Claude Code Cost Loop

Every task you run in Claude Code burns your most expensive model by default, including the parts that don't need it. This is the full setup for splitting the job: your top model plans and reviews, a cheaper model executes. If you code, you'll have this running in fifteen minutes. If you don't, section 2 explains every term before it gets used.

In short

A cost loop is a Claude Code setup where your expensive model writes the plan, a cheap model does the labor, and your expensive model checks the result. Anthropic's own documentation lists cost control as a core reason subagents exist, and the gap is real: Fable 5 runs $10 in and $50 out per million tokens on the current rate card, Haiku 4.5 runs $1 and $5. Same work, a tenth of the rate. The setup is two small text files and one command. I run this loop in my own company, and two hidden settings decide whether it saves you anything at all. Fifteen minutes, then it pays you back every session.

Read time: 8 min


Why do most people pay flagship prices for work a budget model handles fine?

Because Claude Code makes it the default. Whatever model you pick for your session runs everything: the planning, the file reading, the test running, the cleanup. One model, one rate, every task.

Anthropic built the escape hatch into the product. Their subagent documentation lists five reasons to use them, and the last one is the point of this playbook: control costs by routing tasks to faster, cheaper models like Haiku. That's Anthropic's own phrasing, in their own docs. The feature shipped, the docs recommend it, and almost nobody runs it.

There used to be a small barrier. Creating a subagent meant clicking through a terminal wizard or hand-writing a configuration file. As of Claude Code version 2.1.198, the wizard is gone and the official method is simpler: you describe the agent you want in plain English, and Claude writes the file for you. The barrier is now one sentence.


The money math

All figures below are from Anthropic's rate card as of July 29, 2026. Prices are per million tokens, input and output.

ModelInputOutputRole in the loop
Fable 51050Planning and review
Opus 5525Planning and review
Sonnet 52$10 (until Aug 31, 2026, then $3 / $15)Execution
Haiku 4.515Execution and search

Route execution from Fable 5 to Haiku 4.5 and that work costs 90 percent less. Route it to Sonnet 5 and it costs 80 percent less at the introductory rate.

If you're on a subscription plan rather than paying per token, the same logic applies to your usage limit. The limit measures compute, and grunt work on a cheap model draws it down far slower than grunt work on your flagship. Either way, the expensive model should only touch the parts that need judgment.


The idea in plain words

Four terms, then you know everything the setup requires.

A token is the unit Claude bills in. Roughly three quarters of a word. Every file Claude reads and every line it writes is tokens, metered at whatever model is running.

A model tier is the quality level. Fable and Opus are the expensive reasoners. Sonnet is the mid tier. Haiku is the fast, cheap one. The cheap tiers are genuinely good at mechanical work. They're weaker at judgment calls.

A subagent is a second Claude that your main Claude can hand tasks to. It runs in its own separate workspace, does the job, and reports back a summary. The part that matters here: each subagent can run on a different model than your main session.

A markdown file is a plain text file. A subagent is defined by one: a few settings at the top, then instructions written in English. No code.

So the loop is: your main session runs on your best model and writes the plan. It hands the plan to an executor subagent running on a cheap model, which does the labor in its own workspace. Then your best model reviews what came back before you accept it. Quality at the top, volume at the bottom.

There's a second benefit that has nothing to do with money. Because the executor works in its own workspace, all the noisy output from reading files and running tests never lands in your main conversation. Your main session stays clean, which means it stays sharp for longer.


The five-minute version

Open Claude Code and paste this. It works immediately, and Claude writes the file for you.

"Create an executor subagent in ~/.claude/agents/ that implements plans I have already approved. It should follow the plan exactly, without expanding scope or redesigning anything. After each change it should run the relevant tests. It should report back what it changed, what passed, and what failed. If the plan is wrong or blocked, it should stop and say so instead of improvising. Use Sonnet, and give it the Read, Write, Edit, Bash, Grep, and Glob tools."

That's the whole minimum setup. From now on, when you have a plan, say:

Use the executor subagent to implement this plan: [PASTE YOUR PLAN HERE]

The next one lands in your inbox before it lands here.

One email a week. What I tested.

Subscribe
The Claude Code Cost Loop · Playbooks · Steve Tan