Claude, forged

Saves as a standalone HTML file — works offline

Inovait IQ

How to Stop Burning Your Claude Allowance

100 practical, implementation-ready token optimisation tips for Claude, Claude Code, Fable 5, and Headroom, including model routing, context control, caching, batching, Projects, message editing, and usage-window management.
Compiled June 2026 · Updated 20 Aug 2026
Anthropic docs + community testing
100-Tip Extended Edition

BUILT FOR HUMANS. STRUCTURED FOR CLAUDE.

This playbook was designed to be read by people and analysed by Claude.

You do not need to work through all 100 recommendations manually. Claude can analyse the full guide, identify which techniques are relevant to your project, and prioritise the changes likely to make the biggest difference.

HOW TO USE THIS GUIDE WITH CLAUDE

Download this HTML file, then upload it directly into Claude alongside a short description of the project you are working on.

Claude can review the guide against your specific workflow, explain which recommendations matter most, and create a practical implementation plan.

Starter prompt I'm building [project type]. Analyse this playbook and tell me: 1. Which recommendations I should prioritise 2. Why each one matters for this project 3. How to implement each recommendation 4. Which changes are immediate quick wins 5. Which changes need longer term setup

OTHER USEFUL PROMPTS

  • Review my current workflow against this guide and identify unnecessary context, repeated instructions and expensive processes.
  • Create a step by step implementation roadmap using the most relevant recommendations from this playbook.
  • Separate the recommendations into immediate changes, medium term improvements and advanced optimisations.
  • Apply any relevant token saving, context management and workflow improvements from this document to my project.

You do not need to apply every recommendation. The purpose of uploading the guide is to let Claude identify the techniques that best match your project, tools and way of working.

START HERE: THE 10 HIGHEST IMPACT CLAUDE OPTIMISATIONS

Expand each recommendation for implementation guidance, examples and expected impact.

1. Treat Prompts Like Code, Not Sentences
Estimated saving15% to 30%
DifficultyEasy
Best forAlmost every Claude user
What This Means

Write prompts as clear operating instructions rather than as a conversation. Claude does not need greetings, apologies, hedging, repeated explanations or social padding to understand the job. It needs the objective, the relevant context, the rules and the required output.

Why It Saves Tokens

Every word you send becomes part of the conversation context. In a short chat, a few unnecessary phrases barely matter. Across dozens of messages, however, Claude repeatedly carries that wording forward alongside the rest of the thread. The real saving does not come from being rude or stripping prompts down to fragments. It comes from removing language that adds no instruction.

The same principle applies to Claude's reply. A vague request often produces a broad narrative answer. A precise request with a defined structure produces less text, fewer clarification rounds and fewer corrections.

Weak prompt Hi Claude. I was wondering if you could possibly help me look through this spreadsheet and tell me what stands out. It would be great if you could explain everything clearly and maybe give me some recommendations as well.
Stronger prompt Analyse this spreadsheet. Return: 1. The three strongest trends 2. Any anomalies 3. The likely cause of each anomaly 4. Three practical recommendations Use concise bullet points.
How To Implement It
  1. Lead with the task. Start with the action: analyse, compare, extract, rewrite, classify, debug or plan.
  2. Add only necessary context. Include information Claude must know to complete the task correctly. Remove backstory that does not affect the answer.
  3. State the constraints. Define tone, length, audience, exclusions, file type or technical limits where they matter.
  4. Specify the output. Ask for bullets, a table, JSON, a checklist, code, a ranked list or another usable format.
  5. Remove duplicated instructions. Say each rule once. Repetition usually adds tokens without improving compliance.
  6. Review before sending. Ask: does every sentence change what Claude should do? If not, remove it.
A Reusable Prompt Formula
Task: [what Claude must do] Context: [only what is required] Constraints: • [rule] • [rule] Output: • [format] • [length or structure]
Common Mistakes
  • Cutting so much context that Claude has to guess.
  • Using vague commands such as “make this better” without defining what better means.
  • Requesting a concise answer, then asking for several unnecessary sections.
  • Repeating the same instruction in different wording.
  • Assuming the shortest prompt is always the cheapest. A short but unclear prompt can create expensive correction loops.
When Not To Compress

Do not remove information that controls accuracy, safety, brand consistency or technical behaviour. The goal is not the fewest possible words. The goal is the fewest words needed for a reliable result.

Expected Impact

For everyday prompting, this can reduce input size and output drift immediately. The larger gain comes from fewer clarification messages, shorter replies and fewer failed attempts. Applied consistently, it becomes a permanent saving across almost every Claude workflow.

2. Use The Cheapest Model That Reliably Does The Job
Estimated saving60% to 80% in suitable tasks
DifficultyEasy
Best forNearly every Claude user
What This Means

Do not use the most powerful model by default. Match the model to the job. Simple extraction, classification, routing and formatting usually do not need the same reasoning power as architecture, difficult debugging or high risk analysis.

Why It Saves Money

Model choice affects cost before the prompt is even written. If a cheaper model can complete the task reliably, using a more expensive one adds cost without adding useful value.

How To Implement It
  1. List the task type before selecting a model.
  2. Use a lower cost model for repetitive, structured or low risk work.
  3. Use a stronger model when the task needs deeper reasoning, judgement or complex code work.
  4. Test the cheaper option on a small sample first.
  5. Escalate only when output quality is not reliable enough.
Example Use a lower cost model to classify 500 enquiries by category. Use a stronger model to design the classification system, resolve edge cases and audit mistakes.
Common Mistakes
  • Using the strongest model for every task out of habit.
  • Choosing the cheapest model even when errors would cost more than the saving.
  • Changing models without testing output quality.
Expected Impact

This is often the fastest cost reduction available because it changes the price of every input and output token used for that task.

3. Start Fresh Regularly
Estimated saving40% to 60% on long threads
DifficultyEasy
Best forLong working sessions
What This Means

Do not keep one conversation running indefinitely. Once a thread contains old attempts, corrections and completed work, create a concise handover summary and continue in a fresh chat.

Why It Saves Tokens

Claude must keep processing relevant conversation history. As the thread grows, later messages can carry a large amount of context that is no longer useful.

How To Implement It
  1. After a substantial milestone, ask Claude for a handover summary.
  2. Include the goal, decisions, current state, constraints and next action.
  3. Open a new conversation.
  4. Paste only the handover and the files still required.
  5. Keep the original thread available for reference instead of carrying all of it forward.
Handover prompt Create a concise handover for a new Claude session. Include: 1. Project goal 2. Decisions already made 3. Current status 4. Rules that must remain unchanged 5. The exact next task Exclude abandoned ideas and repeated discussion.
Common Mistakes
  • Starting fresh without preserving important decisions.
  • Pasting the entire old conversation into the new one.
  • Waiting until the thread is already difficult to manage.
Expected Impact

The saving grows with thread length. Fresh sessions are usually cheaper, clearer and less likely to be influenced by stale instructions.

4. One Topic Per Chat
Estimated saving20% to 40% less irrelevant context
DifficultyEasy
Best forUsers managing several tasks
What This Means

Keep each conversation focused on one project or one closely related stream of work. Do not mix website code, social posts, research and client proposals in the same thread.

Why It Saves Tokens

Unrelated history still occupies context. It can also confuse the model about which instructions, tone or files apply to the current task.

How To Implement It
  1. Create a separate conversation for each project.
  2. Split large projects into clear workstreams when needed.
  3. Name chats clearly so they are easy to reopen.
  4. Move to a new chat when the subject changes materially.
  5. Use a handover summary when work must move between chats.
Better structure Chat 1: Website architecture Chat 2: Landing page copy Chat 3: Market research Chat 4: Client proposal
Common Mistakes
  • Using one permanent chat for everything.
  • Creating too many tiny chats for tasks that genuinely belong together.
  • Forgetting which rules apply when copying content between projects.
Expected Impact

This reduces wasted context and usually improves consistency because each conversation has one clear purpose.

5. Use Projects For Recurring Documents
Estimated saving25% to 50% on repeated work
DifficultyEasy to moderate
Best forRecurring workflows
What This Means

Store stable reference material in a dedicated project instead of uploading or pasting the same information every time. This can include brand rules, client background, templates, code maps and operating procedures.

Why It Saves Tokens

Repeatedly sending the same context wastes time and input tokens. A well organised project also makes it easier to provide only the material needed for the current task.

How To Implement It
  1. Create one project for each recurring business, client or codebase.
  2. Upload only current, useful reference files.
  3. Remove duplicates and outdated versions.
  4. Add a short project instruction file covering purpose, rules and preferred outputs.
  5. Review the stored material regularly so Claude is not working from stale information.
Useful project contents Brand guidelines Approved offer and pricing Audience profile Reusable templates Current codebase map Formatting rules Known restrictions
Common Mistakes
  • Uploading every available file rather than the files that matter.
  • Keeping conflicting versions of the same document.
  • Assuming stored context never needs maintenance.
Expected Impact

The biggest benefit appears in work repeated weekly or daily. Setup takes a little time, but the saving continues across future sessions.

6. Never Upload A Full Document. Extract First.
Estimated saving60% to 90% on heavy documents
DifficultyEasy to moderate
Best forPDFs, reports and manuals
What This Means

Before uploading a large document, remove material Claude does not need. Convert it to clean text or Markdown, then keep only the relevant pages, sections or tables.

Why It Saves Tokens

Documents often contain repeated headers, footers, menus, formatting, image descriptions and pages unrelated to the task. Clean extraction keeps the useful information while removing noise.

How To Implement It
  1. Define the exact question you need answered.
  2. Extract the document into readable text or Markdown.
  3. Remove repeated page furniture and irrelevant sections.
  4. Keep headings so the structure remains clear.
  5. Upload only the cleaned extract needed for the task.
  6. Retain the original document separately for verification.
Example Do not upload a 180 page policy manual to answer one question. Extract: • The relevant policy section • Its definitions • Any exceptions • The revision date
Common Mistakes
  • Removing tables or headings that are necessary to interpret the text.
  • Trusting poor extraction without checking it against the original.
  • Uploading the full file again after creating a clean extract.
Expected Impact

This can produce very large savings when the original file is long, image heavy or badly structured.

7. Count Tokens Before Large Requests
Estimated savingPrevents oversized requests
DifficultyEasy
Best forLarge files and long prompts
What This Means

Check the approximate size of large prompts, files or combined context before sending them. The goal is to spot avoidable bulk before it becomes part of the session.

Why It Saves Tokens

Users often underestimate how large copied documents, logs and code files are. A quick count forces a useful question: does Claude need all of this?

How To Implement It
  1. Use a token counter for large blocks of text.
  2. Check each file separately before combining them.
  3. Remove duplicate content, logs and generated files.
  4. Summarise background material where full detail is unnecessary.
  5. Split very large tasks into stages with clear outputs.
Preflight check Before sending: 1. What is the total size? 2. Which parts are essential? 3. Can any section be summarised? 4. Can the task be split? 5. Will the output also be large?
Common Mistakes
  • Counting the prompt but ignoring attached files.
  • Splitting a task so aggressively that Claude loses necessary context.
  • Using token count as the only measure of quality.
Expected Impact

This is a prevention tool. It stops major waste before it happens and is especially useful for codebases, transcripts and research packs.

8. Use Structured Outputs
Estimated saving20% to 35% on outputs
DifficultyEasy
Best forData, analysis and repeatable work
What This Means

Tell Claude exactly how the answer should be returned. Use a table, JSON object, checklist, ranked list or fixed headings instead of asking for a general explanation.

Why It Saves Tokens

Open ended requests often produce introductions, repetition and commentary. A defined structure limits unnecessary output and makes the result easier to reuse.

How To Implement It
  1. Decide how the result will be used.
  2. Choose the smallest format that supports that use.
  3. Name the required fields or headings.
  4. Set limits such as maximum rows, words or bullets.
  5. Ask Claude to omit commentary outside the structure.
Example prompt Return a table with these columns: • Issue • Evidence • Severity • Recommended action Maximum 10 rows. No introduction or conclusion.
Common Mistakes
  • Requesting JSON when a simple list would be easier.
  • Creating too many fields.
  • Leaving length and scope unrestricted.
  • Using structured output for work that genuinely needs explanation.
Expected Impact

The result is usually shorter, clearer and easier to pass into another tool or workflow.

9. Cache Stable Context
Estimated saving70% to 90% on repeated context
DifficultyModerate
Best forAPI and repeated workflows
What This Means

Keep stable instructions and reference material in a reusable cached block so it does not need to be processed at full cost on every request.

Why It Saves Tokens

System prompts, brand rules, repository maps and long reference documents often stay unchanged across many calls. Caching is designed for exactly this kind of repeated context.

How To Implement It
  1. Identify context that remains stable across requests.
  2. Place stable material before changing user content.
  3. Keep the cached block consistent so it can be reused.
  4. Separate frequently changing data from stable instructions.
  5. Measure cache use and savings in your application logs.
  6. Refresh the cached content only when the source information changes.
Good candidates for caching System instructions Brand guidelines Repository architecture Product catalogue Policy manual Evaluation rubric
Common Mistakes
  • Caching content that changes on every request.
  • Changing the stable block unnecessarily.
  • Caching outdated or conflicting instructions.
  • Assuming caching removes the need to control total context size.
