Step-by-step answer
Core 60–75 min6 stepsSimulate context policies with and without caching
A block-level simulator of an agent's context in which a request's cached prefix is the run of blocks unchanged since the last request. It reproduces the lesson's 40-step table, shows aggressive clearing costing 50% more than doing nothing under caching, and sweeps clear_at_least and the compaction trigger at 40 and 80 steps to pick settings.
Back to the exercise