#Anthropic
2 articles — newest first.
- 9 min read
Budgeting the Claude Context Window Before It Truncates You
The Claude context window is one token budget shared by prompt, tools, thinking, and reply. I count tokens and guard it in code so a reply never truncates.
- 9 min read
Prompt Caching: the Ordering Discipline That Cuts the Bill
I treat prompt caching as FinOps: order the static prefix first, keep it byte-stable, and stop re-paying to re-read an 8K preamble on every request.