Expected Impact

For applications that reuse large blocks of context, caching can materially reduce repeated input cost. It has less value for one off conversations.

10. Plan Before You Build
Estimated saving30% to 70% fewer correction loops
DifficultyEasy
Best forCode and complex builds
What This Means

Ask Claude to inspect, reason and produce a plan before it edits files or generates a full build. Review the plan, correct misunderstandings, then approve execution.

Why It Saves Tokens

Most expensive build sessions are not expensive because of the first answer. They become expensive through repeated corrections after Claude misunderstood the structure, requirements or dependencies.

How To Implement It
  1. Provide the goal, current state and constraints.
  2. Ask Claude to inspect without making changes.
  3. Request a numbered implementation plan.
  4. Ask it to identify assumptions, risks and files affected.
  5. Correct the plan before execution.
  6. Build in controlled stages and verify each stage.
Planning prompt Do not edit anything yet. Inspect the project and return: 1. Your understanding of the goal 2. Files that need changing 3. Dependencies and risks 4. A step by step implementation plan 5. Anything that needs clarification Wait for approval before execution.
Common Mistakes
  • Approving a plan without checking its assumptions.
  • Allowing planning to become a long theoretical exercise.
  • Generating the whole build before confirming the architecture.
  • Changing scope during execution without updating the plan.
Expected Impact

A short planning stage usually costs less than several rounds of incorrect code, debugging and rollback. It also produces a cleaner audit trail for the project.

Before the tactics

Why Claude Tokens Disappear So Fast

Claude token usage can feel confusing because you are not only paying for the new words you type. In long sessions, the model also has to keep reading the conversation history, uploaded files, previous code, tool outputs, and every instruction still sitting inside the context window. The longer the session gets, the more old material gets carried into every new request.

That is why a simple follow-up can sometimes cost far more than expected. The visible message might be short, but the hidden workload can be huge. A messy project chat with old decisions, unused files, pasted code, repeated corrections, and unrelated side tasks becomes expensive because the model keeps dragging that weight forward.

The main problem is context bloat. Most people burn allowance because they work inside one long conversation, upload too much raw material, ask loose questions, and let the model reprocess information that should have been removed, compressed, or split into a fresh workflow.

This guide is built to help you stop that waste. The aim is practical control. Cleaner prompts, smaller context, tighter sessions, better preprocessing, smarter tool use, and fewer unnecessary model calls. Used properly, these habits make Claude cheaper, faster, and more predictable without reducing the quality of the work.

Start Here: Simple Model Choice Rule

The first cost-saving decision is not prompt wording. It is choosing the right Claude model before the job starts.
First practical rule

Use the cheapest model that can reliably do the job.

Most wasted Claude spend starts before the prompt is even written. If you use a premium reasoning model for simple extraction, summaries, routing, or repeatable admin work, you are burning allowance before optimization has a chance to help.

Haiku

Use for fast, simple, repeatable work: classification, extraction, short summaries, routing, tagging, filtering, and low-risk volume tasks.

Sonnet

Use as the everyday workhorse: coding, content, data analysis, automations, workflow agents, and most production tasks.

Opus

Use for serious reasoning: difficult planning, complex debugging, architecture decisions, deep analysis, and tasks where mistakes are expensive.

Fable

Use only for high-value work where accuracy, verification, or long autonomous execution matters enough to justify the higher spend.

Simple route: Haiku for volume → Sonnet for proper work → Opus for hard thinking → Fable only when being wrong costs more than the tokens.

Model Routing Matrix

A practical decision system for choosing the right model before the tokens are spent.
Model lineup · updated 20 August 2026

Anthropic released Claude Opus 5 on 24 July 2026 at the same price as Opus 4.8 ($5/$25 per million tokens), positioned as the new default model on Claude Max and the strongest model on Claude Pro. It approaches or beats Fable 5 on several published benchmarks at half Fable's price. Opus 4.8 remains active as a fallback target, not retired. Sonnet 5's $2/$10 pricing, originally introductory, became permanent on 10 August 2026.

Use Fable 5 when

The work is difficult, long-running, high-value, or requires autonomous execution with strong verification. Good examples are major codebase migrations, complex architecture, difficult debugging, finance-grade analysis, dense PDFs, and vision-heavy technical interpretation. Fable still leads on long-horizon autonomy and carries the strictest safety classifiers.

Use Opus 5 when

You want near-Fable reasoning and agentic coding at half the price. Opus 5 (released 24 July 2026) is now the default model on Claude Max and the strongest available on Claude Pro, and matches or beats Fable 5 on several published benchmarks. It also carries lighter safety classifiers than Fable, so it is usually the better default unless you specifically need Fable's long-horizon verification. Opus 4.8 remains available as a fallback target and for flagged Opus 5 requests.

Use Sonnet 5 when

You need strong production performance at a lower cost. Good for coding, content generation, data analysis, workflow agents, and most everyday automations. Sonnet 5's $2/$10 per million token pricing became permanent on 10 August 2026.

Use Haiku 4.5 when

You need speed and volume. Good for classification, routing, extraction, lightweight summaries, subagent scanning, first-pass filtering, and repetitive low-risk operations.

Real Cost Examples

These examples use official per million token prices. They are simplified estimates and exclude taxes, platform differences, private deals, and unusual tool usage.
ScenarioModelToken profileEstimated costWhat it teaches
Serious single promptFable 520k input + 4k output$0.40Output is expensive on Fable. Long answers add up fast.
Same profile on OpusOpus 520k input + 4k output$0.20Opus 5 matches Opus 4.8 pricing and is roughly half the base Fable price.
Same profile on SonnetSonnet 520k input + 4k output$0.08Sonnet 5 is usually the production workhorse for capable routine work.
Same profile on HaikuHaiku 4.520k input + 4k output$0.04Haiku is the volume option when the task is simple enough.
Cached Fable document workflowFable 5100k cache read + 5k new input + 10k output$0.65Caching saves heavily on repeated large context.
Uncached version of the same workflowFable 5105k input + 10k output$1.55Repeated context without cache is expensive.
Batch Fable processingFable 5 Batch100k input + 20k output$1.00Batch halves the standard request cost when waiting is acceptable.
Web search add-onAny1 web search + normal tokens$0.01 plus tokensSearch itself is charged separately at $10 per 1,000 searches and the retrieved content also becomes token context.

Core Strategies

After choosing the right model, use these fundamental approaches to keep token usage down across all workflows.
1
Stop treating prompts like sentences. Treat them like code.
Every word is an instruction. Remove filler. Remove politeness. State the task and the constraints. That's it.
Why it savesShorter is cheaper only when it remains complete. The larger saving comes from avoiding clarification turns and rework.
How to implement this
Steps
  1. Write the prompt under four labels: Task, Context, Constraints, and Output format.
  2. Add a clear definition of done and one example when format matters.
  3. Remove greetings and filler only after the instruction is complete.

Use when: Any task where ambiguity would cause follow-up questions.

Check: Claude can begin without asking what format, audience, source, or success criterion you meant.

2
Never upload a full document. Extract first.
Use MarkItDown to convert PDFs, images, and files into clean Markdown before uploading. Cuts token cost by up to 15x.
Why it savesClean extraction removes irrelevant pages, formatting, and image overhead. Claude still tokenizes the material you send, so keep only what the task needs.
How to implement this
Steps
  1. Open the document and identify the pages, sections, tables, or images required for the task.
  2. Export those sections to clean text or Markdown; crop images to the relevant area.
  3. Keep the original file outside the chat for verification.

Use when: Large PDFs, reports, decks, policies, and scanned packs.

Check: The upload contains only material that could affect the answer.

3
Use Repomix for codebase uploads.
Don't paste raw directories. Run repomix --output repo.md to package your entire repository into one token-counted file. Claude gets structure, not noise.
Measure itSavings depend on repository size, exclusions, and output format. Inspect the Repomix output and token estimate before uploading it.
How to implement this
Steps
  1. From the repository root run npx repomix@latest --style markdown --output repo.md.
  2. Exclude node_modules, build output, generated files, secrets, and large binaries.
  3. Open repo.md, inspect the token estimate, and remove anything irrelevant before sharing it.

Use when: Repository-wide architecture or review work.

Check: No credentials or generated bulk files appear in the packed output.

4
Context windows are not free memory. They're expensive real estate.
Every follow-up carries relevant conversation history, files, tool results, and instructions. As a session grows, a short new message can trigger a large amount of repeated context processing. Keep long-running work organised and cut dead history before it compounds.
Why it savesThe cost depends on the actual content, model, tools, and caching. There is no universal token total for a 20-message or 30-message chat.
How to implement this
Steps
  1. Keep one deliverable or problem per conversation.
  2. At milestones, create a short handover with decisions, constraints, unresolved items, and next step.
  3. Use a new chat, /compact, or /clear according to whether the history is still needed.

Use when: Long conversations, code builds, research, and document production.

Check: The next prompt does not depend on old failed attempts or unrelated topics.

5
Start fresh regularly. Not from psychology. From token math.
Every message you add multiplies the cost of future messages. After 15-20 messages, summarize everything important, copy the brief, open a new session, paste it in as starting context.
Why it savesA clean handover preserves decisions and next steps without dragging every failed attempt into the next phase.
How to implement this
Steps
  1. Ask Claude for a handover summary before leaving the session.
  2. Save the summary in a project file or notes document.
  3. Start a fresh conversation with that summary plus the exact next task.

Use when: When the session is confused, repetitive, or moving to a new phase.

Check: The new session can explain the current state without reading the old transcript.

6
One topic per chat. Always.
If you asked about a LinkedIn post and then a proposal in the same session, Claude re-reads the LinkedIn post every time it thinks about your proposal.
The mathsTokens burned on context that has nothing to do with the current task.
How to implement this
Steps
  1. Name each chat after one outcome, such as Pricing page review or Customer enquiry workflow.
  2. Open a new chat when the intended deliverable changes.
  3. Keep cross-project facts in Project knowledge rather than copying unrelated chat history.

Use when: Any work with multiple deliverables or clients.

Check: A new message in the chat still belongs to the title and objective of that chat.

7
Use ccusage to see what you're actually burning.
Claude Code logs every request locally. Run ccusage --summary to get real visibility on token usage and cost from those logs.
The mathsYou can't optimize what you can't measure. Most developers have no idea what they're spending.
How to implement this
Steps
  1. Run npx ccusage@latest for an overview.
  2. Use npx ccusage@latest daily and npx ccusage@latest blocks to identify expensive days and five-hour blocks.
  3. Compare usage with the task outcome and note which behaviours caused spikes.

Use when: Claude Code users who need evidence rather than guesses.

Check: You can name the projects, models, or sessions producing the highest cost.

8
Dry run prompts. Dont build in real time.
Write your Claude Code request in a text editor first. Test the structure. Then paste into Claude. Saves cycles of back-and-forth.
The maths5 back-and-forth messages to clarify a prompt burns tokens. 1 well-written prompt doesn't.
How to implement this
Steps
  1. Draft the full request in an editor before sending it.
  2. Include files, constraints, test commands, exclusions, and done criteria.
  3. For code changes, ask for a read-only plan before allowing edits.

Use when: Builds, migrations, automations, and expensive agentic work.

Check: The first execution request is stable enough that you will not immediately reverse it.

9
Use the @web search tool to fill knowledge gaps. Not as a default.
Web search costs tokens. Only use it for current information you genuinely don't have. If it's a static fact, skip it.
Why it savesSearch and fetched pages add tool calls and returned content. Use them when freshness or citations are required, not by default.
How to implement this
Steps
  1. Decide whether the answer requires current information or citations.
  2. If yes, specify a narrow search question, date range, and trusted source types.
  3. If no, keep web tools off and work from the supplied material.

Use when: News, pricing, product status, laws, current documentation, and factual verification.

Check: Every search result directly supports the requested answer.

10
Structured outputs, not narrative ones.
Ask for JSON, YAML, or tab-delimited output instead of paragraphs. Structured formats compress better and are easier to reuse.
Why it savesA schema, example, and explicit length limit reduce verbosity and repair turns. The exact reduction varies by task.
How to implement this
Steps
  1. Provide a JSON schema, table headings, or exact output template.
  2. Set maximum items, word count, or field lengths.
  3. Validate the result automatically when it will feed another system.

Use when: Extraction, classification, automation, reports, and API work.

Check: The output can be consumed without another formatting prompt.

11
Only regenerate the section that is wrong.
When one paragraph, function, slide, or table needs changing, identify it precisely and ask Claude to return only that replacement. Do not regenerate a complete deliverable to repair one small defect.
Why it savesTargeted revision reduces repeated output and makes comparison and approval easier.
How to implement this
Steps
  1. Quote or name the exact paragraph, slide, function, row, or heading to change.
  2. Describe the correction and state Return only the replacement section.
  3. Merge the replacement into the master file after review.

Use when: A deliverable is mostly correct and only one area needs revision.

Check: Unchanged content was not regenerated.

12
Use Artifacts for substantial standalone work, then edit the target area.
Artifacts are useful for code, documents, diagrams, and other work that benefits from a dedicated workspace and versioned iteration. They are not token-free. Use them because they make targeted revision easier, not because previous content magically disappears from usage.
Practical effectA stable workspace reduces accidental full rewrites, but usage still depends on the conversation, tools, model, and amount of content processed.
How to implement this
Steps
  1. Use an Artifact when the output benefits from a dedicated editable workspace.
  2. Highlight or identify the target area and request an in-place change.
  3. Keep a final master version and avoid spawning near-identical copies.

