AI Signal 495
Claude Code guide recommends /clear between tasks and /compact before breaks to cut token costs
Anthropic published guidance on reducing token costs in Claude Code sessions through context management, prompt cache preservation, and effort level discipline.
Claude Code bills per token, with output tokens priced at roughly 5x input tokens, so the same task can cost different amounts depending on how much irrelevant context accumulates. These practices directly affect the per-task cost of using agentic coding tools, which unlike traditional editors carry a variable price per completed piece of work.
Written by elseif from the cluster below · every claim links back to a sourceThe three things worth knowing
Running /clear between tasks prevents irrelevant prior context from being sent back to the model, reducing token usage.
Changing model or effort level mid-conversation can invalidate the prompt cache, increasing token cost.
Running /compact before a break preserves session state cheaply, since the prompt cache expires after an hour.
THE CLUSTER
↗