Home / Claude Certified Architect – Foundations / Objective 5.4

Domain 5: Context Management & Reliability · 15% of the exam · Full exam outline

5.4 Manage context effectively in large codebase exploration

What this objective covers

Context degradation in extended sessions: models start giving inconsistent answers and referencing "typical patterns" rather than specific classes discovered earlier. The role of scratchpad files for persisting key findings across context boundaries. Subagent delegation for isolating verbose exploration output while the main agent coordinates high-level understanding. Structured state persistence for crash recovery: each agent exports state to a known location, and the coordinator loads a manifest on resume. Spawning subagents to investigate specific questions (e.g., "find all test files," "trace refund flow dependencies") while the main agent preserves high-level coordination. Having agents maintain scratchpad files recording key findings, referencing them for subsequent questions to counteract context degradation. Summarizing key findings from one exploration phase before spawning sub-agents for the next phase, injecting summaries into initial context. Designing crash recovery using structured agent state exports (manifests) that the coordinator loads on resume and injects into agent prompts. Using /compact to reduce context usage during extended exploration sessions when context fills with verbose discovery output.

Practice questions

Question 1easy

A main agent hands a subagent the job of finding every place a payment API is called across a large repository. The subagent opens hundreds of files along the way. What should it return to the main agent?

Included in Master: master every domain.See plans
Question 2easy

How does Claude Code combine up-front context with just-in-time retrieval when it works in a repository?

Included in Master: master every domain.See plans