Use when: Substantial code, documents, diagrams, and interactive content.

Check: You can revise one part without asking for a full rewrite.

13
Edit the original message instead of stacking correction messages.
If the original request was wrong or incomplete, edit that earlier message and create a new branch of the conversation. Claude can then answer from the corrected instruction without carrying a chain of 'no, not that' messages forward. This is available in supported Claude Chat conversations; integrations such as Slack may behave differently.
Why it savesThe new branch starts from the corrected instruction instead of repeatedly processing the failed path and every correction that followed it.
How to implement this
Steps
  1. Open the earlier user message that caused the wrong direction.
  2. Choose the edit option, correct the instruction, and submit it to create a new branch.
  3. Compare branches and keep the one that leads to the right result.

Use when: The original brief was wrong, incomplete, or pointed Claude at the wrong source.

Check: The active branch no longer contains the correction chain. Note that some integrations do not support this.

14
Use Memory deliberately. Review it instead of blindly disabling it.
Claude now lets you view and edit its memory summary, switch chat search and memory on or off, and use incognito chats. Keep durable personal preferences in Memory, project-specific rules in Project instructions, and temporary or sensitive work in an incognito or separate chat.
Why it savesRelevant memory can prevent repeated explanations. Irrelevant or stale memory can add confusion, so review and prune it.
How to implement this
Steps
  1. Open Settings → Capabilities → View and edit memory.
  2. Remove stale items and keep only durable personal preferences.
  3. Use Project instructions for project rules and incognito chats for temporary or sensitive work.

Use when: Recurring personal preferences or long-term working style.

Check: Memory contains durable facts, not temporary project noise.

15
Claude Code: Use /compact before switching tasks.
Run /compact when context gets long. It summarizes the conversation and replaces raw history with a compressed version, keeping key decisions and trimming the noise.
The mathsDifferent from restarting. You keep continuity without carrying dead weight into the next task.
How to implement this
Steps
  1. Run /compact at a milestone, before the context becomes critical.
  2. Review the generated summary and restate any critical constraint it missed.
  3. Continue with one explicit next action.

Use when: A long task must continue in the same Claude Code session.

Check: The compacted session still knows the goal, files changed, tests, and remaining work.

16
Suppress non-essential traffic in Claude Code for controlled environments.
Set CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1 when you need to block non-essential Anthropic-bound traffic such as surveys and related background communication. This is a privacy and network-control setting, not a magic switch that removes the model calls required to complete your coding task.
Important distinctionUse it for controlled or restricted environments. Do not count it as a guaranteed reduction in task-token usage.
How to implement this
Steps
  1. Set CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1 in the environment that launches Claude Code.
  2. Restart Claude Code so the variable is applied.
  3. Use network or telemetry controls to confirm the intended non-essential traffic is blocked.

Use when: Restricted, private, or tightly controlled development environments.

Check: Do not claim task-token savings from this setting; verify it for privacy and network policy.

17
Use a small, relevant MCP toolset instead of installing everything.
MCP tools can reduce waste by retrieving the exact symbol, document, issue, or record Claude needs. They can also add context and tool-selection overhead. Install only the servers relevant to the current workflow, use /context to inspect consumption, and remove tools that are not earning their place.
Why it savesSelective retrieval is efficient. A crowded toolbelt can be slower and harder for Claude to navigate, even with deferred tool definitions.
How to implement this
Steps
  1. List active servers with claude mcp list and inspect context with /context.
  2. Disable or remove servers unrelated to the current job.
  3. Prefer read-only and narrowly scoped tool permissions where possible.

Use when: Workflows that need external data, code intelligence, or business systems.

Check: Each active server has a clear purpose and its tools are actually used.

18
Batch similar requests. Don't ask five times.
If you need variations on a theme, structure one request that asks for all of them at once instead of sending five separate prompts.
The mathsContext overhead is applied once per request, not per variation. Batching saves that overhead 4 times over.
How to implement this
Steps
  1. Collect similar requests that share the same source material and output format.
  2. Send them as a numbered batch in one structured message.
  3. Ask for one result per item and a compact error list for failures.

Use when: Classification, extraction, translation, summaries, and repeated transformations.

Check: Shared context is sent once and results remain separable.

19
Plan in Chat. Create the final file once.
For a spreadsheet, slide deck, Word document, PDF, or substantial artifact, agree the objective, structure, source material, and acceptance criteria in ordinary chat first. Trigger file creation only when the plan is stable, then request targeted edits rather than rebuilding the whole file.
Why it savesPlanning text is easier to revise than a generated binary file. Fewer full rebuilds means less processing and less review time.
How to implement this
Steps
  1. Use normal chat to agree the audience, purpose, outline, source list, and acceptance criteria.
  2. Confirm the plan before requesting a generated file.
  3. After creation, request targeted changes to specific pages, sheets, slides, or sections.

Use when: Presentations, spreadsheets, Word files, PDFs, and rich artifacts.

Check: You are not repeatedly rebuilding the entire file to decide its structure.

20
Use Projects for documents and instructions you reference repeatedly.
Create a Project for recurring work, upload the core documents to its knowledge base once, and add concise Project instructions. Claude can reuse that material across chats in the Project, and RAG can retrieve relevant sections when the knowledge base becomes large.
Why it savesYou avoid re-uploading the same source pack and can retrieve only the material relevant to the current question.
How to implement this
Steps
  1. Create a Project and give it a clear recurring purpose.
  2. Upload the core documents once and add concise Project instructions.
  3. Remove superseded files and refer to important documents by name in prompts.

Use when: Research packs, client accounts, brands, policies, products, and recurring analysis.

Check: New chats inside the Project can use the shared knowledge without re-uploading it.

Advanced Optimization

For developers and power users running Claude Code or multi-turn workflows at scale.
21
Install Serena for symbol-level code navigation.
Serena provides semantic, symbol-level code navigation and editing. Install uv, then run uv tool install -p 3.13 serena-agent followed by serena init. Configure the MCP connection using Serena's current documentation and test it on a non-critical repository before relying on it.
Best fitLarge, structured repositories where symbol relationships are more useful than repeatedly reading whole files.
How to implement this
Steps
  1. Install uv from its official instructions.
  2. Run uv tool install -p 3.13 serena-agent, then serena init.
  3. Follow Serena's current Claude Code integration guide, open a test repository, and verify symbol lookup before enabling edits.

Use when: Large codebases with useful language-server or symbol structure.

Check: Serena returns the correct symbol and references without broad file reads.

22
Use Context7 for current, version-specific library documentation.
Run npx ctx7 setup --claude, complete the OAuth setup, and choose CLI or MCP mode. Ask for the exact library and version you are using. Treat retrieved examples as documentation assistance, then run the code and confirm critical signatures against the library's own source or release notes.
Why it savesCurrent documentation reduces repair loops caused by outdated APIs, but it does not replace testing.
How to implement this
Steps
  1. Run npx ctx7 setup --claude and complete OAuth.
  2. Choose CLI or MCP mode and verify the installation.
  3. In the request, name the library and exact version, then test the generated code.

Use when: Libraries or APIs that change faster than model training data.

Check: The answer cites or reflects the version you actually use and passes a local test.

23
Manage the five-hour usage window deliberately.
Paid-plan usage is managed in five-hour sessions. Check Settings → Usage in Claude and /usage or /status in Claude Code where available. Start expensive builds when you have enough capacity, separate exploratory work from execution, and avoid spending the beginning of a fresh window on an unfocused conversation.
What this controlsThis does not reduce API token prices. It helps you use an included plan allowance without wasting a session window on avoidable context and retries.
How to implement this
Steps
  1. Check Settings → Usage before an expensive session.
  2. In Claude Code use /usage or /status where available and note the reset time.
  3. Reserve a clean window for long builds and move low-value exploration to a cheaper model or separate time.

Use when: Subscription users who regularly hit session limits.

Check: The heavy task starts with sufficient capacity and a stable brief.

24
Use an orchestrator only when the work can genuinely be divided.
Split independent tasks into clearly bounded subagents with distinct inputs, outputs, tools, and stop conditions. Use a stronger coordinator only for planning or synthesis when needed. Compare the result with a single-agent baseline because parallel work may reduce elapsed time while increasing total tokens.
Measure the outcomeTrack cost per successful deliverable, not agent count. More agents are useful only when their work does not overlap.
How to implement this
Steps
  1. List independent work packages and define one output contract for each.
  2. Assign subagents only where work can proceed without shared mutable state.
  3. Use the coordinator for synthesis and compare total tokens and success with a single-agent run.

Use when: Research, test generation, independent audits, and parallel review.

Check: Agents are not reading or producing the same material twice.

25
Use Claude Context MCP for semantic code search when its infrastructure is justified.
Claude Context indexes a codebase and retrieves semantically relevant sections. Its common setup uses an embedding provider and a Milvus or Zilliz vector store, so it is not automatically a zero-dependency local tool. Configure credentials carefully, index a test repository, and compare retrieval quality with Claude Code's built-in search before adopting it.
Trade-offIt can reduce broad file loading on very large repositories, but it adds indexing, storage, credential, and maintenance overhead.
How to implement this
Steps
  1. Create the required embedding-provider and Milvus/Zilliz credentials.
  2. Add the MCP using the current Claude Context quick-start command and index a test repository.
  3. Run known search queries, inspect retrieved code, and compare with built-in search before production use.

Use when: Very large repositories where semantic retrieval consistently outperforms normal navigation.

Check: Search returns relevant, current code and credentials are stored securely.

26
Use Token Savior only after benchmarking it on your own repository.
Token Savior exposes structural code-navigation tools and persistent session information through MCP. Install it from the maintainer's current instructions, run it on a representative branch, and compare task success, active tokens, latency, and failure modes with your normal workflow. Treat published savings as maintainer-reported until your own test confirms them.
Adoption ruleKeep it only when it improves cost per successful task without hiding necessary context or creating maintenance risk.
How to implement this
Steps
  1. Install from the current maintainer instructions and connect the MCP in a test environment.
  2. Choose a benchmark task set that includes navigation, impact analysis, and editing.
  3. Record tokens, elapsed time, task success, and failures against a no-tool baseline.

Use when: Large repositories where structural navigation may reduce repeated reads.

Check: Your own benchmark confirms the value; published percentages alone are not enough.

Claude Code Workflow Controls

Practical session habits for Claude Code users. These reduce repeated context, prevent bloated sessions, and stop simple jobs becoming expensive.
27
Choose the right Claude product, not only the right model.
Use Chat for quick questions, planning, and normal analysis. Use Projects when the same knowledge and instructions recur. Use Cowork for delegated, multi-step file work. Use Claude Code for repositories, terminals, tests, and software changes. Start with the lightest surface that can complete the task reliably.
Why it mattersAgentic tools and file creation can consume more allowance than a simple chat. Product routing is a separate cost decision from model routing.
How to implement this
Steps
  1. Use Chat for questions and planning; use Projects for recurring knowledge.
  2. Use Cowork for multi-step knowledge work across files and Claude Code for repositories, terminals, and tests.
  3. Move to a heavier surface only when the current one cannot complete the task reliably.

Use when: Before starting any substantial Claude job.

Check: The selected product matches the required actions, permissions, and files.

28
Use /clear between unrelated tasks.
When one job is finished, clear the session before starting a different job. Old debugging trails, failed ideas, and unrelated files should not travel into the next request.
The mathsFresh task, fresh context. Every irrelevant previous message becomes a hidden tax on the next answer.
How to implement this
Steps
  1. Save any critical output, commit code, or write a handover note.
  2. Run /clear before starting an unrelated task.
  3. Reintroduce only the files and objective needed for the new work.

Use when: Claude Code sessions moving to a different problem.

Check: The new task does not carry previous tool output or discussion.

29
Read files, not folders.
Ask Claude to open the exact files it needs instead of loading whole folders or the full codebase by default. Broad file loading should be reserved for architecture review, not simple edits.
The mathsTargeted file reads keep the context focused. Whole folders can drag in thousands of unnecessary tokens.
How to implement this
Steps
  1. Name the exact file path, function, section, or log range.
  2. Keep secrets, dependencies, build output, and large generated folders outside scope.
  3. Grant a whole folder only for architecture review or when selective access cannot work.

Use when: Code, local files, Cowork folders, and large document sets.

Check: Claude can explain why each included file is relevant.

30
Plan before you build.
For anything more than a tiny edit, ask Claude to inspect, plan, and confirm the approach before writing code. A short plan often prevents long rebuilds.
The mathsA small planning cost can prevent multiple expensive correction loops.
How to implement this
Steps
  1. Enter plan mode or explicitly request a read-only plan.
  2. Review affected files, tests, migration steps, and rollback approach.
  3. Approve execution only after the plan meets the done criteria.

Use when: Changes that touch multiple files, data, deployments, or external systems.

Check: No write action occurs before scope and tests are understood.

