Universal Claude.md – cut Claude output tokens
TL;DR Highlight
One CLAUDE.md file cut Claude's output by up to 63% in the author's test
Who Should Read
Developers running Claude Code agent loops or automation pipelines who worry about output token costs
Core Mechanics
- One CLAUDE.md file makes answers terse
- Its rules cut greetings, closing fluff, restated questions, and unrequested suggestions.
- Drop it in the project root with no code changes and it applies to every message.
- The original benchmark is only a directional 5-prompt test
- Word count dropped from 465 to 170, a 63% reduction.
- The author says each prompt ran once with no repeated runs or variance controls.
- A reproducible token benchmark showed much smaller gains
- With the current minimal CLAUDE.md at N=5, output tokens fell about 4% (haiku), 12% (sonnet), and 7% (opus).
- The 63% figure is reachable only with a stricter rules profile.
- Current models already skip most of the fluff
- The semantic eval found 0% preamble, sycophancy, "as an AI", and smart quotes in baseline outputs.
- Rules targeting those only add input cost, so trim them.
- The file costs input tokens on every message
- Savings come from output while the cost lands on input, so it only pays off at high output volume.
- The author says it costs more than it saves on short or occasional queries.
- An external benchmark showed v8 17.4% cheaper in total
- Across 3 coding challenges (CSV reporter, SQLite window functions, Hono WebSocket), v8 cost $0.935 vs $1.131 for C-structured.
- C-structured was cheaper on SQLite: $0.376 vs $0.406.
- Pasting rules in chat cost 41% more than the v8 file.
Community Reactions
- Opinion that the benchmark skews toward single-shot explanations
- Commenters say there is no data showing it helps agentic coding loops.
- One argued verbose explanations may keep long sessions coherent.
- Opinion that "answer first" backfires
- LLMs are autoregressive, so reasoning after a locked-in answer can just rationalize it.
- Others criticized measuring only output tokens without accuracy, and said accepting every user correction as ground truth is dangerous.
- Data point that output is a small share of tokens
- A comment cited a blog using OpenRouter programming data: 93.4% input, 2.5% reasoning, 4.0% output.
- The takeaway is that savings should come from the input side.
- Opinion pointing to input-compression tools instead
- One commenter recommended claude-mem and lumen as tools that really work.
- Another quoted a Reddit post about Headroom, RTK, and MemStack stacking, but had not tested them.
- Experience that Claude Code was never verbose for them
- One user said Opus 4.6 never gave such verbose answers.
- Another said inline code execution with escaping errors burns 20-30k tokens per self-healing loop.
How to Apply
- Audit your CLAUDE.md for wasted rules
- Delete rules against greetings and flattery that your model already doesn't produce.
- Keep the file short and keep only rules for failures you actually hit.
- Add one or two rules for your real failure modes
- For example: "when a step fails, stop and report the full traceback before attempting a fix."
- The author says specific rules beat generic ones like "be concise."
- Measure before and after yourself
- Run the same prompts at least N=5 and compare output_tokens.
- Reproduce the author's benchmark with python3 benchmark/run.py -n 5 --model opus.
- Split CLAUDE.md into global, project, and subfolder files
- Put tone and format in ~/.claude/CLAUDE.md.
- Put project constraints in the root file and task rules in subdirectory files.
Try It
# Run in your Claude Code project root (downloads and applies the repo's CLAUDE.md)
curl -o CLAUDE.md https://raw.githubusercontent.com/drona23/claude-token-efficient/main/CLAUDE.md
# To pick a profile instead, copy one like this
# git clone https://github.com/drona23/claude-token-efficient
# cp claude-token-efficient/profiles/CLAUDE.coding.md ./CLAUDE.md
# To compare: reproduce the repo benchmark
# python3 benchmark/run.py -n 5 --model opusTerminology
Related Papers
A Beginner's Guide to Local AI with Inkling, Qwen, and Unsloth
Install Unsloth Desktop, load a quantized Qwen model, and share a private ChatGPT-like AI on your home LAN.
Muru – AI-assisted Rust server for Python apps by mod_WSGI's creator
mod_wsgi's creator is building Muru, an AI-assisted Rust ASGI/WSGI server, documenting it in public
87% of the Anthropic power will come from gas and 11% from coal in 2028
Analysis of Anthropic's contracted data centers: 87% gas, 11% coal power in 2028
Anthropic’s Nasdaq debut
Anthropic listed on Nasdaq and closed its first day below its opening price.
OpenAI still has a WebRTC Problem
WebRTC drops late audio, hurting voice AI; MoQ retransmits and buffers instead
Gemini 4 Neon
Gemini 4 Neon cuts cost per task 32% versus Carbon, at $3 input and $15 output per million tokens
AI is killing All About Berlin
After Google AI Overviews, a Berlin guide site lost 70-75% of its traffic.
Not Everything Needs an LLM
PostHog used small decision models to skip 98.7% of expensive LLM calls
Related Resources
- https://github.com/drona23/claude-token-efficient
- https://github.com/drona23/claude-token-efficient/issues/1
- https://aifoc.us/the-token-salary/
- https://github.com/thedotmack/claude-mem
- https://github.com/ory/lumen
- https://github.com/chopratejas/headroom
- https://github.com/rtk-ai/rtk
- https://github.com/cwinvestments/memstack
- https://github.com/Piebald-AI/claude-code-system-prompts