Which statement best defines a subagent? A second assistant you chat with in a separate window A child session the parent spawns for one task: it starts with fresh context, works autonomously, and returns a result A background daemon that watches your repository for changes A saved prompt template replayed on demand
A subagent's context window starts empty and receives only what the dispatch puts there. True False
When a subagent finishes its task, what reaches the parent? A transcript of every tool call it made A compact final report — the conclusion A full snapshot of its context window The raw contents of every file it read
Which of these are benefits of context isolation? Token economy: the child's exploration burns the child's budget, and the parent pays only for the result Attention quality: the parent's context stays dense in decisions instead of raw evidence Mistake containment: the child's dead ends never enter the parent's reasoning The child can quietly patch the parent's memory when it finds better facts
Who composes the dispatch a subagent receives? The user, talking to the subagent directly The parent, which writes the task, the context the child needs, and the constraints The subagent, by requesting a task from the tool runtime Nobody — subagents pick their own work from the repository
If the dispatch is vague, the subagent will ask the user clarifying questions before starting. True False
A subagent returns a result shaped differently from what the parent wanted. Most likely root cause? The subagent decided to ignore the instructions The dispatch never specified the output format — result expectations belong in the dispatch The subagent's context window was stale The tool runtime truncated the result
What does a well-composed dispatch carry? The task description The context the child needs: starting paths, naming conventions, what the result is for Constraints such as read-only, a time budget, or an output format A copy of the parent's full conversation history
In which dispatch mode does the subagent's result arrive as the next beat of the same conversation? Background Foreground Detached Either — the mode does not change how results are delivered
Background dispatch is how you run genuinely parallel work — several independent investigations at once. True False
Which sentence captures the foreground/background trade-off? Foreground buys parallelism at the cost of simplicity Background buys simplicity at the cost of parallelism Foreground trades parallelism for simplicity; background trades bookkeeping for parallelism Both modes block the parent equally, just with different UIs
OpenCode V2's built-in SUBAGENTS (not its primary agents) are: build and plan general and explore Explore and Plan general-purpose and code-reviewer
Which Claude Code built-in is a fast, read-only researcher whose thoroughness you can tune? general-purpose Plan Explore build
Which built-in agents are the capable multi-step workers with the normal tool set? OpenCode's general Claude Code's general-purpose OpenCode's explore Claude Code's Explore
You must write custom agent configuration before you can dispatch any subagent. True False
Which task most clearly belongs in the MAIN conversation rather than a subagent? Surveying a large codebase for every place JWTs are validated Tight, iterative back-and-forth with you on a design decision A long-running independent investigation that would otherwise block your flow A quick read-only search for where a symbol is defined
A subagent can see and mutate the parent's context whenever it needs information. True False
Why does dumping hundreds of grep results into the main conversation degrade everything that comes after? It exceeds the subagent's token budget Models attend less reliably to material buried mid-context, so every later instruction is slightly worse attended Raw search output disables file editing for the rest of the session It makes the parent's history visible to future subagents
How does the final exam differ from the chapter quizzes? It gives no per-question feedback while you answer It is one submit at the end, producing a single score and a pass/fail verdict Its pass mark is 80%, compared to 60% for chapter quizzes Answers can be revised after submitting
A chapter counts as done in your progress when... you reach the end of the lesson your chapter quiz scores 60% or higher every flashcard in the deck is marked 'Got it' you pass the final exam
Your course progress follows you when you switch to a different browser. True False
Where does the course persist your progress? In a server database tied to an account In your browser's localStorage, under the key 'subagents-course:progress:v1' In an encrypted cookie sent with every request In a file inside the course repository
Retaking the final exam replaces your previously recorded exam result. True False
Which of the 'a subagent is NOT' statements are correct? Not a second conversation partner you chat with Not shared state with the parent Not always the right tool for a job Not able to run tools without approval for every single call
A colleague asks why they should dispatch a subagent instead of just doing the search in the chat. The strongest answer? Subagents are cheaper per token than the main conversation Isolation: the child burns its own tokens on its own fresh context, and only the conclusion comes back — so the main conversation stays small, focused, and trustworthy Subagents write better-formatted code The main conversation cannot use tools at all
A CI run leaves six failing tests in three files. Inspection suggests the invoice-rounding AND token-refresh failures both appeared when a shared date utility changed. Correct handling? Dispatch three subagents — one per file — and merge their fixes Treat it as ONE problem with a shared root cause: fix the utility in the main conversation, dispatch nothing Dispatch two subagents with instructions to coordinate with each other Dispatch one subagent per failing test
Which work shapes reward dispatching subagents? Three failure domains, each with its own cause and its own fix Research questions that don't depend on each other, each ending in a summary A task whose output is thousands of lines you will scan once and never reuse A change that needs your judgment between each intermediate step
Two planned subagent fixes would both edit the same migration file. What is the correct call? Run both in the background and reconcile the file afterwards Run both in parallel — each subagent's context isolation prevents collisions Serialize the dispatches or partition the files up front Context isolation makes file edits conflict-free, so it doesn't matter
Dispatching one subagent per failing FILE is the correct way to parallelize a broken test suite. True False
Which OpenCode built-in has broad tool access for research and multi-step work, but cannot launch more subagents? build general explore plan
Which statements about custom OpenCode agent files are true? Project agents live in .opencode/agents/, global ones in ~/.config/opencode/agents/ A nested path becomes part of the agent ID — team/reviewer.md registers as team/reviewer A new custom agent with no mode field defaults to subagent The Markdown body becomes the agent's system prompt
An OpenCode agent has a permissions list with several rules that could match the same tool call. Which rule decides the effect? The first matching rule The last matching rule The most restrictive matching rule Undefined — rules are unordered, so any match may apply
An orchestrator agent should be allowed to launch ONLY the reviewer subagent. Which permission list does that? allow subagent reviewer first, then deny subagent * deny subagent * first, then allow subagent reviewer allow subagent reviewer only — one rule is enough deny subagent reviewer, then allow subagent *
Which Claude Code subagent location has the HIGHEST priority when definitions share a name? The --agents CLI flag .claude/agents/ in the current project Managed settings deployed by the organization An installed plugin's agents/ directory
Your agent file sets model: haiku, CLAUDE_CODE_SUBAGENT_MODEL is set, and Claude passes a model parameter on this invocation. Which model runs? haiku — frontmatter always beats the environment variable The per-invocation model parameter — first in the resolution order The CLAUDE_CODE_SUBAGENT_MODEL value The main conversation's model
A custom Claude Code subagent starts with the user, project, and local CLAUDE.md files in its context — unless its definition sets omitClaudeMd. True False
Which statements about Claude Code delegation and descriptions are true? Claude uses each subagent's description to decide when to delegate Combined custom descriptions over 15,000 tokens trigger a startup warning Detail belongs in the system prompt, which loads only when that subagent runs Longer descriptions always produce better routing, so write them exhaustively
Which list names all four parts of a well-formed dispatch? Prompt, model, temperature, max output tokens Scope, context, constraints, output contract Goal, deadline, budget, escalation path Task, tools, permissions, memory
You watched the failing tests scroll past in your terminal, so the subagent starts with that knowledge too — you only need to name the overall task. True False
A dispatch said 'make the failing integration tests pass.' The subagent returned quickly — it had tripled every timeout in the suite. Which dispatch part was missing? Scope — the domain was too large Context — the failure messages were not pasted Constraints — nothing prohibited the cheap path to green Output contract — the report format was unspecified
You want three independent investigations running concurrently. Which parent behavior achieves that? Dispatch all three in the same turn Dispatch one, read its result, dispatch the next Dispatch them one at a time, each in background mode Have the first agent dispatch the other two when it finishes
Which steps belong to the return-side discipline after a fan-out? Read every worker's summary before acting Check whether two workers edited the same files Run the full test suite on the combined result Treat per-worker green checks as proof the combination works
Two fan-out workers may safely edit the same file if both dispatches tell the worker to be careful with it. True False
In the SDD fix loop, which operator policy is correct? Resume the implementer for every round — its context is always an asset A fresh implementer for every round — context is always a liability Resume the implementer on rounds 1-3; go fresh on rounds 4-5 The reviewer applies the fixes itself between rounds
A task has failed five fix rounds. What does the breaker do? Adjudicates: park the task with a ledger ruling, or rule on whether the requirement is load-bearing Runs round 6 with a higher effort setting Marks the task done with whatever state it reached Rolls back the entire branch
The SDD ledger matters because it survives context compaction — the conversation's memory of decisions does not. True False
Three subsystems need surveying — auth, billing, and the CLI — before you can plan a migration. Which recipe, and how run? One fix-failing-tests dispatch covering all three The codebase-research recipe, fanned out as three parallel dispatches — one subsystem each The refactoring recipe, applied to each subsystem in turn The code-review recipe, pointed at the whole repository
Which actions are OUT of contract for the code-review recipe? Applying the Low-severity nits while reviewing Editing a file to confirm a suspected bug Running state-changing commands Reporting findings with file:LINE locations
The refactoring recipe freezes behavior and forbids public-export changes — yet its return contract requires reporting interface changes. Why? It does not — an unchanged interface means nothing to report Internal interface changes (like a new helper's shape) can still matter to other code and later dispatches, so they must be stated, not discovered Because interface changes are how the worker proves it refactored Only so the diff looks larger
The fix-failing-tests recipe's root-cause mandate — 'do not just increase timeouts' — exists because the cheapest path to a green suite often masks the symptom instead of fixing the cause. True False
Submit exam