Claude Certification
Context Management & Reliability
Lesson 1 · 6 min

Token Budgets

Working within context windows without truncating critical state.

Sonnet 4.6 has 200K (or 1M) context. Plan for ~70% of the window so you have headroom for outputs and tool results. Track tokens per message section so you know where to cut first.

Quick check
Context & ReliabilitySelect one
How does Claude Code's auto-compaction work?