A coding task needs a broad codebase investigation that would flood the main conversation with file contents. What helps most?
- Exam domain
- Using coding agents for application development~17% of the exam
- Difficulty
- Medium
- In this mock
- 10 questions on this domainPractise this domain
Why the exam asks this
Customizing coding agents for enterprise workflows.
Objective in the exam guide: Creating skills, plugins, extensions hooks, rules, and subagents using Antigravity.
Subagents keep the main context focused on long tasks.
Why C is the answer
Delegate the investigation to a subagent with a clean context
A subagent starts with a clean context and runs in its own conversation, in parallel. It returns a short result, so the main context stays focused.
Remember: Isolate broad searches in subagents.
How it works
A subagent starts with a clean context, does a focused job and returns a summary.
The main conversation keeps the result without the noise.
Clues in the question
The words that point to the answer, and what each one tells you.
- flood the main conversation
- Isolate the work.
In detail
- Subagents isolate noisy work from the main thread.
- Several can run in parallel on independent questions.
- Ask subagents for summaries, not raw output.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Increase the model's output token limitWrong
Output limits do not reduce what fills the context.
B. Paste the whole repository into the first promptWrongMost tempting
Pasting the repository makes the problem worse.
Why it tempts: That fills the context faster, which is the problem.
C. Delegate the investigation to a subagent with a clean contextRight
Isolate broad searches in subagents.
D. Turn off the terminal sandbox to speed up file readsWrong
The sandbox has no effect on context size, and turning it off lowers safety.
Use case
An illustrative scenario, not a real incident.
Illustrative: the main agent asks a subagent to find every caller of a deprecated API. It gets back a list of twelve files, not thousands of lines.
See it in different ways
mindmap
root(("Antigravity"))
n1["Rules"]
n2["Always on"]
n3["AGENTS.md or GEMINI.md"]
n4["Skills"]
n5["Loaded for a task"]
n6["Folder with SKILL.md"]
n7["Hooks"]
n8["Scripts at loop events"]
n9["Can block a tool call"]
n10["Plugins"]
n11["Bundle skills, rules, MCP, hooks"]
n12["Subagents"]
n13["Clean context"]
n14["Run in parallel"]How to read this chart
- The centre is "Antigravity".
- "Rules" covers "Always on", "AGENTS.md or GEMINI.md".
- "Skills" covers "Loaded for a task", "Folder with SKILL.md".
- "Hooks" covers "Scripts at loop events", "Can block a tool call".
- "Plugins" covers "Bundle skills, rules, MCP, hooks".
- "Subagents" covers "Clean context", "Run in parallel".
sequenceDiagram participant P0 as Main agent participant P1 as Subagent participant P2 as Codebase P0->>P1: find callers of old API P1->>P2: search files P2-->>P1: many matches P1-->>P0: list of 12 files
How to read this chart
- 1. Main agent sends "find callers of old API" to Subagent.
- 2. Subagent sends "search files" to Codebase.
- 3. Subagent gets a reply from Codebase: "many matches".
- 4. Main agent gets a reply from Subagent: "list of 12 files".