💰Claude Code Optimizes Sessions for Lower Token Usage
Reduce Your Claude Code Bill with These Tips
TL;DR
Running /clear between tasks and setting effort levels can cut token usage. Cache management also plays a key role in reducing costs, especially for cached prompts.
Claude Code now offers ways to optimize sessions for lower token usage. Running /clear between tasks prevents irrelevant context from being sent back to the model, saving tokens. Setting the model and effort level before starting a session further reduces token consumption. Using @-mention files instead of naming them can save Read calls or searches in Claude. Adding quiet flags to noisy commands or running them in subagents also helps reduce token usage. The prompt cache expires after an hour, making summarizing conversations cheaper while it's still cached. Larger models do more work on both input and output tokens, suitable for complex tasks but at a higher cost.

Key Points
Running /clear between tasks prevents irrelevant context from being sent back, saving thousands of tokens per session
Setting effort levels before starting a session can reduce token usage significantly by controlling how much thinking the model does per turn
@-mention files instead of naming them saves Read calls or searches in Claude, reducing costs for frequent file access
Adding quiet flags to noisy commands or running them in subagents helps cut down on unnecessary token consumption
Prompt cache expires after an hour; summarizing conversations is cheaper while cached state can be reused
Why It Matters
If you're using Claude Code for complex tasks, optimizing sessions and managing the prompt cache effectively can save thousands of tokens per session. For teams running frequent file access or noisy commands, these tips can significantly reduce costs.
Frequently Asked Questions
Why does this matter?
If you're using Claude Code for complex tasks, optimizing sessions and managing the prompt cache effectively can save thousands of tokens per session. For teams running frequent file access or noisy commands, these tips can significantly reduce costs.
What happened?
Running /clear between tasks and setting effort levels can cut token usage. Cache management also plays a key role in reducing costs, especially for cached prompts.
Comments
Be the first to comment
Enjoyed this article?
Get it daily. 7am. Free. Reads in 5 minutes.
Join 3,006 builders reading daily.