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?
id q1343b37f8e
Home / Claude Certified Architect – Foundations / Objective 5.4
Domain 5: Context Management & Reliability · 15% of the exam · Full exam outline
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.
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?
id q1343b37f8e
How does Claude Code combine up-front context with just-in-time retrieval when it works in a repository?
id qa9b7c76419