Anthropic shares 6 official tips to cut Claude Code token costs
addyosmani · x · 2026-09-03
Anthropic engineer Lydia Hallie published an official guide on maximizing Claude Code session efficiency:
- Run /clear between tasks to avoid resending irrelevant context and cut token usage.
- Set model and effort level upfront — switching mid-conversation busts the prompt cache and raises costs.
- @-mention files instead of naming them, attaching files directly and saving a Read call or search.
- Silence noisy command output or run it in a subagent, since output lingers in the session like a file.
- Run /context once in a fresh session to see what's loaded (CLAUDE.md, MCP tools) and trim the excess.
- /compact before stepping away — the prompt cache expires after an hour, and summarizing is cheapest while still cached.
With agentic coding tools billed by usage, every task now has a real cost, making context management the key to savings.
More from coding & agent
- Salesforce research: buyer agents concede too easily, images boost persuasion ~17% — msrivastav13 · 2026-12-05
- Grok Build launches agent-driven post-quantum cryptography migration after NSA advisory, with $1,000 credits — ns123abc · 2026-12-05
- Seroter's reading list: post-quantum prep, agent harnesses, and life after 99% AI code — rseroter · 2026-12-05
- WSDM Cup 2027 Offers $10k to Build Autonomous Community Notes Agents — sanmikoyejo · 2026-12-05
- Trying Copilot Studio MCP for agent cloning and Power Automate sync: janky but workable — koltregaskes · 2026-12-05
- xAI launches Grok Bot: autonomous AI teammates that live in Slack and Teams — Baconbrix · 2026-12-05