CTO opens soon. Join the waitlist for your invite and the founding price.

CTO

Claude Code cost techniques, with sources

Token Coach · library version 18 ·

Short answer: there are 50 techniques worth knowing, in 8 groups. Most are not worth doing on a small task. Each entry below says when to skip it and links to its source.

This is the library CTO, a plugin for Claude Code, reads from. It is checked against Anthropic's documentation and changelog and updated when Claude Code changes. Nothing here is a measured saving for you: what a technique saves depends on your usage.

How the ask is framed

The five parts of a well-specified prompt

A prompt that retries is more expensive than a longer prompt that lands once. Specify five parts: (1) role/task, (2) context the model can't discover, (3) canonical examples, (4) constraints + output shape, (5) success criteria.

What to do: Answer the five questions above, then send. For a task (not a chat) run /token-coach:task <goal> and CTO drafts the spec for you.

Skip it when: a trivial one-liner whose ask is already unambiguous.

Worth it for: normal work and above. Source: Anthropic: Prompt engineering overview

State the finish line and how it's checked

Without an explicit definition of done, the model optimizes for plausible-looking, not correct, and you pay output tokens for prose you then have to correct.

What to do: Add one success criterion and one verification method to the prompt ('done when tests pass', 'must compile', 'match this schema').

Skip it when: the output is obviously right or wrong at a glance.

Worth it for: normal work and above. Source: Anthropic: Prompt engineering overview

Control output shape and verbosity

Output is priced ~5x input. Essays where you needed an answer are the most overlooked cost; unbounded output also fills context for every later turn.

What to do: Ask for the shape you'll actually read: 'answer in one line', 'diff only', 'table, no prose'. When you only need the decision, say so.

Skip it when: you do not care about the shape of the answer, only its content.

Worth it for: any task, including quick ones. Source: Anthropic: Token-saving updates

Show the shape with canonical examples

A couple of diverse, correct input→output examples steer behavior more reliably than paragraphs of instruction, and cost far fewer tokens than the retries vague instructions cause.

What to do: Include one or two examples that portray the expected behavior, especially edge shapes. Keep them minimal: examples are re-sent every turn.

Skip it when: the task is simple: examples can cost more tokens than they save.

Worth it for: normal work and above. Source: Anthropic: Prompt engineering overview

Vague short asks trigger retry loops

A one-line ask with no context or success criterion usually costs more than a specified one: the model guesses, you correct, it re-reads the whole context, and you pay the loop.

What to do: Pair every short ask with one success criterion and one non-goal. If it's a real task, /token-coach:task <prompt> scores it before you spend.

Skip it when: never: specificity is free and prevents the most expensive failure, rework.

Worth it for: any task, including quick ones. Source: Anthropic: Prompt engineering overview

Terse-output instruction (measured, honest)

A standing 'be terse' instruction cuts output tokens, but community claims of 60–75% savings benchmark closer to 14–21% in practice. Real, but don't oversell it, and never at the cost of output you actually need.

What to do: Add a terse-output rule for answer-only work; keep full output where you read the reasoning. See the library card for the measured numbers.

Skip it when: the work is crucial: terseness trades clarity for tokens, and on high-stakes work that is the wrong trade.

Worth it for: any task, including quick ones. Source: Anthropic: Token-saving updates

What the model can see and what it costs

The fixed context tax you pay every turn

System prompt, tool definitions, MCP servers, CLAUDE.md and the memory index load every session and are re-sent every turn. A 20k fixed base over a 50-turn session ≈ 1M prompt-tokens paid.

What to do: Run /token-coach:cto what's loaded to see your fixed overhead, then move rarely-needed instructions from CLAUDE.md (Tier 1) into skills (Tier 2).

Skip it when: a single one-off session: fixed overhead only compounds across many sessions.

Worth it for: normal work and above. Source: Anthropic: Effective context engineering for AI agents

Clear and compact between tasks

Every read, tool result and reply stays in context and is re-sent each turn. Long sessions get quadratically expensive and lower quality (attention dilution), not just pricier.

What to do: /clear between unrelated tasks; /compact at checkpoints; /token-coach:handoff to carry the thread across a clear without losing it.

Skip it when: the session will end before context size starts to matter.

Worth it for: normal work and above. Source: Anthropic: Effective context engineering for AI agents

Reference files, don't paste their contents

Pasted text is re-sent every turn for the rest of the session. A file path Claude reads once (or a subagent digests) costs a fraction over a long session.

