cd /news/ai-tools/make-claude-code-lean-spend-less-mov… · home › topics › ai-tools › article
[ARTICLE · art-181648] src=dev.to ↗ pub= topic=ai-tools verified=true sentiment=↑ positive

Make Claude Code Lean: Spend Less, Move Faster, Get More Done

A developer published a set of four habits for reducing token waste in Claude Code, centered on trimming the context budget consumed by system prompts, tool definitions, MCP servers, skills and memory files. The guidance recommends keeping CLAUDE.md under roughly 200 lines, moving "never do this" rules into enforced permission deny settings, auditing usage with the built-in /context, /usage and /mcp commands, and resetting sessions with /clear or /compact at milestones or past roughly 400k tokens. The author also advises routing large exploration to subagents and reserving high effort for planning.

recommendation

Audit a fresh Claude Code session with /context and /usage, then disable the single largest token consumer and recheck, keeping CLAUDE.md under 200 lines and moving hard rules into permission deny settings.

more in playbook: Controlling LLM cost
read4 min views1 publishedDec 4, 2026

Four simple habits to stop wasting tokens on clutter, with a ready-to-use example for each.

Out of the box, Claude Code can feel heavy. It burns through tokens, talks too much, and slows down. The reason is often not the model but the context budget: the limited space in the window that everything has to share.

Before you type a single word, that space is already taken by the system prompt, tool definitions, MCP servers, skills and your memory files. The more clutter at the start, the less room for real work, and the more your rules get ignored.

The goal is a lean setup: small instructions, only the tools you use, a clean window and a habit of resetting before quality drops. Here are four ways to get there.

This file loads every session, so every extra line costs you every time. A long file is also less effective: the longer it gets, the more of it is ignored.

Make the replies short. Tell Claude to use plain, simplified English and report only what you need to decide. A standard like ASD-STE100 (simplified technical English) is a good model.

Keep it under about 200 lines, with just enough context. Every few months, delete it and rebuild it from scratch.

Move "never do this" rules out of prose. Sentences in CLAUDE.md get forgotten in long sessions. Permission settings are enforced every time.

Example: a lean CLAUDE.md

## Style
- Use simple technical English. Short sentences.
- Say only what is needed. Report only what I need to make a decision.

pnpm build Test: pnpm test Example: a "never" rule as a permission, not a sentence

{
  "permissions": {
    "deny": ["Read(./.env)", "Bash(rm -rf:*)", "Bash(git push --force:*)"]
  }
}

You can't cut what you can't see. Claude Code has built-in commands that show where your tokens go.

/context in a fresh session shows what fills the window: system prompt, tools, memory files, skills. Remove the biggest item, restart, and check again.

/usage shows which MCP server, skill, agent or plugin is using the most tokens.

/mcp lets you toggle off servers you don't use. They stay in your config for later.

Make rarely used skills manual-only so they cost nothing until you call them.

Consider CLIs for simple jobs. A command returns only the lines you ask for. Be fair to MCP, though: a well-built server can also return small results, and a CLI can dump a whole file. Check /usage to find the heavy ones before switching anything off.

Example: a manual-only skill

---
name: release-notes
description: "Draft release notes from merged PRs"
disable-model-invocation: true
---
Summarize merged PRs since the last tag into user-facing notes.

Example: audit routine (copy this prompt habit)

1. Open a fresh session. Run /context. Note the biggest item.
2. Run /usage. Note the top token user.
3. Remove or disable that one thing. Restart. Run /context again.
4. Repeat until the starting window is small.

How you run a session matters as much as how you set it up.

Save high effort for planning. For most other work, medium or low is enough.

Reset at checkpoints. Use /clear (fresh start) or /compact (summarize) when you finish a milestone, or once the window passes roughly 400k tokens. Quality tends to drift as sessions grow, and regular resets keep it steady.

Watch the meter. Add the context meter to your status line with /statusline so you can see the window filling before it hurts.

Example: an effort plan

Plan the feature         -> high effort
Write code and tests     -> medium effort
Rename, format, tiny fix -> low effort
Milestone reached        -> /compact  (or /clear if the next task is unrelated)

Example: a status line request

/statusline show the model name, current git branch,
and a context-window usage bar

Claude Code doesn't have to do everything in one window.

Send big exploration to subagents. They read in their own window, and yours only receives a summary.

Use other tools for what they do best, for example a separate headless worker for vision-heavy tasks, so your main window stays focused on code.

Example: a delegation prompt

Use a subagent to search the codebase for every place we handle
refunds. Have it read files in its own context and return only:
- a list of file paths
- a 5-line summary of how the flow works
Do not paste file contents back to me.

A fast, cheap Claude Code isn't about a secret setting. It comes from protecting your context budget:

Keep CLAUDE.md short, and enforce hard rules through permissions.

Audit with /context and /usage, then remove the biggest item first.

Match effort to the task and reset at checkpoints, before the window gets bloated.

Offload heavy reading to subagents so your main window stays clean.

Start with one change today: run /context in a fresh session and remove the single biggest item. You'll feel the difference right away.

── more in #ai-tools 4 stories · sorted by recency
── more on @claude code 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/make-claude-code-lea…] indexed:0 read:4min 2026-12-04 · —