31
Audit your context before it runs away.
Use /context or the current context view to check what is being carried inside the session. If old files, tool outputs, or summaries are no longer useful, reset or compact.
The mathsMost token leaks come from context you forgot was still there.
How to implement this
Steps
  1. Run /context to see what occupies the Claude Code window.
  2. Remove dead MCPs, old files, repeated tool output, and obsolete instructions.
  3. Use /compact to continue or /clear to change tasks.

Use when: Long or tool-heavy Claude Code sessions.

Check: The largest context consumers are necessary for the next action.

32
Keep CLAUDE.md concise and move procedures into Skills.
Put stable project facts, commands, constraints, architecture notes, and conventions in CLAUDE.md. Keep it short because it is loaded into Claude Code sessions. When a section becomes a repeatable procedure or checklist, move it into a Skill and invoke it only when relevant.
Why it savesStable project context remains available without repeatedly pasting it, while optional procedures stop occupying every turn.
How to implement this
Steps
  1. Create a root CLAUDE.md with build commands, test commands, architecture facts, constraints, and conventions.
  2. Keep statements concise and remove instructions Claude can infer from the repository.
  3. Move long repeatable procedures into .claude/skills/<name>/SKILL.md.

Use when: Any maintained Claude Code repository.

Check: A new session can work correctly without a long onboarding prompt.

33
Describe the problem first.
Tell Claude what is broken, what outcome you want, and what you have already tried before prescribing the exact implementation. Let it diagnose before it builds.
The mathsWrong instructions create wrong code. Wrong code creates more fixes. More fixes burn more tokens.
How to implement this
Steps
  1. State expected behaviour, actual behaviour, and a minimal reproduction.
  2. Include the relevant error, recent change, environment, and what you already tried.
  3. Ask for a diagnosis and evidence before requesting edits.

Use when: Bugs, failing tests, integrations, and production incidents.

Check: Claude can distinguish symptom, cause, and proposed fix.

34
Avoid agent teams unless the task genuinely needs them.
Do not use multiple agents just because the option exists. For most focused jobs, one well-directed agent is cheaper, cleaner, and easier to control.
The mathsEvery extra agent can create extra context, extra summaries, and extra tool calls. Use teams only when the task benefits from parallel work.
How to implement this
Steps
  1. Start with one agent and a clear task.
  2. Add subagents only for independent research, verification, or parallel work.
  3. Give each agent a unique role, output, tool budget, and stop condition.

Use when: Complex work where parallelism or independent checking creates real value.

Check: No two agents are performing the same investigation.

Claude Settings Worth Reviewing

Settings that reduce repeated context, avoid unnecessary searches, and stop you using more model power than the task needs.
Settings Checklist

Use this as a practical setup pass before heavy Claude work. The goal is simple: use the cheapest capable model, keep reusable context organised, avoid unnecessary web searches, and stop Claude pulling in irrelevant memory or connector data.

Model

Do not default to the strongest model for every job. Use Haiku for quick answers, Sonnet for everyday work, Opus for serious reasoning, and Fable only when the task is difficult enough to justify premium cost.

Effort

Effort is one of the cleanest cost controls. Start lower for routine work, then increase only when the answer quality genuinely improves. Higher effort is not a status symbol. It is a billable setting.

Web Search

Turn web search on when freshness, citations, pricing, legal changes, product changes, or verification matter. Leave it off for stable facts, internal writing, rewrites, and tasks where your uploaded material already contains the answer.

Connectors

Connectors are useful when they stop you uploading or pasting the same files repeatedly. They can also waste tokens if Claude pulls broad context from Gmail, Drive, Slack, or other apps. Use them deliberately and keep the request narrow.

Projects

Use Projects for repeated workflows, client work, brand documents, codebases, research files, and long running tasks. Project knowledge keeps the work organised and can use retrieval rather than loading everything into the conversation at once.

Skills

Skills are worth using for repeatable processes. If you keep pasting the same instructions, formatting rules, brand rules, review checklist, or workflow steps, turn them into a Skill so Claude can follow the process without you rebuilding the prompt every time.

Memory

Memory can reduce repeated context, but it can also inject stale or irrelevant information. Review it regularly. Keep it clean. Turn it off if it starts adding noise to conversations that should stay focused.

Workspace Mode

Use workspace or cowork style modes for collaboration and handoffs, not as a guaranteed token saving tool. It may improve workflow clarity, but do not claim it saves tokens unless you have tested it against your own usage.

Practical rule: settings save tokens only when they reduce repeated context, unnecessary retrieval, unnecessary searches, or overpowered model use. If a setting adds more context than it removes, it is costing you.

Fable 5 Specific New June 2026

