Maximizing Value in Claude Code Sessions: Token Efficiency Tips

Anthropic published a practical guide on getting more value from every token spent in Claude Code sessions. It covers the mechanics of token pricing and offers six concrete tactics to reduce waste without switching models.
What Determines Token Cost
You're billed per token, but you're really paying for GPU inference time. Three factors decide the price of a token: model size, input vs output, and caching. Output tokens cost roughly 5x input because decode runs the model once per token. Cached input tokens are cheaper, and prompt caching expires after an hour.
Six Ways to Cut Token Waste
- Run
/clearbetween tasks — prevents irrelevant prior context from being sent to the model, reducing token usage. - Set your model and effort level before starting — changing them mid-conversation busts the prompt cache, increasing cost.
- @-mention files instead of naming them — the file attaches directly to your message, saving a Read call or a repo search.
- Add quiet flags to noisy commands, or run them in a subagent — command output stays in the conversation for the rest of the session.
- Run
/contextonce in a fresh session — shows what's loaded (CLAUDE.md, MCP tools), so you can cut unnecessary items. /compactbefore you take a break — the prompt cache expires after an hour, and summarizing while cached is cheaper.
The guide emphasizes that being token-efficient isn't about using fewer overall, but making sure the ones you use go toward the actual task. For example, in one session Claude reads the test and the file it covers, edits, and finishes in a few turns. In another, it greps around, reads a dozen files to reach the same two, and drags all that context into every subsequent turn — costing more and making the model think about irrelevant files.
📖 Read the full source: HN AI Agents
👀 See Also

Multi-Agent Architecture: Avoiding the Single-Agent Pitfall in AI Systems
A Reddit post identifies the common architectural mistake of using a single agent for multiple tasks, which leads to fragile systems requiring constant babysitting. The solution proposed is an orchestrator-specialist model where each agent has a narrow, specific role.

Pricing AI Agents: Lessons from Selling OpenClaw to Small Businesses
After months selling OpenClaw agents to law firms and real estate, a builder shares practical pricing strategies: per-seat fails, AI-employee framing wins, and pass-through LLM costs prevent margin erosion.

Building a Custom Hindi Glossary System with Claude: From 76% to 92% Accuracy in 10 Months
A solo dev in Bangalore built a custom glossary system for Claude to improve Hindi domain vocabulary accuracy from 76% to 92%. Example-based terms with context sentences worked best.

vLLM Setup and Testing on 10x NVIDIA V100 Server with 320GB VRAM
A lawyer building a local AI server for legal work shares vLLM testing results on 10x Tesla V100 SXM2 32GB GPUs, detailing what works (FP16 unquantized, bitsandbytes 4-bit) and what doesn't (GPTQ, AWQ, FlashAttention2) on Volta architecture.