flâneur

Maximizing the value of your Claude Code sessions | Claude by Anthropic

claude.com · 2,200 words · saved by 1 readers

Practical tips for how to run efficient sessions that get the most value from every token.

Input and output tokens A request goes through the GPU in two phases, and they cost different amounts. First, during prefill, the model reads your request and context: the system prompt, your CLAUDE.md, your message, and everything that's been added to the conversation since (the files Claude has read and the output of the commands it ran). Those are your input tokens. Then, during decode, it writes output tokens: its thinking, the tool calls it makes, and the text you see. This happens one token at a time; a 200-token response is 200 runs of the model, one after the other. Per token,…

saved by

related reading