Make your Claude Code limit go further: Addy Osmani's four levers
The short version
Addy Osmani priced one Claude Code task on Claude's own blog. A task that grows from 20K to 120K tokens of context over 40 turns sends about 2.8 million input tokens, because every turn resends the conversation so far. At Opus 5.5 API list prices that input costs 11.20 USD with nothing from cache, and 1.62 USD when 90% comes from cache.
Same tokens, same task. Only the cache changed. On a Pro, Max or Team plan the post says the same pricing is passed on to your limits, including cached context, so the moves that cut the bill also make your limit go further.
| Read from cache | Input cost for the same 2.8M tokens |
|---|---|
| none | 11.20 USD |
| 90% | 1.62 USD |
| 96% | about 0.99 USD |
These are the post's illustrations at API list prices (4 USD per million input, 0.20 USD per million cache reads, 20 USD per million output), not your bill.
The four levers
| # | Lever | What it means | What to type |
|---|---|---|---|
| 1 | Turns | Every turn resends the whole chat, so the cheapest turn is the one you don't need | Give Claude a test to run · /clear between unrelated tasks |
| 2 | Cache | Text Claude already saw costs a twentieth of the input price. Changing the start of the chat throws it away | Connect MCP servers before you start · /mcp |
| 3 | Output | One output token costs a hundred cache reads, and thinking is billed as output | /effort medium every day, high only when it stalls |
| 4 | Model | Subagents inherit your main model's price | model: haiku on search and log-reading subagents · keep code edits on Opus 5.5 |
What throws your cache away (a fresh cache write): connecting or disconnecting an MCP server, switching models, turning on fast mode, compacting, or a pause longer than the cache lifetime. Set those up when the session starts and leave them alone.
The catch
Every way to spend fewer tokens can also cost you a finished task, and a retry costs more than the savings. Say high effort adds 20K thinking tokens to a task: that's about 0.40 USD on Opus 5.5, roughly what a ten-turn retry loop costs. So high pays for itself when it saves one retry and is wasted when medium would have finished. Measure before you cut.
Copy these prompts
Every command from the reel, and when to use it:
| Command | When |
|---|---|
/clear |
Between unrelated tasks. It costs nothing |
/compact |
At a natural break, with a note on what to keep |
/rewind |
Back to an earlier turn instead of compacting a dead end |
/mcp |
See connected servers, turn off the ones you aren't using |
/effort medium |
Everyday, well-scoped work (the Opus 5.5 default) |
/effort high |
Only when medium stalls |
/effort low |
Renames and known patterns across files |
/model |
Switch at a break, never mid-chat |
/usage |
After a real task: the Session block and the prompt-cache line |
/claude-api prompt-audit |
Checks your skills and CLAUDE.md for patterns that make the model write more |
Ready to copy:
/clear
/compact keep the failing test names and the schema change
/rewind
/mcp
/effort status
/effort medium
/effort high
/effort low
/model
/usage
/claude-api prompt-audit
In a subagent definition that only searches or reads logs:
---
name: searcher
description: search code, read logs
model: haiku
---
Or put every subagent on one model:
export CLAUDE_CODE_SUBAGENT_MODEL=sonnet
If you are building with an agent
- Connect your MCP servers before the session starts, and turn off the ones you don't use.
- Keep CLAUDE.md short: every line is resent on every turn.
- Give Claude a test, build or script it can run to check its own work. It finds its mistakes in fewer turns.
/clearbetween unrelated tasks./compactat a break, with a note on what to keep.- Don't switch models or turn on fast mode halfway through a long chat.
- Start at
/effort medium. Raise it for the one hard step, then lower it again. - Search and log-reading subagents on Haiku or Sonnet, code edits on Opus 5.5.
Run this on your codebase
Run one real task from your backlog twice, once at medium and once at high. After each, run /usage and read three things:
| Check | What good looks like | What bad means |
|---|---|---|
| Prompt-cache line | A high share on a long session | Something reset the cache mid-chat |
| Output against input | Small output for a small change | Effort is too high, or it's retrying |
| Total input against the chat size | A few times the conversation | Many times bigger means it looped |
Do three or four tasks before you decide. Your numbers beat any illustration, including these.
Source: Addy Osmani, "What a task costs on Opus 5.5", claude.dev blog, 25 Sep 2026, https://claude.dev/blog/what-a-task-costs-on-opus-5-5/