Skip to slide
062 / 170

CH 05 · Prompt Caching and Context Management · 14/15

Read as one page

Connecting to the bigger picture

Chapter 4 measured the problem; this chapter solves it. The apply_change_cache_safely pattern protects the prefix that Chapter 3's PromptBuilder carefully put first. The Compactor keeps the loop from Chapter 2 from ever hitting the window ceiling. Chapter 9's file-based memory is the third context-management move (external storage). And Chapter 11's subagents are arguably the best context tool of all: a subagent does noisy work in its own window and returns a tiny summary, so the main context never sees the mess.

Finished this idea?

Your learning progress stays in this browser.