Managing the context
The idea: Clear it, compact it, or start fresh — pick the move for the moment. Anything not in the window (files, memory notes) can be reloaded on demand, so pruning is safe.
What you'll be able to do: You can decide when to clear, compact, or open a new session, and what survives each.
The problem it solves: The session is huge and the agent is getting slow, vague, and expensive. Now what?
Builds on: What's in the context window
← What's in the context window · Next: Prompt caching: reuse the prefix →
All lessons