Loading video player...
Explains how the context window works in Claude Code, including token limits, how conversations consume context, and what fills the window internally. The video covers auto-compaction, manual compaction using /compact, splitting work into sessions, using sub-agents, and best practices to manage tokens, reduce cost, and maintain response quality. Chapters 00:00:00 - Introduction & Importance of Context Window 00:00:30 - Addressing Viewer Questions (Project Complexity & Terminal vs GUI) 00:04:16 - What is Context & Context Window 00:08:47 - Claude Code Context Window Size & Token Usage 00:11:17 - Conversation Growth & Why Sessions Should Be Split 00:14:15 - Sub-Agents & Isolated Context Windows 00:15:58 - What Fills the Context Window Internally 00:20:19 - Checking Context Usage with /context 00:20:57 - Why Context Window Management Matters (Cost & Quality) 00:23:25 - Auto-Compaction Explained 00:25:54 - Manual Compaction with /compact 00:29:49 - Using Sub-Agents, /clear, and New Sessions 00:30:56 - Best Practices for Managing Context Window 00:33:48 - Why Terminal is Preferred Over GUI 00:34:55 - Summary & Outro