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
- Developer Moves AI Agents to a Dedicated Linux Workstation Using Incus System Containers — kevinkern · 2026-10-21
- Motion Launches a General Video Agent That Edits Footage and Mimics Any Reference Style — mhdfaran · 2026-10-21
- MCP Platform NitroStack Wins Product Hunt Product of the Day, Focuses on Retention — EstablishmentFun4373 · 2026-10-21
- CodeRabbit Ships 5,000 PRs a Week With a Tiny Team, Hires by Strategy-Game Hours — omojumiller · 2026-10-21
- LukeW maps the five UI problems every AI-native company faces with agents — LukeW · 2026-10-21
- Claude Code over ADB guts a bloatware-laden Android TV, freeing ~90% more RAM — edwinarbus · 2026-10-21