Your context window is RAM. Treat it like it.
After this, you'll be able to identify the three context layers, prune stale history before it degrades output, and use /clear as a phase boundary instead of a panic button.
Complete Thinking in Agentic Sessions first; this lesson builds on the CLAUDE.md and session-structuring habits you established there.
Context engineering is the discipline of deciding what goes into the model's working memory, and what stays out. Most people treat the context window like a clipboard. Paste in everything. Hope for the best. This is why long sessions degrade.
A 1M-token window doesn't mean you should fill it. Signal-to-noise in context is the real variable. 10K tokens of sharp, relevant context beats 80K tokens of everything you could think of.
The three context layers every L4 engineer manages deliberately: (1) System prompt, your permanent instructions and persona. (2) Working context, the current task, files, and constraints. (3) History, previous turns. Most people never prune any of these. L4 engineers treat stale context like a memory leak.
The /clear command in Claude Code is not for when things break. It's for when you finish a phase. Treat it like a commit, you checkpoint, then clear. Fresh context per work unit. CLAUDE.md is the bridge between sessions, your persistent instruction layer that survives /clear.
Paste this into Claude
Open your longest active Claude session today. Paste a rough description of what's in it: how many turns, what topics have come up, which files or large pastes are still in scope. Then ask: 'Audit this session. Which turns are stale, meaning they no longer relate to what I'm doing now? Which file pastes could be replaced with a 5-line summary? What is load-bearing and must stay?' Use the answer to start a fresh session with only the load-bearing content plus a one-sentence framing.
Check yours against
Use AI to apply this lesson to your current work. Share your situation, ask for one concrete next step, and check the answer against this test: Identify the three context layers in your current session and name one specific item in each that should be pruned before your next request.
Identify the three context layers in your current session and name one specific item in each that should be pruned before your next request.
Pulling this out of your own head now is the part that actually moves it into long-term memory. Re-reading only feels like it does.
Without scrolling up, think of a long chat you have going now. Name the layers of context it carries, and one thing from each layer you'd trim before your next request.
One good answer: 'My support-inbox chat. System prompt: a rule for a product we dropped. Working context: all 400 tickets, when I need today's ten. History: thirty turns about a refund policy that has since changed.' If you named all three layers and every trim is something your next request does not need, it holds.
Context is RAM, not a clipboard. Signal beats size, fresh context per work unit beats one giant session, and pruning is a habit, not an emergency move.