The Hidden Token Drain
Most Claude Code users blame their prompts for high token usage, but the real culprits are often overlooked: stale chat history, bloated instruction files, and logs that Claude never needed to read. Here are 23 practical techniques to cut token consumption by up to 60% without sacrificing productivity.
Section 1: Essential Commands
-
/clear– Resets the conversation context without losing your working directory. Use it between unrelated tasks to avoid carrying unnecessary history. -
/compact– Condenses the conversation into a shorter summary, preserving key decisions while dumping verbosity. -
/context– Shows exactly which files and snippets are loaded in the current session. Remove anything not needed. -
/usage– Displays your token consumption for the session. Monitor regularly to identify wasteful patterns.
Section 2: Fixing Instruction Files
-
Shrink your
CLAUDE.md– Keep only essential instructions. Remove examples, lengthy explanations, and redundant rules. -
Use external reference files – Instead of loading large documentation into every session, point Claude to specific files with a command.
-
Stop including entire codebases – Only load the files relevant to the current task. Use glob patterns selectively.
-
Remove verbose logging – Trim example logs in prompts to just the important lines.
Section 3: Prompts That Save Tokens
-
Be specific – Instead of "explain this code," say "explain the
calculateTotalfunction in one sentence." -
Set output limits – Request short answers: "List three fixes, each 10 words max."
-
Avoid unnecessary context – Don't restate what Claude already knows. Use
@contextto inject only new info. -
Use
/compactbefore a complex prompt – Clear out old chatter to give Claude room for the response.
Section 4: Workflow Optimizations
-
Parallel sessions – Split large projects across multiple Claude instances to keep each session small.
-
Batch similar tasks – Group related questions into one prompt instead of multiple small ones.
-
Write helper scripts – Automate repetitive edits so Claude doesn't have to re-read the same files.
-
Use
--no-stream– Disable streaming for long tasks to avoid token leaks from network overhead. -
Set a max tokens – Use the
-mflag to cap response length. -
Audit your
CLAUDE.mdweekly – Remove outdated instructions. -
Archive old sessions – Use git branches for experiments, keep the main session clean.
Section 5: Advanced Savings
-
Leverage workspace caching – Store frequently used context in separate files and load on demand.
-
Use
/compactwith custom summaries – Tell Claude what to keep: "retain only file structure and last function." -
Monitor with
/usageat fixed intervals – Set a timer every 30 minutes. -
Review Claude's feedback – If Claude says "this is a lot of context," it's time to trim.
The Bottom Line
By systematically cutting unnecessary tokens, you can reduce your Claude Code bill by half or more. Start with the /compact and /clear commands today—they require zero setup and deliver immediate savings.