PrepGenAICerts

Pruning, Compaction, Isolation & Progressive Disclosure

Advanced

Optimize the context window and manage token budgets · Difficulty 3/5

0%
pruningcompactionisolationprogressive-disclosuretoken-usage

Explanation

Curation Techniques

Four complementary techniques curate the context window down to high-signal tokens:

TechniqueWhat it does
PruningDrop large or stale tool output that no longer informs the task
CompactionSummarize older turns into a compact recap instead of carrying the full transcript
IsolationMove heavy subtasks into a subagent with its own context window, keeping the main context clean
Progressive disclosureLoad information as it's needed rather than front-loading everything

Isolation ties directly to multi-agent orchestration: rather than cramming a heavy exploration or research subtask into the primary agent's window, delegate it to a subagent whose own window absorbs the verbose intermediate work, and return only the distilled result. Progressive disclosure is the same discipline applied to information access more broadly -- it connects to the choice between progressive discovery and monolithic context in integration design.

Tracking Usage

Track the API response's usage field (input/output/cache tokens) to model cost per call and to catch context bloat before it hits the model's context-window budget. Usage tracking is the observable signal that tells an architect *when* pruning, compaction, or isolation is needed -- it is not itself a curation technique, but the instrumentation that triggers one.

Common exam traps

  • Treating these four techniques as interchangeable. Pruning removes stale content, compaction condenses history, isolation moves work out of the main window entirely, and progressive disclosure controls what enters in the first place -- they solve different parts of the curation problem and are often used together.

Key Takeaways

  • Pruning drops stale tool output; compaction summarizes older turns; isolation moves heavy subtasks into a subagent's own window; progressive disclosure loads information only as needed
  • Isolation connects directly to subagent/orchestration design
  • Track the usage field (input/output/cache tokens) to model cost and detect bloat before hitting the budget
  • The four curation techniques solve different problems and are typically combined

Glossary Terms

Related Concepts

PrepGenAICerts.com is an independent third-party exam-prep platform for the Claude Certified Architect (CCA-F) certification. We are not affiliated with, endorsed by, or acting on behalf of Anthropic PBC.

Note: New premium upgrades are temporarily paused while we resolve an issue with our payment provider. Existing premium members retain full access.