← Back to all free guides

4 Claude
Token Hacks

A lot of viral Claude cheat codes are useless. These are the 4 I actually use every day to get better answers while burning way fewer tokens, so you stop running out halfway through.

If you use Claude Code, tokens are your fuel. Every message, every file Claude reads and every tool it runs uses some up. Run low and you hit your limit, or your bill climbs.

Here’s the one idea behind three of these hacks. Your context window is Claude’s short-term memory, and Claude Code resends the whole conversation with every request. When a chat feels slow or dumb, the context is usually full of junk, and you’re paying to haul that junk around on every message.

Hack 1: See The Bloat

01

See what is filling it

Run: /context

It shows a colored grid of what’s filling your context right now. When a tool, memory file or skill is hogging space, it suggests a fix. Most people have never looked, so they don’t know a giant CLAUDE.md or a pile of unused connectors is riding along on every message.

Then fix what you see. Run /mcp and disable servers you aren’t using in this project. Trim your CLAUDE.md, since it loads at the start of every session. Anthropic suggests keeping it under 200 lines and moving workflow-specific instructions into skills, which only load when used.

02

See what is costing you

Run: /usage

On any paid plan it shows what’s counting against your limits. You get a split by skill, subagent, plugin and MCP server, plus recommendations like "Trim CLAUDE.md." When the footer says f to fix, press f and Claude applies the ones it can. (Anthropic’s cost guide)

Token Audit Prompt
Audit my setup for wasted tokens. Don't change anything yet. 1. Read my CLAUDE.md (and any files it imports). Count the lines and flag anything that's outdated, repeated, or only matters for one specific workflow. 2. From what is loaded in this session, list the MCP servers, skills and memory files loaded in this project, and mark any I haven't used in this project. 3. Give me a table: item, roughly how much context it costs, keep / trim / move to a skill / disable, and one line on why. 4. Then write a trimmed CLAUDE.md under 200 lines that keeps every rule I actually rely on. Move workflow-specific instructions into suggested skill names instead. Show me the table and the new file, and wait for my OK before you edit anything.
Hack 2: Reset On Purpose

01

Compact and say what to keep

Run: /compact

When the window is getting full (around halfway is a good habit), type /compact. It summarizes the conversation and keeps going from that summary, so you drop the back-and-forth but keep the decisions.

The move most people miss is telling it what to protect. Type /compact keep the final database schema and the brand color codes exactly as written and it focuses the summary on those details.

02

Clear for a new task

Run: /clear

Done with one thing and moving to something unrelated? Don’t keep typing in the same chat. /clear starts a fresh conversation with empty context. Compacting is itself a big request because it reads everything it summarizes, while clearing costs nothing. Rule of thumb: compact to keep going on the same task, clear to start a new one. (All commands)

Hack 3: Right Model, Right Job

01

Brains where it counts

Not every task needs the most powerful model. Put a top model like Opus 5.5 on the work that needs judgment: planning the approach, big decisions and reviewing code. Anthropic says Sonnet 5.5 handles most everyday coding well for less. Switch anytime with /model.

02

Haiku for the grunt work

Subagents, the helpers Claude sends off to read files, search and run tests, don’t need genius. They need speed. Add one line to a subagent’s definition file: model: haiku. Without it, a custom subagent runs on your main model, so if you’re on Opus, every helper is too (subagent docs).

Be Honest About Fable

Fable 5.1 is the premium option, not the money saver. Its API price is $10 in and $50 out per million tokens, which is 2.5 times Opus 5.5. Haiku 5.5 is $0.10 and $0.50 for prompts up to 100,000 tokens, about 40 times cheaper than Opus (pricing). Use Fable when you want maximum brainpower on the main task. The savings come from matching cheap tasks to the cheap model.

03

Lower the effort on easy stuff

Thinking tokens bill as output, and the 5.5 models always think. For simple tasks, type /effort low or /effort medium so Claude spends less reasoning on them.

Hack 4: Redirect Fast

01

Don’t sit and watch it burn

This is the most expensive mistake I see. Claude heads down the wrong path and people let it finish so they can correct it after. That’s double the cost: you pay for the wrong version, then pay again for the fix.

The second it goes sideways, hit Esc and redirect: "Stop, that’s not what I meant. I want X, not Y." If it already changed files, double-tap Esc or type /rewind to roll the code and chat back to a checkpoint. For anything big, press Shift+Tab into plan mode first so you approve the approach before it builds.

Bonus: Make It Automatic

Bake these habits into Claude so you don’t have to remember them. Paste this into the CLAUDE.md file in your project’s main folder (or create one). New to .md files? They’re plain text notes Claude reads. Here’s my crash course. Claude Code also follows the Compact instructions section whenever it summarizes your chat.

Token-Saving Rules For Your CLAUDE.md
# Token & Context Discipline Treat the context window as a limited resource. Follow these rules without being reminded. ## Reading files - Only read the files or sections the task actually needs. Don't read whole folders "to be safe." - When you only need part of a file, read that part. - Search to find the right place before opening lots of files. - Prefer CLI tools (gh, git, grep) over MCP tools when both can do the job. ## Subagents - Send busywork (reading files, searching, scraping, running tests, simple lookups) to subagents running model: haiku, and bring back only a short summary. - Keep planning, decisions and code review on the main agent. ## Staying on track - If you're unsure what I want, ask me ONE question before building. Don't guess and produce a big wrong output I have to pay to redo. - For anything bigger than a small fix, show me a short plan first and wait for my OK. - If I say you're off track, stop immediately and re-align. Don't finish the wrong approach first. ## Keeping context clean - When this task is done and we're clearly moving to a new one, tell me: "This looks like a new task. Want to /clear?" - When the window is getting full, suggest /compact and remind me I can name what to protect. ## Compact instructions When compacting, keep: the current goal, decisions we made and why, file paths we changed, open bugs, and any exact values I asked you to protect. Drop: old tool output, abandoned approaches and repeated explanations. ## Output - Be concise. Give me the answer and the why, not a wall of restated context. - Don't repeat large blocks of code or text back to me unless I ask.

Adjust any line to fit how you work. Then tokens stop being a mystery. You can see where they go, reset on purpose, put cheap work on the cheap model and stop paying for wrong turns.