5 Session Habits That Cut Your Claude Code Token Costs

Anthropic published a guide on getting more out of every Claude Code session — mostly cost and context hygiene tips, not new features. Here's the full rundown.

Anthropic published a guide on getting more out of every Claude Code session — mostly cost and context hygiene tips, not new features. Here's the full rundown.

Session Management

  • Run /clear between unrelated tasks so old context doesn't pile up and bloat your prompt.
  • Run /context at the start of a fresh session to see exactly what's loaded before you add more.
  • /compact before a break — your prompt cache expires after 1 hour on subscription plans (5 minutes on API keys), so a stale session just re-prefills from scratch anyway.
  • If you're only discarding a few recent turns (not taking a real break), use /rewind instead of /compact — it preserves your cache instead of busting it.

Model & Effort

  • Set your /model and /effort level at the START of a session. Changing either mid-conversation busts your prompt cache and triggers a full re-prefill — that's a real cost hit, not a minor one.
  • Setting MAX_THINKING_TOKENS=0 turns off thinking tokens entirely, saving even more than dropping /effort to low.

Files & Commands

  • @-mention files instead of naming them in prose — it saves Claude a separate Read call.
  • Add quiet/verbose-suppression flags to noisy commands, or route them through a subagent, so giant command output doesn't flood your main context.
  • Command output over 30,000 characters now automatically gets written to a file instead of dumped inline.

Context & CLAUDE.md

  • Don't carry one task's context into the next unrelated task — start fresh.
  • Use subagents for jobs that produce a lot of output you don't actually need to keep in your main session.
  • Keep CLAUDE.md focused on identity/standing rules — move step-by-step workflow instructions into Skills instead.

Watch Out

Cached tokens run about 0.1x the input price, but a cache WRITE can cost up to 2x — so churning your context (switching models, clearing constantly) can backfire. Input tokens are roughly 5x cheaper than output tokens, and both scale with model size and effort level, so throwing a big model at a routine task costs more than it needs to.

Key Takeaways

  • Lock in your model and effort level BEFORE you start typing — switching mid-session is the single biggest avoidable cache-buster.
  • /rewind beats /compact when you just want to back up a few turns; /compact beats leaving a session idle past the 1-hour cache window.
  • If your CLAUDE.md reads like a step-by-step manual, that content belongs in a Skill, not the always-loaded context.

Source

Maximizing the value of your Claude Code sessions


Source: claude.com

We break down Claude Code news like this every day in the free community. Join the crew on Skool.