AI GLOSSARY
Context Window, /compact, and Context Hygiene
Context is a budget; spend it on information that changes the next decision.
Simple explanation
Claude Code operates within a finite context window. Large logs, repeated files, oversized instructions, and irrelevant tool output can crowd out useful context. Compaction and subagents help preserve the most important state.
Technical explanation
Claude Code operates within a finite context window. Large logs, repeated files, oversized instructions, and irrelevant tool output can crowd out useful context. Compaction and subagents help preserve the most important state.
Example
Trace how Context sources becomes Relevant state through budget + compact.