If you're on Claude Code's Pro plan ($20/month), you've probably hit usage limits mid-session. Here are 8 proven strategies to stretch your tokens while maintaining code quality.
Quick Reference:
/clear(fresh start) |/compact(summarize) |/context(check usage) | Target: <30K tokens per session
1. Master Context Commands
/clear — Use between unrelated tasks. Don't carry auth refactor context into CSS work.
/compact — Summarize at 70% capacity, don't wait for auto-compact at 95%.
/compact summarize only architectural decisions, omit debugging attempts
2. Keep CLAUDE.md Lean
Your CLAUDE.md loads on every prompt. Keep it under 150 tokens:
- Short bullet points, not paragraphs
- Project facts Claude needs to know
- Forbidden directories (node_modules, dist, .git)
3. Be Surgical with File References
❌ Token-wasteful:
Check my authentication code for bugs
✅ Token-efficient:
Check @src/api/auth.js for the JWT validation bug in verifyUser
4. Manage MCP Servers Dynamically
Each enabled server consumes context even when idle. Linear alone eats ~14K tokens.
@brave-search disable
/mcp # toggle servers interactively
5. One Task Per Session
The golden rule: One task, one session.
-
/clear→ fresh start - Work on single task
- Commit to Git
-
/clear→ next task
6. Reset Every 20 Iterations
Performance degrades in long conversations. Clear proactively rather than waiting for quality to drop.
7. Write Token-Efficient Prompts
❌ Vague:
Make the login system better
✅ Specific:
1. Add rate limiting (5 attempts/15 min)
2. Implement JWT rotation
3. No other changes
8. Use GitIngest for Large Repos
Instead of loading files directly, use gitingest.com to get optimized summaries. Users report 98% token savings.
TL;DR
| Strategy | Impact |
|---|---|
/clear between tasks |
High |
| Lean CLAUDE.md (<150 tokens) | High |
@ file references |
Medium |
| Disable unused MCP servers | Medium |
| Reset every 20 iterations | Medium |
Start with just 2-3 techniques. Most developers cut consumption by 50-70% with /clear discipline and a good CLAUDE.md alone.
This is a summarized version. For the complete guide with advanced techniques, templates, and FAQ, read the full article on my blog.
Top comments (0)