What to do: Give the path, not the paste. For bulk logs/docs, have the distiller agent compress them before they enter the main context.

Skip it when: the file is genuinely small; a path plus a read costs more than the paste.

Worth it for: any task, including quick ones. Source: Anthropic: Effective context engineering for AI agents

/compact is itself a large request; /clear is free

Compaction reads the whole conversation in order to summarize it, so compacting a big context is one of the most expensive single requests in a session. Auto-compact fires near the window limit and costs the same. /clear, by contrast, costs nothing at all.

What to do: If you need continuity, compact early, while the context is still small, and steer it: /compact Focus on the API changes and test output. If you do not need continuity, use /clear instead: it is free. Put a '# Compact instructions' section in CLAUDE.md to set this once.

Skip it when: never: choosing /clear over /compact is free and takes no setup.

Worth it for: any task, including quick ones. Source: Claude Code: Manage costs effectively

Clear between unrelated tasks, and name the session first

Claude Code re-sends the full conversation on every request, so stale context from a finished task is paid for on every subsequent message of the next one. A one-line question in a day-old session still draws usage for the entire history.

What to do: When the task changes, /rename the session so you can find it, then /clear. Use /resume to come back to it later. Keep one task per session.

Skip it when: you are still on the same task and the context is still earning its keep.

Worth it for: any task, including quick ones. Source: Claude Code: Manage costs effectively

Give the model a map of the code, not the whole tree

Pasting many files, or letting the agent open them one by one, fills the window with tokens the model mostly skims. A compact structure map (paths, key symbols, and how they depend) lets it pull only the files a task actually needs.

What to do: Before a multi-file task, hand over a short structure map (paths + key exports + who-calls-what) and let the model request specific files, instead of dumping the tree. For wide surveys, send the scout/distiller subagents and take back a digest.

Skip it when: a single file or a small, well-scoped change the model can hold at once.

Worth it for: normal work and above. Source: Anthropic: Effective context engineering for AI agents

Push wide reading into subagents

Wide search and bulk reading done in the main thread lands in (and taxes) your expensive context for the rest of the session. A subagent burns its own context and returns a small digest.

What to do: Use the scout agent for recon and the distiller for compression, at low effort (the Agent tool takes an effort level, or set CLAUDE_CODE_SUBAGENT_EFFORT for every subagent). Their digest becomes a tight spec for the execution phase.

Skip it when: you already know which file you need: delegation overhead exceeds one read.

Worth it for: normal work and above. Source: Anthropic: Effective context engineering for AI agents

Which model and how hard it thinks

The core rule: deterministic vs exploratory

Deterministic work (mechanical, known-cause) scales with SPECIFICATION not model effort: tokens beyond the spec are waste. Exploratory work (research, unknown bugs, design) genuinely scales with tokens: don't starve it, contain it.

What to do: Classify the task first. Deterministic → tight spec, cheap model, mechanical checks. Exploratory → capable model, plan mode + subagents to keep it out of the execution context. Mixed → split into two phases.

Skip it when: the task is a one-liner where the shape is obvious.

Worth it for: normal work and above. Source: Anthropic: Building effective agents

Match thinking effort to the task

Adaptive thinking + the effort setting control how hard the model works. High effort on mechanical work is spend with no quality return; low effort on hard reasoning is a false economy that costs more to fix.

What to do: Use lower effort for routine and subagent work, higher where correctness is binding. Typing ultrathink now runs at xhigh effort on the 5.5 models, so keep it for hard problems. Don't disable thinking to save tokens; lower the effort.

Skip it when: the task genuinely needs deep reasoning: lowering effort trades the answer for the bill.

Worth it for: any task, including quick ones. Source: Anthropic: Extended thinking

Bulk work that can wait belongs in the Batch API: 50% off

The Message Batches API processes large volumes asynchronously at HALF the standard price, with most batches finishing in under an hour. Running bulk evaluation, classification or backfill interactively pays double for immediacy nobody needed.

What to do: Ask of any bulk job: does a human read the result in the next hour? If not, batch it. Interactive coding stays interactive; evals, migrations and one-off analyses over many inputs go to batch.

Skip it when: anything interactive: if a human is waiting on the result, the 50% is irrelevant.

Worth it for: high-stakes work only. Source: Anthropic: Batch processing

Check you are on the right plan before optimising a single token

