
80% of Claude Code’s system prompt was removed for two models without a measurable drop in test results. That finding points to one way you can make your Claude usage allowance go further: avoid loading instructions you don’t need. Claude Code is Anthropic’s coding assistant, and its token use also depends on how you manage conversations and cached context. Learn how shorter sessions, stable settings and on-demand instructions can help reduce usage, as reported by Nate Herk.
Claude Code: Reduce Token Use With Session Habits
TL;DR Key Takeaways :
- Keep the session prefix unchanged to preserve caching, which costs one-tenth of the normal input price or less for certain models.
- Choose a model before starting because switching models after 100,000 tokens can require the new model to process the full context again.
- Keep caches warm: subscription caches last about an hour after the last message, while API caches last five minutes.
- Start a fresh session for unrelated tasks to avoid rereading context that can grow to hundreds of thousands of tokens per request.
- Keep CLAUDE.md under 200 lines, as Anthropic recommends, and move task-specific instructions into skills that load fully only when needed.
You can waste Claude Code usage by disrupting the cache, keeping unrelated work in one long session or loading more instructions than a task needs. Anthropic’s coding tool uses prompt caching to reduce repeated processing, but your session habits affect how much work it can reuse.
Every message in Claude Code carries context from the conversation, including instructions, files and earlier messages. Fable 5.2, Opus 5.5, Sonnet 5.5 and Haiku 5.5 each have a one-million-token context window and a maximum output of 128,000 tokens. As a session grows, Claude may need to process tens or hundreds of thousands of tokens for each new request.
Below are more guides on Claude token usage and Claude Code from our extensive range of articles.
- Claude Opus 5.5 Prompting Guide: Dropping “Think Carefully” from Prompts Sharpens Responses
- Daily Habits That Make Claude Code a True Coding Partner & More
- Anthropic Adds Persistent JavaScript Mods to Claude Code
Keep the Session Prefix Unchanged
Prompt caching saves input Claude has already processed, allowing it to concentrate on new material. Anthropic charges one-tenth of the normal input price for cached input, or less for certain models.
Claude can reuse the saved portion when the beginning of the conversation, or prefix, stays the same. The prefix includes settings, tools and instructions; if something changes, Claude must process the material following that change again without the cached price.
Thariq, an engineer on the Claude Code team, says the tool was built around caching and that a high cache hit rate helps Anthropic offer more generous subscription limits. The team has alarms for frequent cache misses, which it treats as an emergency.
Choose Models and Tools Before Starting
Switching to a cheaper model halfway through a conversation can cost more than staying with the original model because each model has its own cache. In an example Thariq published in April, switching from Claude Opus to Claude Haiku for an easy question after 100,000 tokens would make Haiku process the full context from scratch. The exact figures could change as models change.
Choose your model at the start of a session and keep it for that task. If a small job needs a cheaper model, Claude can use a Haiku subagent to summarize files or research a question. The subagent has its own conversation and cache, leaving the main session untouched.
Connect the tools you need before you begin, too. Claude Code’s documentation says adding a tool can break the cache if tools load upfront. A skill created during a session can also be difficult to invoke by slash command until you open a new session, because the session’s prefix has already been established.
Keep the Cache From Going Cold
A cache expires after inactivity, so returning to a long conversation can require Claude to process the session again. A subscription cache stays warm for about an hour after the last message, while an API cache stays warm for five minutes.
A prompt sent before expiry can keep the cache warm. In one session, the estimated cost of rebuilding a 400,000-token cache was almost $3.50 in usage, compared with about 8 cents to keep it warm. Repeated rebuilds could add up.
A custom mod can show whether a cache is warm, how long it has left and the estimated cost of expiry. It can also warn you about five minutes before the cache goes cold.
Give Each Task a Clean Session
Even a working cache does not make a long conversation free: Claude still rereads cached context at the lower rate. Anthropic says one long session costs more than spreading the same work across shorter sessions. Claude platform product lead Brad Abrams says Claude Code’s cache hit rate usually runs in the 90s.
Start a fresh conversation for an unrelated task rather than carrying the day’s files and messages forward. To wipe the current chat and its context, use:
/clear
When you need to continue the same task with less context, this command turns the conversation into a shorter summary:
/compact
A custom handoff skill is another option: it can produce a summary to paste into a new session. The commands /handoff and /session handoff belong to the custom skill rather than the default compact workflow.
Specific requests can also keep unnecessary files out of context. If you know a bug is in the total-price function in checkout.js, naming the file and function may let Claude read that file instead of searching through dozens.
Cut Instructions Claude Does Not Need
The CLAUDE.md project-instructions file loads into every session, including those that do not need all its rules. Anthropic says a long file consumes more tokens and makes Claude less likely to follow the instructions.
Anthropic’s engineers removed about 80% of the Claude Code system prompt, the instructions supplied before you type, for Opus 5 and Fable 5 without a measurable drop in their test results. Rules tend to pile up when you add one every time Claude does something you dislike. Some of the accumulated instructions conflicted with one another, and newer models may need fewer detailed rules and examples.
Keep the always-loaded file focused on brief role information, who the work is for and where files live. Processes such as a content checklist or client onboarding steps can go into skills or separate instruction files instead. Anthropic recommends keeping CLAUDE.md under 200 lines.
Load Skills Only When Needed
Skills use progressive disclosure: Claude sees a short description in each skill’s YAML front matter at the start of a session, then loads the full SKILL.md instructions when it invokes that skill. You can ask Claude to turn a section of CLAUDE.md or another file into a skill.
This command checks CLAUDE.md for rules Claude could work out on its own and offers to move remaining instructions into skills:
/doctor
In one setup, it found a file from a separate project that was loading into every session and adding about 2,000 tokens. Claude Code creator Boris Cherny recommends deleting skills every six months and checking whether newer models can achieve the same results without them; rules for preferences or information Claude would not otherwise know may still be useful.
How Much Allowance Each Plan Gives You
Claude Code is included from the Pro plan upward. Pro costs $20 a month, or $200 a year; Max costs $100 a month with five times Pro’s allowance; and Ultra costs $200 a month with ten times Pro’s weekly allowance. Team seats cost $20 or $100 a month with annual billing, and Claude Code used through a Console account is charged at standard API prices.
On subscription plans, Claude Code shares its usage allowance with other Claude activity. Anthropic says there is no fixed message count because usage depends on the model and the length and complexity of interactions. Token-saving habits can also change with a new model or feature, so it is worth revisiting them after updates.
In our view, the most useful idea here is that a move that looks thrifty, such as swapping to a cheaper model midway through a chat, can cost more overall. Protecting the start of a session matters more than shaving the price of one answer.
None of these habits needs a new tool or a different plan, only a change in how you start and end a session. For anyone using Claude Code who wants to make their usage allowance go further, these token-saving habits are well worth trying.
Media Credit: Nate Herk | AI Automation
Disclosure: Some of our articles include affiliate links. If you buy something through one of these links, Geeky Gadgets may earn an affiliate commission. Learn about our Disclosure Policy.