Fable 5 is priced at $10/$50 per million tokens, twice the base API price of Opus 5 (Anthropic's current default model, priced identically to Opus 4.8). These tips exist because Fable can be worth the money on hard work, but it becomes expensive fast when used for routine jobs.
Status update · August 2026

Fable 5 launched 9 June 2026, was suspended 12 June under a US export-control directive, and access was restored 1 July 2026. Since 20 July, Fable draws on your regular weekly allowance rather than a separate promotional bucket. Availability and terms can still move, so check Anthropic's current documentation before planning production workflows around it.

The tips below reflect the post-20-July terms. Treat exact figures as directional and re-check current pricing and limits before committing budget.

Avoid Hitting Fable Limits Priority

The single most common complaint: Fable feels capable enough to lean on for everything, then the allowance is gone by Wednesday. These six close that gap first, before the general cost-saving tips below.
35
Fable draws on your shared weekly allowance, not a separate bucket.
On Max plans and premium Team or Enterprise seats, Fable is capped at up to 50% of your weekly usage limit. It is not extra capacity on top of your plan. Every Fable session you run is spending from the same pool that covers Opus and Sonnet, so budget for it rather than treating it as free headroom.
Why this mattersAssuming Fable has its own allowance is the single most common reason people hit a wall mid-week without warning.
How to implement this
Steps
  1. Check your plan's current Fable terms before scheduling heavy Fable work.
  2. Treat Fable spend as drawn from the same weekly ceiling as everything else.
  3. Plan the week's heaviest Fable tasks early, not at the end of the cycle.

Use when: Any subscription plan running Fable 5.

Check: You know what fraction of this week's allowance Fable has already used.

36
A Fable session weighs roughly double an Opus session against your allowance.
Fable's pull on the shared weekly pool is around twice that of an equivalent Opus session. Two hours of Fable work can consume the same allowance as four hours of Opus. Before defaulting to Fable, ask whether Opus 4.8 would do the job at half the draw.
The mathsA week's worth of Opus-level output can be roughly halved in wall-clock Fable time if you are not deliberate about which tasks actually need it.
How to implement this
Steps
  1. Default new sessions to Opus 5 or Sonnet 5 unless the task specifically needs Fable.
  2. Reserve Fable for the difficult 10-20% of work identified elsewhere in this guide.
  3. Track allowance burn per model, not just total spend.

Use when: Any workflow choosing between Fable and Opus.

Check: Routine tasks are not silently running on the more expensive draw.

37
The Fable ceiling is model-specific, not the shared window: switch model instead of waiting.
When you hit "you've reached your Fable limit," that is a ceiling on Fable alone, separate from your overall weekly window. Switching to Opus or Sonnet with /model keeps you working immediately, because the remaining half of your weekly allowance is still fully available to those models.
Why it saves timeWaiting out a Fable-specific ceiling costs the rest of the day. Switching model costs one command.
How to implement this
Steps
  1. When you hit a Fable ceiling, run /model and switch to Opus 5 or Sonnet 5.
  2. Continue the same task without waiting for a reset.
  3. Return to Fable next week or once the allowance renews.

Use when: Any Fable session that hits its ceiling mid-task.

Check: You switch model within the same session rather than stopping work.

38
Run /usage before cutting anything, not after.
In Claude Code, /usage breaks down consumption by skill, subagent, plugin, and individual MCP server, and you can press d or w to switch between the last 24 hours and the last 7 days. Find out what is actually burning Fable allowance before you start restricting workflows blindly.
Why it savesGuessing at where allowance goes usually means optimising the wrong 5% and ignoring the real 80%.
How to implement this
Steps
  1. Run /usage and toggle the 24-hour and 7-day views.
  2. Identify the specific skill, subagent, or MCP server driving the heaviest draw.
  3. Fix that one source before making broader workflow changes.

Use when: Any point allowance feels like it is disappearing faster than expected.

Check: You can name the specific workflow responsible for the bulk of Fable spend.

39
On Pro plans and standard seats, Fable overuse shows up as a bill, not a lockout.
Pro plans and standard Team or Enterprise seats run Fable on pay-as-you-go usage credits rather than the weekly pool. That means there is no hard wall stopping you mid-task, which is convenient, but also means an unwatched Fable session can quietly rack up real spend. Set a spend alert if your platform supports one.
The riskNo lockout means no natural stopping point. A forgotten long-running Fable job is the most common source of surprise invoices.
How to implement this
Steps
  1. Confirm whether your seat runs on the weekly pool or on usage credits.
  2. Set a spend alert or budget cap if available on your plan.
  3. Review credit consumption at least weekly, not only when a bill arrives.

Use when: Pro plans and standard seats running any Fable work.

Check: You would notice an unusual spend spike within a day, not at month end.

40
Hitting the Fable ceiling does not lock you out of Claude.
Losing Fable access for the rest of the week is not the same as losing Claude. The other half of your weekly allowance remains fully available to Opus and Sonnet. Plan Fable for the specific tasks that genuinely need it, and treat Opus or Sonnet as the default rather than a fallback you resent switching to.
The reframeLosing Fable mid-week is a routing decision, not a work stoppage.
How to implement this
Steps
  1. Keep a mental or written list of tasks that specifically justify Fable.
  2. Default everything else to Opus or Sonnet from the start of the week.
  3. Treat a Fable ceiling as confirmation your routing is working, not a crisis.

Use when: Any week where Fable usage is being planned in advance.

Check: Hitting the Fable ceiling does not stop the day's work.

Fable 5: Architecture & Routing Patterns

Beyond limit management, these change how you structure Fable into a workflow rather than how you prompt it.
41
Use the effort parameter, not model switching, to control thinking depth.
Fable 5 has adaptive thinking always on. You cannot turn it off. The effort parameter is now the primary control: high for most tasks, xhigh for the most capability-sensitive workloads, medium or low for routine work.
The mathsLower effort settings on Fable 5 still often exceed xhigh performance on prior models. You do not need max effort on tasks that are not genuinely hard.
How to implement this
Steps
  1. Set an effort level appropriate to the task, such as medium for a production baseline.
  2. Run the same representative tasks at two effort levels.
  3. Record success, tokens, latency, and retries, then keep the lowest level that passes.

Use when: Supported models and workflows where effort is configurable.

Check: The selected effort level is based on an evaluation, not instinct.

42
Do not ask Fable 5 to show its reasoning in the response.
Prompts asking for hidden reasoning can trigger a refusal. If you need reasoning visibility, request summarized adaptive thinking explicitly using display: "summarized". Do not build workflows that depend on raw chain-of-thought text.
The mathsA refused request still costs tokens. You pay for the read, not just the answer.
How to implement this
Steps
  1. Ask for a concise rationale, assumptions, evidence, and uncertainty.
  2. Request a decision table or verification checklist when transparency matters.
  3. Do not ask the model to reveal private hidden reasoning.

Use when: High-stakes review, model comparison, and auditable decisions.

Check: The answer gives checkable evidence without unnecessary reasoning text.

43
Strip thinking blocks when falling back to a different model.
Thinking and redacted thinking blocks from Fable 5 are silently ignored by older models, but they still add input tokens. When you switch models after a classifier refusal, strip those blocks from prior assistant turns in the conversation history.
The mathsPeople building multi-model pipelines bleed tokens here without noticing. It adds up on every turn.
How to implement this
Steps
  1. When switching models, carry forward the user-visible task state and tool results, not hidden thinking blocks.
  2. Preserve tool-use continuity only where the API requires it for the same model flow.
  3. Test fallback paths before production.

Use when: API applications that route or fall back between models.

Check: The fallback request is accepted and contains only supported context.

44
Set a large max_tokens when running at high or xhigh effort.
At high and xhigh effort, max_tokens is a hard limit on total output including thinking tokens plus response text. If your cap is too low, the model gets cut off mid-reasoning, and you pay for the thinking without getting a complete answer.
The mathsStarting at 64k tokens and tuning from there is the documented recommendation. Do not leave it at a default.
How to implement this
Steps
  1. Estimate the required thinking and answer length before setting max_tokens.
  2. Leave enough budget for both on models where current-turn thinking counts toward the limit.
  3. Inspect stop_reason; increase only when truncation is proven.

Use when: API calls using extended or adaptive thinking.

Check: The answer completes without paying for an arbitrary maximum on every request.

45
Do not make the most expensive frontier model your automatic default.
Keep a balanced model as the everyday default and escalate intentionally for architecture, ambiguous debugging, high-stakes review, or work where failure costs more than the extra usage. Fable 5 material in this guide remains for reference, but its availability and status must be checked before use.
Routing ruleA costly default turns routine commands into premium usage. Escalation should be triggered by task difficulty or risk, not habit.
How to implement this
Steps
  1. Choose a balanced everyday model in Chat or Claude Code.
  2. Create explicit escalation rules for architecture, hard debugging, or high-risk review.
  3. Check current availability, pricing, and plan treatment before selecting Fable or any frontier model.

Use when: Every recurring workflow.

Check: Routine work does not silently run on the costliest option.

46
Understand what ultracode actually does before turning it on.
Ultracode is not an effort level. It sends xhigh to the model and additionally gives Claude Code standing permission to launch multi-agent dynamic workflows for substantive tasks. With ultracode on, Claude decides when a task warrants a workflow. A single request can trigger several workflows in a row.
The mathsEach request at ultracode uses more tokens and takes longer than at lower effort levels. Turn it on intentionally, not by default.
How to implement this
Steps
  1. Read the current /ultracode or workflow documentation before enabling it.
  2. Run it in a branch or disposable environment with a narrow objective.
  3. Monitor planned agents, tool actions, and output before approving wider access.

Use when: Only when the current Claude Code build supports the feature and the task needs deep multi-step work.

Check: You understand what is delegated and can stop or roll back the run.

47
Scope tightly before running ultracode or dynamic workflows.
Run on a single directory before the full repo. Watch the /workflows view for per-agent token usage, and stop early if a run is ballooning. Use the "Once" approval option to review the phase plan before it fans out. If it is planning more phases than the task warrants, deny and re-prompt with tighter scope.
The mathsUltracode on a large, unscoped task is the fastest way to an unexpected bill. Scope first, always.
How to implement this
Steps
  1. Create a dedicated Git branch or worktree.
  2. Set exact directories, files, tests, permissions, and exclusions.
  3. Stop the run if agent count, context, or edits expand beyond the agreed scope.

Use when: Dynamic or multi-agent code workflows.

Check: All changes remain isolated and traceable.

48
Use /deep-research as your entry point to dynamic workflows.
While you are getting familiar with how dynamic workflows behave, use /deep-research which is already scoped and verified. It burns far fewer tokens than a full codebase workflow and is the right starting point before you let workflows loose on a whole repo.
The maths/deep-research is pre-optimized. Full workflows on large codebases can balloon into 100k+ tokens without strong guardrails.
How to implement this
Steps
  1. Run /deep-research with one bounded question.
  2. Specify source types, date range, exclusions, and required citations.
  3. Inspect the workflow and source set before using the result.

Use when: Current, multi-source research supported by the installed Claude Code workflow.

Check: Every major conclusion is traceable to a relevant source.

49
Give Fable 5 explicit stop conditions on long agentic runs.
In coding benchmarks, Fable 5 has been observed continuing to work until an external harness cut it off. That makes it feel capable, but it also makes it expensive in agent workflows without strong stop rules. Define what done looks like before you start.
Why it savesExplicit completion and stop rules reduce unbounded tool loops. The saving depends on the task and the agent's behaviour.
How to implement this
Steps
  1. Define success, maximum iterations, maximum tool calls or elapsed time, and files allowed to change.
  2. State what requires human approval and what counts as a blocker.
  3. Require the agent to stop and report rather than improvise outside scope.

Use when: Long-running tool or agent workflows.

Check: The run has a clear terminal condition and cannot loop indefinitely.

50
Use orchestrator mode: Fable plans, cheaper subagents execute.
Have Fable decompose and plan a task, then dispatch the mechanical pieces (renaming symbols, running test suites, applying a defined refactor) to Sonnet 5 subagents. Fable's intelligence is spent on deciding how to break the problem down; the cheaper model does the repetitive execution.
Reported figuresThis pattern is reported to reach roughly 96% of single-Fable performance at around 46% of the cost, since delegated edits run at Sonnet's rate instead of Fable's. Treat the exact percentages as directional, not verified by Anthropic.
How to implement this
Steps
  1. Have Fable produce a task breakdown with clear, bounded subtasks.
  2. Dispatch mechanical subtasks to Sonnet 5 subagents with the plan as their brief.
  3. Reserve Fable for reviewing the merged result, not doing the merge work itself.

Use when: Large refactors, test writing, and codebase-wide mechanical changes.

Check: Fable time is spent deciding, not typing.

51
Use advisor mode: a cheaper model executes, Fable is consulted only at decision points.
Invert the pattern above for day-to-day work: let Sonnet 5 run the task as primary executor, and escalate to Fable only when it hits a genuine decision point or uncertainty. For most routine coding, the quality difference is not noticeable, and the escalation only fires when it is actually needed.
Reported figuresReported at roughly 92% of Fable's standalone performance for about 63% of the cost. Anthropic's own advisor tooling for this pattern reportedly cuts cost anywhere from 12% to 85% depending on the task pairing.
How to implement this
Steps
  1. Set Sonnet 5 as the default executor for the workflow.
  2. Define what counts as a genuine decision point requiring escalation.
  3. Route only those moments to Fable, then hand control back to Sonnet.

Use when: Day-to-day coding and content work where most decisions are routine.

Check: Fable is invoked only at points genuinely requiring its judgement.

52
Use task budget caps on autonomous Fable runs.
A beta task-budget header can cap total spend on an autonomous run before it starts, closing the gap the stop-conditions tip above only addresses behaviourally. At $50 per million output tokens, an agent that keeps working past the point of usefulness gets expensive fast without one.
Why it mattersField reports describe autonomous sessions running well past intended scope before anyone noticed. A hard budget cap turns that into a bounded, known cost.
How to implement this
Steps
  1. Check current API documentation for the task-budget header and its syntax.
  2. Set a budget slightly above your expected task cost, not an open ceiling.
  3. Treat a budget-exhausted run as a signal to review scope, not just retry.

Use when: Any autonomous or long-running Fable agent task.

Check: A runaway loop is capped by budget, not by someone noticing the bill.

53
Check which model actually opens before you start typing.
Claude Code and the Claude app can default to Fable 5 on open rather than whatever model you used last. A routine session can silently start billing at Fable rates before you have typed a word. Get in the habit of confirming the active model at the start of any session where cost matters.
Why it mattersThis is a pure accidental-spend trap: the cost difference between a Fable and Sonnet session compounds over an entire working session before anyone notices the default.
How to implement this
Steps
  1. Check the active model indicator when opening a new session.
  2. Set your preferred default model in settings if your plan allows it.
  3. Make checking the model the first habit of any cost-sensitive session.

Use when: Every new Claude Code or Claude app session.

Check: You know which model is active before sending the first message.

54
Let refusal fallback happen server-side, not through a blind retry.
Fable's safety classifiers can return a refusal rather than an API error. Retrying blindly at Fable rates wastes the full cost of the refused call. A fallbacks parameter or SDK middleware can route the refusal to a fallback model server-side, often with a cache credit, rather than eating the Fable-rate cost of a rerouted request.
Why it savesA server-side rerouted session runs at the fallback model's cheaper rate. An undetected refusal that ships downstream unfixed is a quality incident on top of the wasted spend.
How to implement this
Steps
  1. Check stop_reason on every response rather than relying on HTTP status alone.
  2. Configure the fallback parameter or middleware for your API integration.
  3. Log refusal category and rerouted model without storing sensitive content unnecessarily.

Use when: Production APIs and any automated Fable pipeline.

Check: A refusal produces a cheap, controlled reroute rather than a full-rate blind retry.

55
Disable tools Fable never calls in a given workflow.
Every available tool schema gets parsed on each call, and at Fable's per-token rate you are paying premium prices to parse tool definitions the model never touches in a given workflow. Load tools on demand rather than exposing the full toolkit to every session.
Why it savesA large standing toolkit adds fixed token overhead to every single call, whether or not that call ever uses most of the tools.
How to implement this
Steps
  1. Audit which tools a given Fable workflow actually invokes.
  2. Scope the tool list per workflow rather than exposing everything by default.
  3. Re-audit periodically as workflows evolve.

Use when: Any Fable session with a large standing tool or MCP server list.

Check: Tool schema overhead is proportional to what the workflow actually uses.

Tools & Resources

MCP servers, CLI tools, and plugins that directly reduce token consumption.

MCP Servers for Claude Code

These connect to Claude Code and load tools that significantly reduce the tokens spent on code discovery and context retrieval.

Serena
Reads your code by symbol rather than loading entire files. Claude gets what it needs without reading everything.
Context7
Pulls current API documentation on demand. Eliminates tokens wasted on outdated or hallucinated API references.
Claude Context
Semantic search that retrieves only the relevant code sections, not the whole repository.
Token Savior
Symbol-level navigation with session memory. Keeps Claude oriented without loading dead context.

CLI Tools & Preprocessors

MarkItDown
Converts PDFs, images, and files into clean Markdown before uploading. Cuts token cost by up to 15x.
Repomix
Packages an entire repository into a single, token-counted file. Clean and structured for Claude to process.
ccusage
Shows your exact token usage and cost from local Claude Code logs. Real visibility on what's being consumed.
Code Review Graph
Generates a Tree-sitter map of your codebase. Loads only what matters for each specific task.

Plugins & Skills

Caveman
Instructs Claude to respond in shorthand. Significantly reduces output token count without losing meaning.
Context Mode
Sandboxes tool output into SQLite rather than injecting it into your context window directly.
Token Optimizer
Hunts ghost tokens and compacts context intelligently. Removes overhead you didn't know was there.
claude-mem
Session persistence plugin. Captures context in SQLite and injects relevant history into new sessions.
⚠
claude-mem: Powerful, but Not Set-and-Forget
claude-mem captures session context and injects relevant history into new sessions. Install via /plugin marketplace add thedotmack/claude-mem then /plugin install claude-mem inside Claude Code. Do not use npx claude-mem install as that only installs the SDK without the hooks. A known issue can cause it to burn your entire allocation in under 10 messages if misconfigured. There is also an unauthenticated HTTP API on port 37777 that any local process can read. Use on a personal machine only, not a cloud VM. Treat it as a power tool, not a set-and-forget install.

Deep Verified Edition

This extension adds current Anthropic model pricing, Claude Fable 5 usage guidance, cost formulas, workflow decisions, and verified resource links. Pricing is stated in USD per million tokens unless noted otherwise.
Verified source base

This section is based on current Anthropic documentation for model pricing, Claude Fable 5 prompting, adaptive thinking, effort levels, prompt caching, token counting, tool pricing, refusals and fallback, rate limits, and usage monitoring.

Treat all pricing as operational guidance, not a permanent promise. Model pricing, tool pricing, and availability can change. Always check Anthropic's live pricing page before committing to pricing, usage budgets, or production rollouts.

Claude Model Token Costs

The practical pricing table. MTok means one million tokens. Input is what Claude reads. Output is what Claude writes. Thinking tokens are billed as output tokens when used.
Model Base input 5 min cache write 1 hour cache write Cache hit Output Batch input Batch output
Claude Fable 5$10$12.50$20$1$50$5$25
Claude Mythos 5
Limited availability
$10$12.50$20$1$50$5$25
Claude Opus 5
Default on Max, strongest on Pro
$5$6.25$10$0.50$25$2.50$12.50
Claude Opus 4.8
Active, fallback target
$5$6.25$10$0.50$25$2.50$12.50
Claude Opus 4.7$5$6.25$10$0.50$25$2.50$12.50
Claude Opus 4.6$5$6.25$10$0.50$25$2.50$12.50
Claude Opus 4.5$5$6.25$10$0.50$25$2.50$12.50
Claude Sonnet 5
Permanent pricing since 10 Aug 2026
$2$2.50$4$0.20$10$1$5
Claude Sonnet 4.6$3$3.75$6$0.30$15$1.50$7.50
Claude Sonnet 4.5$3$3.75$6$0.30$15$1.50$7.50
Claude Haiku 4.5$1$1.25$2$0.10$5$0.50$2.50
Claude Haiku 3.5
Retired except Bedrock and Vertex AI
$0.80$1$1.60$0.08$4Check platformCheck platform
Total request cost = uncached input cost + cache write cost + cache read cost + output cost + server tool charges + runtime charges where applicable.

Plain formula:
(input_tokens × input_price / 1,000,000) + (cache_creation_tokens × cache_write_price / 1,000,000) + (cache_read_tokens × cache_hit_price / 1,000,000) + (output_tokens × output_price / 1,000,000) + tools
Pricing modifiers

Prompt caching: a 5 minute cache write costs 1.25x base input, a 1 hour cache write costs 2x base input, and a cache hit costs 0.1x base input. Cache hits are where the savings happen.

Batch API: batch processing is charged at 50 percent of standard input and output pricing. Use it for non-urgent bulk work such as classification, summarisation, extraction, and mass rewrites.

US-only inference: for Claude Opus 4.6, Claude Sonnet 4.6, and later models including Opus 5 and Sonnet 5, US-only inference applies a 1.1x multiplier across token categories.

Fast mode: research preview fast mode applies premium pricing to Opus 4.6, Opus 4.7, and Opus 4.8. Opus 4.8 fast mode is priced at $10 input and $50 output per MTok. Opus 4.6 and 4.7 fast mode are priced at $30 input and $150 output per MTok. Opus 5 fast mode runs at roughly 2.5x default speed for double the standard rate: $10 input and $50 output per MTok, available on the first-party API only.

Opus 5 rate limits: Opus 5 sits in its own separate rate-limit bucket. Opus 4.8, 4.7, 4.6, and 4.5 share one combined pool, but Opus 5 does not draw from it. Moving traffic from an older Opus version to Opus 5 (or back) does not free up headroom on the other pool, so budget and rate-limit planning for the two need to be tracked independently.

Claude Fable 5: Verified Usage Guide

Fable 5 is the most capable widely released Claude model. It is built for hard reasoning, long-horizon agentic work, complex coding, enterprise workflows, and vision-heavy document tasks.
56
Reserve Fable 5 for the work that justifies it.
Use Fable 5 when the task is difficult, ambiguous, long-running, or expensive to get wrong. Examples include large migrations, complex system design, multi-stage analysis, senior-level reasoning, dense document interpretation, and autonomous agent work. Do not default to Fable 5 for routine copy edits, simple summaries, or basic Q&A.
How to implement this
Steps
  1. Classify the task by difficulty, ambiguity, and cost of error.
  2. Use a lower-cost model for routine drafting, extraction, and mechanical edits.
  3. Escalate only failed or high-value cases and track the escalation rate.

Use when: Model-routing systems and manual model choice.

Check: The premium model is reserved for cases that need it.

57
Use effort as the main cost control.
Fable 5 uses adaptive thinking by default and it cannot be disabled. The effort setting is the practical control for depth, latency, and cost. Start with high for serious work, step down to medium or low for routine tasks, use xhigh only when your own tests prove the quality gain is worth the extra thinking tokens, and reserve max for rare tasks where budget matters less than capability.
How to implement this
Steps
  1. Create a fixed evaluation set from real tasks.
  2. Run medium and high effort with the same prompts and scoring rubric.
  3. Compare quality, retries, latency, and total tokens.

Use when: Production workflows with repeated task types.

Check: The chosen setting gives the lowest cost per passing result.

58
Do not use Fable 5 like a normal chat model during long runs.
Hard Fable requests can run for many minutes, and autonomous runs can last for hours. Build in progress indicators, streaming, async job handling, and checkpoints. A UI that expects an instant answer will make Fable look broken even when it is working properly.
How to implement this
Steps
  1. Run long work asynchronously with durable job IDs.
  2. Save checkpoints and make retry operations idempotent.
  3. Report progress separately from final completion.

Use when: Agent jobs, research, migrations, and bulk processing.

Check: A timeout or disconnect does not force the whole job to restart.

59
Prevent overplanning with direct execution rules.
Fable 5 can spend extra tokens gathering context or considering options. For operational prompts, tell it to act once it has enough information, avoid re-deriving settled facts, and give a recommendation rather than a broad survey when a decision is needed.
How to implement this
Steps
  1. Tell Claude to inspect once, choose the best supported approach, and execute.
  2. Allow alternatives only when blocked or when the decision is genuinely irreversible.
  3. Set a maximum planning phase before action.

Use when: Tasks where the model keeps proposing options instead of completing work.

Check: The output contains an implemented result, not an endless strategy discussion.

60
Set explicit boundaries before tool use.
Fable 5 can take initiative. That is useful, but it needs guardrails. Tell it when to report findings only, when not to edit, when not to refactor, and when to ask before destructive or irreversible actions.
How to implement this
Steps
  1. Use a branch, sandbox, or isolated folder.
  2. List forbidden actions such as production deploys, deletions, purchases, or external messages.
  3. Require approval for destructive or external writes.

Use when: Any tool-enabled or autonomous workflow.

Check: The agent cannot cross a business or technical boundary without consent.

61
Ground progress reports in tool evidence.
For long runs, tell Fable 5 to report only progress it can verify from tool results. This reduces false completion claims, vague status updates, and confident summaries that are not backed by actual execution.
How to implement this
Steps
  1. Require progress claims to name the command, file, test, or external result that proves them.
  2. Ask for failed checks as well as passed checks.
  3. Reject done unless the acceptance criteria have evidence.

Use when: Coding, deployment, research, and automation work.

Check: Completion can be independently verified.

62
Use verifier subagents for high-value work.
For serious coding, analysis, and document work, ask Fable to establish a verification interval and use fresh-context verifier subagents. Separate verification often beats self-critique because the verifier is not carrying the same assumptions as the builder.
How to implement this
Steps
  1. Give the verifier the acceptance criteria and final artifact, but not the builder's conclusions.
  2. Use read-only permissions where possible.
  3. Have the verifier return defects, evidence, and severity rather than rewriting automatically.

Use when: High-value code, reports, calculations, and client deliverables.

Check: The check is independent and does not merely agree with the builder.

63
Let subagents run in parallel where the work is independent.
Fable 5 is better than prior models at dispatching and sustaining parallel subagents. Use this for independent research streams, codebase scans, test writing, document extraction, and QA. Keep orchestration clear so subagents do not duplicate each other.
How to implement this
Steps
  1. Divide work into non-overlapping units with a shared output schema.
  2. Run units in parallel only when they do not depend on each other's edits.
  3. Use one merger or coordinator to resolve conflicts and duplicates.

Use when: Research sets, independent tests, content batches, and audits.

Check: Parallel work reduces elapsed time without multiplying the same context.

64
Create a memory system for repeated long projects.
For ongoing work, give Fable a markdown memory folder or project notes file. Store confirmed lessons, constraints, and corrections. Keep each note short. Delete wrong or outdated notes. Do not save information already obvious from the repository or current brief.
How to implement this
Steps
  1. Create session-notes.md with confirmed decisions, constraints, files changed, unresolved issues, and next actions.
  2. Update it only at milestones, not after every message.
  3. Remove stale decisions and date each handover.

Use when: Projects that span several sessions or people.

Check: A new session can resume accurately from one short file.

65
Do not ask Fable to reproduce hidden reasoning.
Prompts that ask for internal reasoning can trigger reasoning-extraction refusals. Ask for a concise explanation, decision summary, audit trail, or verified evidence instead. If your application needs visibility, use structured summarized thinking where supported, not raw hidden reasoning text.
How to implement this
Steps
  1. Ask for the recommendation, supporting evidence, assumptions, and confidence.
  2. Request test cases or citations for important claims.
  3. Keep hidden chain-of-thought requests out of the workflow.

Use when: Decisions that need review or audit.

Check: The reasoning is concise, checkable, and tied to evidence.

66
Plan for Fable refusals and fallback.
Fable 5 includes classifiers for high-risk cybersecurity, biology and life sciences, and reasoning extraction. A declined request can return stop_reason: refusal rather than an API error. Since Opus 5's release, Anthropic routes biology-related requests blocked on Fable to Opus 5 rather than Opus 4.8, and Opus 5 is the more capable general fallback target. Build fallback to Opus 5 (or Opus 4.8 if unavailable) where appropriate and bill the actual model used.
How to implement this
Steps
  1. Handle refusal or safety stop reasons explicitly in code.
  2. Log the model, category, and request metadata without storing sensitive content unnecessarily.
  3. Use a fallback only when it is appropriate and do not automatically weaken safeguards.

Use when: Production APIs and model-routing systems.

Check: A refusal produces a controlled user experience rather than a broken loop.

67
Give the reason behind the task.
Fable performs better when it understands the purpose of the work. Include who the task is for, what the output enables, what matters most, and what should be avoided. This reduces wasted exploration and improves final judgement.
How to implement this
Steps
  1. State the business purpose, intended user, success measure, and cost of being wrong.
  2. Add the reason for unusual constraints.
  3. Remove background that cannot affect the decision.

Use when: Ambiguous strategy, design, writing, and architecture tasks.

Check: Claude can prioritise trade-offs correctly.

68
Use clear final-summary rules.
Long tool-heavy runs can produce dense summaries. Tell Fable that the final response should open with the outcome, use complete sentences, explain identifiers in plain language, and separate what was done from what still needs input.
How to implement this
Steps
  1. Specify a final template: outcome, files or artifacts changed, tests or checks, unresolved risks, and next action.
  2. Set a maximum length.
  3. Keep progress logs separate from the final summary.

Use when: Long Claude Code, Cowork, or agentic tasks.

Check: The final answer is a usable handover rather than a transcript.

69
Do not surface context-budget countdowns to the model unless needed.
In long sessions, explicit remaining-context signals can make Fable suggest handoff or summarisation early. If your harness displays these signals, reassure the model to continue unless it is genuinely blocked or asked to hand off.
How to implement this
Steps
  1. Do not inject arbitrary countdown messages into the model context.
  2. Track budgets in the harness or monitoring layer.
  3. Notify the model only when it must change behaviour, stop, or produce a handover.

Use when: Custom agents and long-running orchestration.

Check: Budget management does not consume repeated prompt space.

70
Use a send-to-user tool for long asynchronous work.
If the agent needs to show a message, partial result, code block, or progress update without ending the run, create a simple send-to-user tool. This protects important reader-facing or user-facing content from being lost inside a long working thread.
How to implement this
Steps
  1. Use a dedicated progress channel or notification tool for asynchronous updates.
  2. Persist important outputs in files, databases, or artifacts.
  3. Send the final result once, with links to durable outputs.

Use when: Long-running agents and managed jobs.

Check: Progress messages do not become the only record of the work.

Fable 5 Performance Context

Benchmarks should not be used as hype. They should be used to decide when Fable earns its higher price.
Practical interpretation

Fable 5 is strongest when the task is hard enough that a better first attempt saves time, retries, tool calls, or human correction. That is the real business case. The higher token price is not automatically bad if the model finishes complex work in fewer turns.

The danger is using frontier capability on jobs that do not need it. Simple screening, lead capture, extraction, formatting, basic support replies, and routine chat should usually start on a cheaper model unless your own tests prove otherwise.

FindingWhat it means for your workflowCost decision
Fable is 2x Opus 5 per tokenEvery unnecessary output token hurts more. Long answers, verbose planning, and repeated context become expensive quickly.Use Fable only when success quality or fewer retries justify the premium.
Medium effort can still be very strongDo not automatically jump to xhigh because the task feels important. Test medium and high first.Use xhigh only after evidence shows it improves the final result.
Fable is better suited to long horizon workIt is built for complex coding, dense reasoning, multi step analysis, vision heavy work, and autonomous operations.Give it hard problems, not simple volume tasks.
Token counts can shift on newer tokenizersOlder estimates can understate the bill. Similar text can produce more tokens depending on the model family and content.Recount tokens on your own prompts before changing production models.

Effort Settings: What to Use and When

Effort controls the trade-off between intelligence, latency, and cost. On Fable 5, adaptive thinking is always active, so effort matters a lot.
EffortUse whenCost riskOperational advice
LowSimple transformations, formatting, short extraction, classification, routine subagent work.LowestUse for speed-sensitive and high-volume tasks where small quality differences do not matter much.
MediumBalanced agentic tasks, moderate analysis, routine coding with clear specs.ModerateGood default for cost-controlled production where high is overkill.
HighComplex reasoning, difficult coding, serious agentic tasks.HighDefault starting point for Fable 5 when quality matters.
xhighLong-running coding and agentic work over 30 minutes, repeated tool use, detailed search, complex systems.Very highUse deliberately. Add checkpoints, stop conditions, verification, and progress reporting.
MaxHighest capability tasks where budget and latency are secondary.ExtremeUse only when the outcome is more valuable than the token spend.

Cost Control Playbook

The highest-leverage ways to reduce spend without damaging output quality.
71
Count tokens before sending large requests.
Use Anthropic's token counting endpoint before expensive prompts, big PDFs, image-heavy messages, tool-heavy agents, and long system prompts. The count is an estimate, but it is enough to stop obvious waste before it happens.
How to implement this
Steps
  1. Call the token-counting endpoint with the actual target model and full message structure.
  2. Include tool schemas, images, PDFs, and system text in the preflight.
  3. Route, compress, split, or reject requests that exceed your threshold.

Use when: Large API requests and automated pipelines.

Check: The estimate is generated with the same model and payload shape as production.

72
Cache stable context and stop changing it.
Prompt caching only works properly when the reusable prefix is stable. Avoid timestamps, constantly changing instructions, random ordering, and needless edits before the cache breakpoint.
How to implement this
Steps
  1. Put stable instructions and reference material at the start of the prompt in a consistent order.
  2. Remove timestamps, random IDs, and changing metadata from the cached prefix.
  3. Use cache_control or automatic caching according to the current API documentation.

Use when: Repeated API calls sharing large static context.

Check: Cache-read tokens rise and the stable prefix hash stops changing.

73
Put big static context before short changing instructions.
Documents, system rules, tool definitions, and project context should sit in the cacheable part of the prompt. The actual user request can change after that.
How to implement this
Steps
  1. Order the prompt as system instructions, tools, static documents, then the changing user request.
  2. Keep the static blocks byte-for-byte stable where possible.
  3. Add dynamic data after the cacheable prefix.

Use when: Prompt-cached agents, document QA, and repeated analysis.

Check: A small request change does not invalidate the large prefix.

74
Use batch processing for work that can wait.
If the job is not interactive, batch it. CV screening, lead classification, document extraction, bulk summaries, and large rewrite jobs are usually better as batch requests.
How to implement this
Steps
  1. Submit non-urgent independent requests through the Message Batches API.
  2. Give every item a unique custom ID and store the input mapping.
  3. Poll the batch, retry only failed items, and reconcile results by ID.

Use when: Work that can wait and does not require an immediate response.

Check: The batch is complete without duplicate processing.

75
Avoid unnecessary web search.
Web search adds a separate search charge and pulls retrieved content into the conversation as tokens. Use it for current information, verification, and citations. Do not use it for stable facts already in your own material.
How to implement this
Steps
  1. Turn search on only for current facts, source verification, or live pages.
  2. Use a narrow query and trusted domains where possible.
  3. Stop searching once the evidence is sufficient.

Use when: Current research and citations.

Check: Search output materially changes or supports the answer.

76
Limit web fetch size.
Web fetch itself has no extra charge beyond tokens, but fetched pages can be huge. Set content limits where possible. A large documentation page or PDF can silently become a major input-token load.
How to implement this
Steps
  1. Fetch only the relevant URL, section, line range, or result.
  2. Set response-size limits and strip navigation, scripts, and duplicate page chrome.
  3. Summarise or chunk large pages before model processing.

Use when: Web agents and research pipelines.

Check: Fetched content is mostly evidence, not page furniture.

77
Separate live agents from bulk processors.
Live agents need speed and interaction. Bulk processors need low cost and throughput. Do not run batch-style work inside a live conversational session unless there is a clear reason.
How to implement this
Steps
  1. Run interactive user requests and bulk jobs in separate queues or workers.
  2. Give each queue its own rate and spend budget.
  3. Protect live capacity from batch spikes.

Use when: Production systems with both real-time and background work.

Check: A bulk job cannot degrade the live user experience.

78
Track real cost after deployment.
Use the Claude Usage and Cost API or console reporting for organization accounts. Log model, input tokens, cache creation tokens, cache read tokens, output tokens, tool usage, latency, and task result.
How to implement this
Steps
  1. Log model, input, cache writes, cache reads, output, tools, latency, result, and failure reason.
  2. Review cost per successful task weekly.
  3. Investigate workflows with rising retries or low cache use.

Use when: Any deployed API or agent system.

Check: You can connect spend to a business outcome and a specific request type.

79
Watch cache hit rates.
If cache_read_input_tokens drops to zero, your workflow probably changed the cacheable prefix. Cache diagnostics can help identify what invalidated it.
How to implement this
Steps
  1. Record cache_creation_input_tokens and cache_read_input_tokens.
  2. Hash the stable prompt prefix and log changes.
  3. Find the variable field or ordering change that invalidates the cache.

Use when: Cached API workflows.

Check: Repeated requests show consistent cache reads.

80
Route by task value, not model prestige.
A cheaper model that needs ten retries can cost more than a stronger model that succeeds once. A stronger model used on easy work is also waste. Route by total task cost, success rate, latency, and risk.
How to implement this
Steps
  1. Build a small evaluation set with pass/fail criteria for each task class.
  2. Run candidate models and routing rules on the same set.
  3. Route by cost per passing result and use fallback only after a defined failure.

Use when: Automated model routing.

Check: Routing decisions are based on measured outcomes.

81
Treat medium effort as your production test setting.
When Fable is being used for repeatable work, start by testing medium against high before touching xhigh. If medium gives the same business outcome, keep it there. The reader should understand the point clearly: higher effort is not a badge of quality. It is a billable setting.
The mathsIf xhigh adds 4,000 thinking tokens to a call, that is about $0.20 extra on Fable output pricing. At 1,000 calls a day, that single setting can add about $200 daily.
How to implement this
Steps
  1. Use medium effort as a test baseline where supported.
  2. Compare it with high effort on real tasks and fixed scoring.
  3. Adopt the lowest effort that consistently passes.

Use when: Repeated production tasks.

Check: The setting is validated against quality, latency, and token use.

82
Make prompt caching a required part of every Fable build.
At Fable prices, caching is not a nice bonus. It is load bearing economics. Keep the system prompt, brand rules, long documents, repo maps, and reusable project knowledge stable so the expensive context is paid once, then read back cheaply.
The mathsA cache hit is charged at 10% of normal input price. Fable also lowers the cacheable prompt minimum to 512 tokens on the Claude API, so smaller stable prefixes can now count.
How to implement this
Steps
  1. Enable supported prompt caching for every repeated large-prefix workflow.
  2. Keep tools and static context stable.
  3. Monitor cache reads and current model support before relying on the saving.

Use when: Fable or other supported API builds with repeated context.

Check: The production logs confirm cache hits rather than assuming them.

83
Use benchmarks as routing signals, not sales slogans.
Fable scoring highly on difficult coding and long horizon work matters because it tells you where the model may save retries, tool calls, and human review. It does not mean every workflow should use Fable. The harder the task, the more likely the premium makes sense.
The mathsIf Fable costs 2x per token but solves a frontier task in one run where Opus needs three attempts, Fable can still be cheaper per solved outcome.
How to implement this
Steps
  1. Use public benchmarks only to shortlist models.
  2. Create an internal set from your own inputs, constraints, and failure costs.
  3. Test quality, latency, and cost under production settings.

Use when: Model selection and procurement decisions.

Check: The chosen model wins on your tasks, not just a leaderboard.

84
Cap the answer to the artifact you actually need.
Do not ask Fable for a long explanation when what you need is a JSON object, a patch, a scoring table, or a short decision. Output tokens are the expensive side of the bill. Make the model deliver the useful artifact, not a lecture around it.
The mathsFable output is $50 per million tokens. A verbose uncapped response can cost more than the actual task required.
How to implement this
Steps
  1. Name the exact artifact or schema required.
  2. Set maximum sections, rows, words, or tokens.
  3. State No preamble or commentary when downstream systems need clean output.

Use when: Reports, API responses, code generation, and automation.

Check: The response ends when the required artifact is complete.

85
Batch anything nobody is waiting on.
If nothing downstream is blocked by the response inside the next hour, batch the job. Nightly evaluations, bulk extraction, data cleanup, document scoring, and mass rewrites should not run through an interactive workflow unless there is a strong reason.
The mathsBatch API pricing is 50% of standard input and output pricing. On Fable, that means $5 input and $25 output per million tokens instead of $10 and $50.
How to implement this
Steps
  1. Ask whether a human needs the result within the next hour.
  2. If not, collect jobs into a batch with custom IDs.
  3. Retry only failed IDs and keep a deduplication record.

Use when: Large volumes of independent requests.

Check: Nobody is blocked waiting for an interactive response.

86
Design around slow first token behaviour.
Fable can do heavy thinking before it starts visibly answering. For serious jobs, use job states, progress messages, queued tasks, and saved outputs. Do not make the user stare at a silent interface and assume the model has failed.
The mathsLatency is not only a UX issue. Failed retries caused by impatience can double the token spend on the same task.
How to implement this
Steps
  1. Model the job as queued, running, completed, failed, or timed out.
  2. Use a sensible timeout and backoff rather than duplicate impatient retries.
  3. Expose status to the user without resubmitting the request.

Use when: Slow models, research, batches, and long agent runs.

Check: One logical job creates one billable execution path.

87
Recount tokens before trusting old cost estimates.
Newer Claude model families use newer tokenization behaviour, and older estimates can be wrong. Before moving a production workflow to Fable, run token counting on real prompts, real documents, real tool schemas, and real expected outputs.
The mathsCompared with older Claude model families, similar text can tokenize to roughly 1x to 1.35x as many tokens depending on content. A 35% swing changes the budget fast.
How to implement this
Steps
  1. Run token counting with the actual current model.
  2. Recount after changing tool schemas, images, documents, or system prompts.
  3. Version cost assumptions with the model and date.

Use when: Budgeting and migration between model versions.

Check: The estimate matches the deployed payload.

88
Keep Fable away from routine volume work.
Fable should not be the default engine for every form response, chatbot turn, content rewrite, data cleanup, simple summary, or basic support task. Use cheaper models for classification, extraction, routing, FAQs, summaries, and first pass checks. Bring Fable in for complex judgement, difficult analysis, technical problem solving, and work where one better answer changes the outcome.
The mathsThe winning setup is usually cheap models for volume and Fable for high value exceptions. That protects margin while keeping the strongest model available when it genuinely matters.
How to implement this
Steps
  1. Send routine volume to Haiku or Sonnet according to your evaluation.
  2. Escalate ambiguous or high-risk exceptions to a stronger model.
  3. Track escalation rate and prevent premium routing from becoming the default.

Use when: High-volume classification, extraction, summarisation, and mechanical coding.

Check: The lower-cost route maintains the required pass rate.

89
Explicitly request a longer cache TTL and watch the read-to-write ratio.
A cache TTL rollback or misconfiguration can silently push repeated context back onto full-price writes instead of cheap reads. Request the longer TTL explicitly where your workload justifies it, and monitor cache_creation_input_tokens against cache_read_input_tokens to confirm caching is actually working.
The mathsA cache read costs roughly a tenth of a full input token. If reads do not clearly outnumber writes in your logs, the cache strategy is working against you, not for you.
How to implement this
Steps
  1. Set the cache TTL explicitly rather than relying on the default.
  2. Log cache_creation_input_tokens and cache_read_input_tokens per session.
  3. Investigate immediately if writes start outpacing reads on a stable prefix.

Use when: Any long-running or repeated-context API workflow.

Check: Reads consistently outnumber writes on your cached prefix.

90
Route routine work to Sonnet 5 - its $2/$10 pricing is now permanent.
Sonnet 5 launched with introductory pricing that Anthropic confirmed as permanent on 10 August 2026: $2 per million input tokens and $10 per million output tokens. Routine drafting, extraction, and everyday automation routed to Sonnet 5 is close to the cheapest capable option available, with no expiry to plan around.
Why it mattersAt $2/$10, Sonnet 5 costs a fifth of Opus 5's rate and a fifth of Fable 5's rate on input, making it the default for anything that doesn't need frontier-level reasoning.
How to implement this
Steps
  1. Route routine, non-Fable-grade and non-Opus-grade work to Sonnet 5 by default.
  2. Reserve Opus 5 and Fable 5 for tasks that genuinely need deeper reasoning.
  3. Re-check Anthropic's pricing page periodically in case terms change again.

Use when: Any routine workload not requiring Fable or Opus-level reasoning.

Check: Routing rules are re-verified against current published pricing, not this guide's snapshot.

Headroom: Proxy-Level Payload Compression

Reduce token spend before payloads reach Claude. Preserves meaning, works locally, and fits alongside existing prompt caching and batching workflows.

What Headroom Is and Why It Matters

Headroom is an open-source context compression layer for AI agents. It compresses tool outputs, logs, RAG chunks, files, code search results, conversation history, JSON, XML, and other heavy context before it reaches the LLM.

Unlike prompt optimization, which changes how you write prompts, Headroom optimizes what your agent sends. It removes repeated structure, boilerplate, and noise from the payload while keeping a retrieval path for the original content when needed.

The current project is maintained at chopratejas/headroom. It supports library usage, proxy mode, MCP, wrapper mode for coding agents, and local-first workflows.

91
Use Headroom to compress context before it hits Claude.
Headroom can sit between your agent, app, or coding workflow and the model. It compresses tool outputs, logs, RAG chunks, file reads, conversation history, JSON, XML, and code search results before the model has to process them. You keep the same workflow, but the context travels leaner.
The mathsHeadroom's own project page describes 60-95% fewer tokens depending on workload. A 100K-token debugging or codebase session could become 40K, 20K, or less if the payload contains repeated logs, boilerplate, large file reads, or duplicated tool output.
How to implement this
Steps
  1. Record a baseline on representative tasks before installing Headroom.
  2. Run the same tasks through Headroom with identical model settings.
  3. Compare compressed tokens, latency, answer quality, and test results.

Use when: Repeated logs, RAG, code search, tool output, and large structured payloads.

Check: Compression improves cost without reducing task success.

92
Treat Headroom as a compression layer, not a replacement for good prompting.
Prompt caching, batching, model routing, tight outputs, and clean project summaries still matter. Headroom operates lower down the stack. It reduces the waste inside the context you send, while your normal strategy controls what you ask for, which model handles it, and how much output you allow.
Stacking exampleOriginal session: 100K tokens. Better batching and caching reduce repeated work to 50K. Headroom then compresses a noisy payload by 65%, leaving roughly 17.5K tokens. That is an 82.5% reduction against the original workflow.
How to implement this
Steps
  1. Fix prompt structure, model routing, caching, and needless context first.
  2. Use Headroom on the variable payload that remains, such as logs or retrieved chunks.
  3. Keep exclusions for content that must remain exact.

Use when: A workflow already has basic token discipline but still sends repetitive payloads.

Check: Headroom complements rather than masks a poorly designed workflow.

93
Install Headroom using the current package commands, not an old Git clone workflow.
Step 1: Install Headroom.
pip install "headroom-ai[all]"
or
npm install headroom-ai
Step 2: Pick the mode.
headroom wrap claude
or
headroom proxy --port 8787
Step 3: Check the savings.
headroom perf
Use wrapper mode for Claude Code style work. Use proxy or library mode when you are building your own app, agent, SDK integration, or automation.
Time to set upSimple local installs can be quick, but the right configuration depends on your setup. Wrapper mode is the fastest route for coding agents. Proxy, MCP, Python, and TypeScript integrations need a more deliberate setup.
How to implement this
Steps
  1. Install with pip install "headroom-ai[all]" or npm install headroom-ai.
  2. For Claude Code try headroom wrap claude; for applications use headroom proxy --port 8787 or the library integration.
  3. Run headroom perf and follow the current repository documentation for configuration.

Use when: Developers ready to test a third-party compression layer.

Check: The installed version and commands match the current maintainer documentation.

94
Headroom works by reducing redundancy, not by guessing your intent.
The biggest savings come from payloads that contain repeated patterns: stack traces, terminal output, JSON arrays, logs, API responses, code search results, file dumps, and repeated conversation history. Headroom uses content-aware compression and keeps original material available through reversible context compression where supported.
Compression typesNoisy logs, tool output, large file reads, RAG chunks, and repeated JSON usually compress best. Small, clean prompts may only see modest gains because there is less waste to remove.
How to implement this
Steps
  1. Start with payloads containing repeated logs, verbose JSON, XML, RAG chunks, or code-search output.
  2. Configure content types or paths that should not be transformed.
  3. Run functional tests and retrieval checks after compression.

Use when: Noisy, repetitive machine-generated context.

Check: The compressed request preserves facts, identifiers, and required code behaviour.

95
Keep sensitive work local where possible.
Headroom is designed as a local-first tool. In proxy and wrapper modes, compression happens on your machine before the prompt reaches the model provider. That matters for client projects, codebases, internal logs, customer data, and any workflow where you do not want to send unnecessary detail.
Security noteLocal compression is not the same as a full security review. API keys, logs, telemetry choices, stored originals, retention settings, and company policy still matter. Review configuration before using it with sensitive data.
How to implement this
Steps
  1. Review where originals, caches, metrics, and logs are stored.
  2. Check API-key handling, telemetry, retention, and company policy.
  3. Test with non-sensitive data before any client or production workload.

Use when: Sensitive code, internal logs, customer data, and regulated work.

Check: Local-first processing is confirmed by configuration and network observation, not assumed.

96
Use Headroom to make Claude Code sessions last longer.
Long coding sessions burn tokens because the model sees tool output, file reads, command results, prior attempts, and repeated context. Headroom is built for that kind of mess. Used properly, it can make the same allowance stretch further without forcing you to constantly restart sessions or strip context by hand.
Practical outcomeThe gain is workload-dependent. A clean one-question prompt may barely move. A real build session full of logs, diffs, files, search output, and repeated errors is where the saving becomes meaningful.
How to implement this
Steps
  1. Run a representative Claude Code session normally and save test results.
  2. Repeat through the Headroom wrapper with the same scope and model.
  3. Compare usage, context quality, edits, and tests before making it default.

Use when: Long coding sessions with large tool outputs or repeated file reads.

Check: The wrapper extends useful work without introducing incorrect edits.

Headroom Installation & Configuration

Step-by-step setup routes for Claude Code, Python, JavaScript, and direct proxy workflows.

Prerequisites

  • Python 3.10+ for the recommended Python install, or Node.js for TypeScript and Node workflows.
  • Claude Code or another supported coding agent if you want wrapper mode.
  • Your normal API key or provider authentication if you are using API or proxy mode.
  • Terminal access so you can install, wrap, run proxy mode, and check performance.

Installation

1. Install Headroom

pip install "headroom-ai[all]"
# or, for Node / TypeScript
npm install headroom-ai

2. Choose how you want to run it

# Wrapper mode for Claude Code style work
headroom wrap claude

# Proxy mode for compatible clients and app integrations
headroom proxy --port 8787

# Check reported savings and status
headroom perf

Wrapper mode is usually the cleanest route for Claude Code. Proxy and library modes are better when you are building your own app, agent, or automation stack.

3. Configure Your Workflow

Pick the option that matches how you use Claude.

Option A: Claude Code Wrapper
headroom wrap claude

Use this when you want Headroom to wrap a coding agent and handle the compression layer for you.

Option B: Python Library
from headroom import compress

compressed_messages = compress(messages, model="claude")

Use this inside your own Python app when you want to compress message context before sending it to the model.

Option C: JavaScript / TypeScript Library
import { compress } from "headroom-ai";

const compressedMessages = await compress(messages, { model: "claude" });

Use this inside Node, TypeScript, or agent code when you want compression as part of the app itself.

Option D: Proxy / Direct API Routing
headroom proxy --port 8787

# Then point your compatible client, gateway, or SDK wrapper
# at the local proxy endpoint according to your Headroom config.

Use proxy mode when you want a local compression gateway between your app and the model provider. Exact endpoint wiring depends on the client you use.

Verify Installation

After running Headroom, check that it is reporting savings and that your agent or app still behaves normally.

headroom perf

If you are using proxy mode, also confirm the proxy process is still running and your client is actually pointed at it.

Headroom Best Practices & Optimization

How to get maximum compression without losing accuracy.
97
Use Headroom where context is heavy, repeated, or messy.
Headroom shines when developers and agents send large amounts of tool output: stack traces, terminal logs, file reads, search results, JSON responses, RAG chunks, and long conversation history. If the payload is already short and clean, the impact is naturally smaller.
Compression varianceSimple prompts may see modest savings. Noisy sessions with repeated logs, large reads, and heavy tool output are the sessions most likely to show major savings.
How to implement this
Steps
  1. Identify the payloads that dominate input size.
  2. Use Headroom on heavy repeated or messy content, not tiny clean prompts.
  3. Skip compression where overhead exceeds the benefit.

Use when: Workflows with measurable input bloat.

Check: The largest payloads show material reduction and stable accuracy.

98
Run Headroom once and make it part of the workflow.
The value comes from making compression automatic. Use wrapper mode for Claude Code sessions, or keep proxy mode running for app and agent workflows. Do not rely on remembering to manually clean every log, trace, or payload before sending it.
Setup once, benefit repeatedlyA one-time setup can reduce repeated token waste across every later coding session, agent run, and debugging workflow that routes through Headroom.
How to implement this
Steps
  1. Choose a repeatable launch method such as a shell alias, service, wrapper, or project script.
  2. Add a health check and fail safely if the proxy is unavailable.
  3. Check for updates with the maintainer's current command and test before upgrading production.

Use when: Teams or individuals who have validated Headroom and want consistent use.

Check: Every intended request takes the same known route and failures are visible.

99
Monitor savings instead of assuming savings.
Use Headroom's reporting to understand what is actually being compressed. Watch which payload types shrink well and which ones do not. That tells you where your workflow is wasting context and where the tool is doing useful work.
What to watchLook for compression rate, payload type, largest savings, and any workflow where compression appears low because the payload is already clean or too small to matter.
How to implement this
Steps
  1. Run headroom perf and capture results by payload type.
  2. Track compression rate, task accuracy, latency, and any regressions.
  3. Keep a small benchmark set and rerun it after configuration or version changes.

Use when: Ongoing Headroom use.

Check: A dashboard or report proves where the tool helps and where it does not.

100
Combine Headroom with prompt caching for repetitive workflows.
For repeated tasks, keep the stable instructions, brand rules, repo maps, and analysis frameworks cacheable. Then use Headroom to compress the changing data: logs, website snapshots, competitor research, file reads, or audit output. Caching reduces the repeated stable cost. Headroom reduces the variable payload.
Combined savings exampleTask: repeated SEO or business workflow audit. Stable system context gets cached. Variable data gets compressed. The combined workflow is cheaper than resending a full prompt, full framework, and full raw payload every time.
How to implement this
Steps
  1. Put stable instructions and reference documents in a cacheable prefix.
  2. Use Headroom on the changing logs, tool output, or retrieved chunks that follow it.
  3. Monitor both cache-read tokens and compression metrics.

Use when: Repeated workflows with a stable core and noisy variable data.

Check: Both layers contribute measurable savings without changing the required result.

Headroom Troubleshooting

Common issues and solutions.
IssueCauseSolution
Command not foundHeadroom is not installed in the active Python, Node, pipx, or shell environment.Reinstall with pip install "headroom-ai[all]", use a supported Python version, restart the terminal, and confirm the executable is on your path.
Wrapper does not launch ClaudeClaude Code is not installed, not authenticated, or not available from the current terminal.Confirm Claude Code runs normally first. Then run headroom wrap claude again from the same environment.
Proxy port is already in useAnother local process is already using the selected proxy port.Use a different port, for example headroom proxy --port 8788, or stop the process already using the current port.
Compression appears lowThe payload is already small, clean, or not routing through Headroom.Check your routing first. If routing is correct, low compression may be normal. Headroom has less to remove from short, clean prompts.
Responses differ from beforeThe model, client route, context, or compression settings changed.Compare the same prompt with the same model and same settings. If the change looks compression related, reduce compression aggressiveness or check the Headroom issue tracker.

Tool and Agent Cost Notes

Tools are powerful, but they add tokens and sometimes separate charges.
Tool or featureCost behaviourPractical control
Tool definitionsTool names, descriptions, schemas, tool_use blocks, and tool_result blocks all contribute to token usage.Keep tools narrow, descriptions clean, and schemas only as detailed as needed.
Bash toolAdds input tokens and command output becomes context.Limit command output. Avoid dumping huge logs into the model.
Text editor toolUses standard token pricing plus extra input tokens for the tool definition.Edit targeted files. Avoid broad read-and-rewrite loops.
Web search$10 per 1,000 searches plus token cost for retrieved content.Use only when freshness, verification, or citations are needed.
Web fetchNo separate tool charge, but fetched content is billed as tokens.Set maximum content size where possible.
Computer useUses standard tool pricing and screenshots add vision/input costs.Use only when visual interaction is necessary.
Claude Managed AgentsBilled on tokens and session runtime. Runtime is charged while the session is running.Terminate idle agents and avoid leaving long sessions running without purpose.

Verified Resource Directory

Use these official resources before making pricing decisions, changing workflows, or building token heavy systems.
ResourceWhy it matters
Anthropic pricingCurrent model prices, cache pricing, batch pricing, tool costs, data residency multipliers, and managed agent pricing.
Models overviewCurrent model IDs, context windows, adaptive thinking support, and availability.
Choosing a modelOfficial guidance on which model to use for different workloads.
Prompting Claude Fable 5Specific Fable prompting guidance for effort, long runs, boundaries, memory, subagents, and scaffolding.
Fable 5 launch announcementOfficial release context, availability, safeguards, performance discussion, and customer examples.
Fable migration guidePricing comparison against Opus 4.8, adaptive thinking behaviour, cache minimums, fallback notes, and migration checks.
EffortControls intelligence, latency, cost, and tool-call behaviour across supported models.
Adaptive thinkingExplains thinking behaviour, display settings, mode changes, and caching implications.
Prompt cachingHow to reduce repeated input cost and latency through cacheable prompt prefixes.
Token countingPre-flight token estimates for messages, tools, images, PDFs, and structured inputs.
Refusals and fallbackHow Fable refusal responses work and how to retry on fallback models.
Usage and Cost APIProgrammatic cost tracking for organization accounts.
Rate limitsHow RPM, ITPM, OTPM, and cached-token rate-limit behaviour work.
Headroom on GitHubOpen-source local-first context compression layer for AI agents. Compresses tool outputs, logs, RAG chunks, files, conversation history, JSON, XML, and code search results before they reach the LLM. Supports library, proxy, wrapper, and MCP workflows.
Claude usage-limit best practicesOfficial guidance covering Projects, caching, structured requests, model choice, and efficient use of plan allowance.
What are Projects?Official overview of self-contained workspaces, knowledge bases, and focused chats.
RAG for ProjectsExplains how large Project knowledge bases retrieve only relevant information instead of loading everything at once.
Artifacts and message branchesOfficial Artifact guidance, including editing earlier messages to create a different conversation branch.
Memory and past-chat searchHow to view, edit, disable, and use Claude memory and past-chat search deliberately.
Claude Code usage and limitsOfficial advice on `/clear`, `/compact`, model routing, file references, and keeping CLAUDE.md lean.
Claude Code cost managementOfficial cost controls, context inspection, and MCP overhead guidance.
Claude CoworkOfficial availability, use cases, permissions, limitations, and file-work guidance.
SerenaThird-party semantic coding toolkit. Use the current uv-based installation and test it before production use.
Context7 for Claude CodeCurrent setup instructions for version-specific documentation retrieval.
Claude ContextThird-party semantic code-search MCP. Requires indexing infrastructure and careful credential handling.
Token SaviorThird-party structural code-navigation MCP. Benchmark maintainer-reported savings on your own repository.
Ruben Hassid usage guideCommunity discovery source that inspired several interface-level habits. Product claims were checked against official sources before inclusion.
Author note

A Note from Daniel

I built this guide as free practical content for people using AI every day, whether they are creators, founders, operators, developers, marketers, consultants, or curious beginners.

Token waste is one of the easiest ways to lose momentum when working with AI. You can have the right model, the right project, and the right intention, then still burn through your allowance because the workflow is carrying too much unnecessary context.

The lesson is simple. Treat AI sessions like working systems. Keep them clean, focused, and structured. Save the important decisions, remove the noise, and start fresh before the conversation becomes overloaded.

This document is not about using Claude less. It is about using Claude properly. Better structure gives you better results, lower cost, and fewer wasted hours fighting the same problems over and over again.

Daniel Bell
Inovait IQ

Daniel
The AI Architect
Inovait IQ · Nexus Academy · AI Audits · AI Consultancy · AI Automation · AI Coaching
Systems that scale. Intelligence that evolves.