Being on a plan two tiers above your actual usage wastes more money in a month than careful token discipline saves in a year, and the reverse is also true: paying API rates for consumption that a subscription would cover is the single most expensive mistake available. Plan limits bind on a rolling 5-hour window, not a monthly total, so a quiet month with one heavy afternoon still needs the larger plan.

What to do: Compare your API-equivalent monthly consumption and your peak 5-hour burst against what you actually pay. If consumption is a fraction of the plan price, downgrade. If you pay API rates for more than a plan costs, move to a plan. No vendor will tell you either of these.

Skip it when: you are on a free plan, in which case there is nothing to downgrade.

Worth it for: any task, including quick ones. Source: Claude Code: Manage costs effectively

Pick the cheapest model that clears the bar

Model choice is the single biggest lever: Fable to Haiku 5.5 is a 100x input-price gap on prompts under 100K tokens (20x above, where Haiku 5.5's price rises fivefold). Mechanical work (renames, boilerplate, commit messages, summaries) runs fine one or two tiers down, though Haiku 5.5 tends to use more tokens per task, so compare cost per task, not per token.

What to do: Route mechanical tasks to Haiku or the scout and distiller agents: they start with a fresh, short context, so Haiku 5.5 stays under 100K at its lowest rate. Keep premium tiers for work where tokens buy quality. /token-coach:task picks per task.

Skip it when: never: it is one command and the largest single cost lever.

Worth it for: any task, including quick ones. Source: Anthropic: Models overview

The multiplier on everything

Keep the cache warm; don't cold-restart

Cache reads cost 0.1x input; writes cost 1.25x (5-min TTL) / 2x (1h). A warm cache is a ~90% discount; a cold start re-writes the whole context at the write premium. Gaps longer than the TTL and same-task restarts are where warmth leaks.

What to do: Work in bursts inside the TTL and resume the previous session instead of starting fresh. Put stable content (system, tool defs) first so a small change doesn't invalidate everything after it.

Skip it when: read share is already above ~90%: there is no headroom left to win.

Worth it for: any task, including quick ones. Source: Anthropic: Prompt caching

Know your actual cache lifetime: it is not always 5 minutes

Your main conversation's cache lives one hour on a subscription within your plan's usage, and five minutes on an API key, a cloud provider, or once you draw on usage credits. Subagents get five minutes either way. The first message after a longer gap reprocesses the whole context. Most 'keep it warm' advice assumes five minutes for everyone.

What to do: Know your regime: a plan gives the main conversation an hour, and five minutes once you draw on usage credits. On an API key, set promptCacheTtl to 1h if you often pause over five minutes; cache writes then cost more. /token-coach:cto cache shows which lifetime you really get.

Skip it when: never: it is knowledge, not work, and knowing it changes how you pace everything else.

Worth it for: any task, including quick ones. Source: Claude Code: Prompt caching

Idle compaction protects a long session across a break

Since Claude Code 2.1.299, the terminal compacts a conversation of 200K+ tokens left idle for about 54 minutes, before its one-hour prompt cache expires, so the next message does not reprocess the whole context. It is timed to the one-hour cache, so a five-minute cache has already expired by then. Since Claude Code 2.1.314 (30 Oct 2026) it also runs in Visual Studio Code and the Desktop app.

What to do: On a long session (terminal, and since 2.1.314 the Desktop app and Visual Studio Code), leave idle compaction on. Set CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS lower if your breaks start around 100K. Turn it off with "idleCompaction": false only if you need full detail after the break.

Skip it when: Sessions under 200K tokens, or a five-minute cache (API key, cloud provider): by 54 minutes the cache is already gone..

Worth it for: normal work and above. Source: Claude Code changelog 2.1.299

Claude Code through OpenRouter: same token prices, a fee on credits, caching still works

OpenRouter bills Claude at the provider list price and adds 5.5% when you buy credits. Prompt caching works through it, and sticky routing keeps your requests on the provider holding your cache; about 10 idle minutes ends that routing.

What to do: Keep sessions moving: after about 10 idle minutes, expect a cache rebuild. If most of your spend is Claude, run the plan check: a Claude subscription can cost less than credits plus the 5.5% fee.

Skip it when: you use Claude Code with an Anthropic subscription or API key directly.

Worth it for: normal work and above. Source: OpenRouter: prompt caching

What throws the cache away in the middle of a session

The cache matches from the start of each request, so one change near the top reprocesses everything after it. Mid-session these do it: switching model (every model has its own cache, and the opusplan setting switches on each plan-mode toggle), turning fast mode on or off, changing effort on older models, and, when tool search is off, connecting an MCP server or denying a whole tool. Editing files or CLAUDE.md, changing permission mode, invoking a skill and rewinding do not.

What to do: Choose model, effort and fast mode at the start of a session and leave them. For a side question on another model, use a subagent. To drop a wrong path, rewind instead of compacting. After a slow reply, the Prompt cache line in /usage names the likely cause.

Skip it when: the session is small enough that a full re-read costs cents.

Worth it for: any task, including quick ones. Source: Claude Code: How Claude Code uses prompt caching

Coming back to a big session after the cache has expired

The first reply after a break longer than the cache lifetime reprocesses the whole conversation at the cache-write price. For most people it is the most expensive single request they send, and on a plan it is what drains a usage limit after a break. Compacting at that point is no cheaper: with no cache left to read, the summary request reprocesses the same history.

What to do: Before a long break in a big session, write a handoff note and clear, then come back to a small context. Already back with a cold cache? Decide before typing: continue and pay the re-read once, or start fresh. /token-coach:cto cache shows what this has cost you.

Skip it when: the session is under about 50K tokens: the re-read is small, just continue.

Worth it for: any task, including quick ones. Source: Claude Code: How Claude Code uses prompt caching

Tools, features, MCP, and the artifact-vs-project choice

Choose (and describe) tools deliberately

Every tool definition is fixed context tax, re-sent every turn. Tools earn their place only when the task genuinely needs them, and a tool's description is the single biggest factor in whether the model uses it correctly.

What to do: Add a tool/MCP only for capability you actually use; write detailed descriptions. For a one-off, a plain prompt beats wiring a tool. /token-coach:cto connections shows what you're carrying.

Skip it when: you use one tool for one thing and the choice was never open.

Worth it for: normal work and above. Source: Anthropic: Writing effective tools for AI agents

MCP servers cost context for as long as they're connected

MCP tool definitions are DEFERRED by default: only tool names and server instructions enter context until Claude actually uses a tool. So a connected-but-unused server is far cheaper than it used to be, but not free, and a server whose tools you do use pays the full definition cost from then on.

What to do: Stop disconnecting servers on principle; run /context for the live breakdown and disable only what shows up heavy. Where a CLI exists (gh, aws, gcloud) prefer it: it adds no per-tool listing at all.

Skip it when: your servers are connected but unused: deferred loading already makes those cheap.

Worth it for: normal work and above. Source: Claude Code: Manage costs effectively

Artifact vs project vs skill: match the container to the work

A one-off visual or document is an artifact (self-contained, disposable). Ongoing work with files and iteration is a project. A repeatable procedure you'll run again is a skill. Using the wrong container means rebuilding context you could have kept.

What to do: One-shot deliverable → artifact. Multi-file, evolving → project/repo. Same procedure 3+ times → build a skill (see build-a-skill).

Skip it when: the output is throwaway and nobody else will read it.

Worth it for: normal work and above. Source: Anthropic: Equipping agents for the real world with Agent Skills

Filter verbose output in a hook before Claude ever sees it

A PreToolUse hook can rewrite a command so only the relevant lines come back. Reading a 10,000-line log to find the errors can drop from tens of thousands of tokens to hundreds. The work happens in your shell, which is free.

What to do: Wrap noisy commands: have the hook append | grep -E '(FAIL|ERROR)' | head -100 to test runs. This is the single highest-leverage token fix for anyone who runs test suites or reads logs in-session.

Skip it when: you do not repeatedly run noisy commands: a one-off log read is not worth a hook.

Worth it for: normal work and above. Source: Claude Code: Manage costs effectively

Let a language server navigate instead of grepping and reading

Code intelligence plugins give precise symbol navigation, so one 'go to definition' replaces a grep plus reads of several candidate files. They also surface type errors after edits without running a compiler, catching mistakes before they cost a correction round-trip.

What to do: Install the code intelligence plugin for your language. The saving is in file reads avoided, which is usually the largest avoidable slice of an exploration session.

Skip it when: an untyped language, or a project small enough to hold in your head.

Worth it for: normal work and above. Source: Claude Code: Manage costs effectively

Let the grammar guarantee the shape instead of retrying for it

Structured outputs constrain sampling so the response matches your schema on the first attempt. The alternative: prompt-coaxing plus a retry loop: pays for the whole generation again every time the JSON comes back malformed. The feature costs a small constant overhead (an injected system prompt), and the compiled grammar is cached for 24 hours.

What to do: Pass a schema via output_config.format, or set strict:true on the tool, and delete the retry loop. Keep the schema structure stable: changing its shape invalidates the 24h grammar cache, though renaming fields does not.

Skip it when: a one-off where you read the output yourself: a retry loop you run twice costs less than a schema you maintain forever.

Worth it for: normal work and above. Source: Anthropic: Structured outputs

Upload once, but know it does not cut your input tokens

The Files API stores a document once and lets you reference it by file_id instead of re-uploading bytes on every request. Upload, download, list and delete are free. What it does NOT do is make the content cheaper: file content used in a Messages request is still priced as input tokens, exactly as if you had pasted it.

What to do: Use it for repeated reference to the same large document and for feeding the code execution tool: the win is latency, bandwidth and workflow, not token price. To actually cut the token cost of re-sent content, you want prompt caching, not the Files API.

Skip it when: you send the document once: uploading it first is a round trip you do not get back.

Worth it for: normal work and above. Source: Anthropic: Files API

Screenshots are the bill in a computer-use loop

Each screenshot costs roughly 1,000-1,800 input tokens, and an agent loop accumulates them fast. Keeping 20 or fewer images per request matters, and so does HOW you drop the old ones: pruning one per turn rewrites the cached prefix every turn and destroys cache warmth.

What to do: Prune screenshots in batches (roughly every 25 turns) rather than per turn, so the prefix stays stable between prunes. Resize so neither side exceeds 2000px, use zoom to inspect detail instead of retaking the full screen, and end a batch with the screenshot to avoid an extra round trip.

Skip it when: you are not driving a screen: none of this applies to text-only work.

Worth it for: normal work and above. Source: Anthropic: Computer use tool

Ask /usage for the live number instead of estimating it

Claude Code's own /usage reports the authoritative live figures: request count, the share of input tokens served from cache, misses with their likely cause, and attribution by skill, subagent, plugin and MCP server. Any estimate computed elsewhere is a reconstruction of what that command already knows exactly.

What to do: Run /usage for the ground truth, then act on the attribution: whichever skill, subagent or MCP server is taking the largest share is the first thing to question. Use /context for the live breakdown of what is loaded right now.

Skip it when: never: it is one command, costs almost nothing, and it is authoritative where everything else is inference.

Worth it for: any task, including quick ones. Source: Claude Code: Manage costs effectively

Let code call the tools when one task needs many tool calls

With programmatic tool calling on the Claude API, Claude writes code that calls your tools inside the code execution sandbox; only the final output enters context, not each tool result. Anthropic measured about 38% fewer billed input tokens on a 75-tool agent, and 20 to 40% on requests with 10 to 49 tools. Workflows with one or two calls per turn cost about 8% more.

What to do: When you build an agent on the API that chains many tool calls, add the code execution tool and set allowed_callers to code_execution on those tools. Keep direct calls for one-off lookups.

Skip it when: you use Claude Code rather than building on the API, or each turn makes only one or two tool calls.

Worth it for: normal work and above. Source: Claude Platform: Programmatic tool calling

For a huge API, connect a Code Mode MCP server instead of one tool per endpoint

A Code Mode MCP server exposes two tools, search and execute, and Claude writes code against the API instead of loading a definition for every endpoint. Cloudflare's server covers 2,500+ endpoints in about 1,000 tokens instead of about 1.17 million.

What to do: When an MCP server for a large API offers a Code Mode version (Cloudflare's is https://mcp.cloudflare.com/mcp), connect that one and drop the one-tool-per-endpoint servers it replaces.

Skip it when: your MCP servers have a handful of tools, or they are connected but unused (deferred loading already makes those cheap).

Worth it for: normal work and above. Source: Cloudflare: Code Mode, give agents an entire API in 1,000 tokens

Vet a third-party plugin, skill or MCP server before you install it

A plugin runs code as you: its hooks, MCP servers and bin/ files run outside the sandbox, and its skill text enters Claude's context as instructions. Anthropic does not verify third-party plugins, and auto-update can change the files after you reviewed them. A static scanner finds leads; reading the files decides.

What to do: Read a third-party plugin's hooks/hooks.json, .mcp.json and bin/ files before you install it, list it with claude plugin details on a clone, and scan it in static mode (SkillSpector, from Nvidia). Treat findings as leads to read.

Skip it when: you wrote the plugin yourself, or it ships no hooks, MCP servers or bin/ files and comes from a publisher you already trust.

Worth it for: normal work and above. Source: Claude Code: Plugin security and trust

What persists and in which tier

Put knowledge in the right tier

Five tiers: (1) always-loaded (CLAUDE.md/AGENTS.md) pays full price every turn; (2) on-demand (skills, digests) ~30-60 tokens idle; (3) session state; (4) external memory MCP (tool definitions load on first use, not at startup); (5) cold storage (git) free. Most waste is knowledge sitting one tier too high.

What to do: Move a 500-token procedure from Tier 1 to a skill (Tier 2) and it costs ~100x less over a month with zero content change. /token-coach:cto memory audits placement.

Skip it when: CLAUDE.md is nearly empty: there is nothing mis-tiered yet.

Worth it for: normal work and above. Source: Anthropic: Effective context engineering for AI agents

One AGENTS.md serves every tool

AGENTS.md is the cross-tool standard (Codex, Cursor, Copilot…) and Claude Code reads it as a fallback when no CLAUDE.md exists. Maintaining CLAUDE.md and AGENTS.md as near-copies means paying twice and letting them drift.

What to do: Keep one file; symlink or standardize on AGENTS.md. /token-coach:cto memory detects duplication and drift and can wire it up.

Skip it when: you only ever use one tool; portability buys nothing.

Worth it for: normal work and above. Source: Anthropic: Claude Code best practices

Execution shape: plan mode, skills, human-in-the-loop

Turn a recurring task into a skill

If you've walked Claude through the same procedure several times, you're re-paying to re-specify it each session. A skill captures it once, loads only when relevant (Tier 2), and runs consistently.

What to do: When a task recurs 3+ times, build a skill for it (the skill-creator skill scaffolds one). CTO flags recurring shapes it detects in your history.

Skip it when: you have done this once or twice: skills pay off on recurrence, and building one for a one-off is pure loss.

Worth it for: normal work and above. Source: Anthropic: Equipping agents for the real world with Agent Skills

Plan multi-file work before executing

For work that touches several files or has unknowns, planning first keeps exploration out of the execution context and turns a fuzzy goal into a deterministic spec: cheaper and higher quality than discovering as you edit.

What to do: Use plan mode for multi-file changes; let the plan become the spec for a contained execution phase. Pair with subagents for the discovery.

Skip it when: the task is a one-liner; planning it costs more than doing it.

Worth it for: normal work and above. Source: Anthropic: Claude Code best practices

Gate the irreversible steps

Autonomous is cheap until an irreversible or high-stakes step goes wrong; then it's the most expensive path. Verification and human approval belong exactly at the steps you can't take back: sends, deletes, deploys, money, org-visible changes.

What to do: Identify the irreversible steps up front and require confirmation there; let the reversible steps run unattended. Keep a rollback path for anything shipped.

Skip it when: nothing in the task is irreversible or externally visible.

Worth it for: high-stakes work only. Source: Anthropic: Building effective agents

Interrupt a turn the moment it goes wrong

A turn heading the wrong way still runs to completion at 5x output price, then pollutes the context you re-send. Zero interrupts over a heavy period usually means bad turns are running to the end.

What to do: Press Esc as soon as a turn is clearly off; re-steer with a corrected prompt rather than letting it finish and correcting after.

Skip it when: you are not running loops or scheduled work.

Worth it for: normal work and above. Source: Anthropic: Claude Code best practices

Hand off across a /clear instead of losing the thread

The deliberate alternative to auto-compaction: write a resume note so you can /clear a bloated session and continue without paying to carry all of it forward.

What to do: /token-coach:handoff writes HANDOFF.md; then /clear and paste it into the fresh session.

Skip it when: the session is ending with nothing worth carrying forward.

Worth it for: normal work and above. Source: Anthropic: Effective context engineering for AI agents

Agent teams cost roughly 7x a normal session

Each teammate is a separate Claude instance with its own context window, and each loads CLAUDE.md, MCP servers and skills on spawn. In plan mode the documented figure is about 7x a standard session, scaling with team size and how long each teammate runs.

What to do: Use Sonnet for teammates, keep teams small, keep spawn prompts focused, and shut teammates down when their work is done: an idle teammate keeps consuming until it exits.

Skip it when: you are not using agent teams: the 7x does not apply to you.

Worth it for: high-stakes work only. Source: Claude Code: Manage costs effectively

A scheduled task re-sends your whole context every time it fires

Scheduled tasks and loops fire on their interval even while the session sits idle, and each firing sends the full conversation. A cheap-looking 5-minute poll on a large session is one of the fastest ways to burn a plan limit while doing nothing.

What to do: Put recurring automation on the longest interval that still works, and prefer a SessionEnd hook for anything that just needs to run periodically: it executes after the session and costs zero context tokens.

Skip it when: you have no scheduled tasks or loops configured.

Worth it for: normal work and above. Source: Claude Code: Manage costs effectively

Optimize a reusable SKILL.md with a training loop, not by hand (SkillOpt)

If you author a skill you reuse often, its wording is worth tuning like code. SkillOpt (open source, MIT) treats a SKILL.md as trainable text: it runs your task set through a model, proposes small edits, and keeps an edit only when a held-out split improves. A typical result is a ~920-token file with one to four edits accepted. It calls an external model API while training, so it spends tokens to save them later; the tuned file then runs locally against an unchanged model.

What to do: For a skill you reuse often: give SkillOpt a small task set with a held-out split, read its proposed edits by hand, and keep them only if held-out accuracy rose. Run it once, offline; a one-off prompt doesn't need it.

Skip it when: you are not authoring or maintaining a reusable skill file; for a single prompt, tune the prompt, not a trained skill.

Worth it for: normal work and above. Source: microsoft/SkillOpt

Know what Claude Code may do without asking you

Permission rules are checked deny first, then ask, then allow, and a deny in any settings file wins. File reads inside the working folder never ask. An allow rule with a wildcard on an interpreter is close to allowing every command, and bypass mode skips prompts even for writes to .git and .claude. The rules are enforced by Claude Code, not by the model: an instruction in CLAUDE.md shapes what Claude tries, it does not restrict what is allowed.

What to do: Run /token-coach:cto permissions to see what your rules add up to and which are wider than they look. Move hard-to-undo commands from allow to ask, add deny rules for secret files such as Read(./.env), and keep bypass mode for a container.

Skip it when: a scratch folder with nothing in it worth protecting.

Worth it for: normal work and above. Source: Claude Code: Configure permissions

Proving the work is right

Prefer mechanical verification over re-reading

For deterministic work, a test/compile/lint check is cheaper and more reliable than asking a premium model to re-read and judge output. Reserve model-based review (the critic agent) for judgment calls.

What to do: Make the success check mechanical where you can (tests, schema, compile). Use the critic agent for ranked review only where judgment is needed.

Skip it when: a throwaway experiment where being wrong costs nothing but a rerun.

Worth it for: high-stakes work only. Source: Anthropic: Building effective agents

Without an eval you are tuning prompts by vibes, and paying per guess

Every prompt change is a bet. With no way to score it you rerun the task, eyeball the output, and pay full price for each round, and you still cannot tell a real improvement from noise. Anthropic's guidance is blunt about the trade: prioritise VOLUME over per-case quality, because many automatically-graded cases beat a handful of hand-graded ones.

What to do: Build a small labelled set before tuning. Grade with code where the answer is checkable (exact match, string match); use an LLM grader with a Likert or binary scale only for genuinely subjective criteria like tone. Hand-grading does not scale and is the reason most prompt tuning never converges.

Skip it when: a prompt you will run once: an eval harness for a single run is pure overhead.

Worth it for: high-stakes work only. Source: Anthropic: Define success criteria and build evaluations

Test a skill or plugin with evals, against a no-plugin baseline

Wording that reads well can still trigger on the wrong prompts or change nothing. claude plugin eval runs realistic prompts with graders and compares the result with running without the plugin, so you see what it contributes and catch regressions when you edit it or a new model ships. Rubric graders spend model tokens.

What to do: For a skill or plugin you share or reuse: run claude plugin eval init to draft cases, add a few prompts it must not trigger on, compare against the no-plugin baseline, and rerun after each edit or model change.

Skip it when: a personal skill you run rarely: read its output instead.

Worth it for: normal work and above. Source: Claude Code: Test plugins with evals

Let CTO pick for you. It reads the task in front of you and names the one or two of these that fit. Paste this in a terminal, then fully quit and reopen Claude Code:

claude plugin install --marketplace tokencoach/token-coach token-coach