How each harness starts and configures subagents, what they can see and change, which lifecycle hooks run, and how their transcripts are saved and read.
Worktrees: creation, setup, integration and cleanup
Starting one
| Question | Antigravity CLIchecked at 1.5.14 |
|---|---|
| Is there one, and how does it start | The parent can call invoke_subagent for a custom agent marked subagent: true. Choose a primary agent using /agents or --agent. |
| Built-in subagents | Partly Google documents built-in research, browser and self agents. Its browser notes describe a separate CLI /browser path. The full CLI-specific built-in inventory remains unverified. |
| Define your own | Place a Markdown definition in the workspace .agents/agents directory or in ~/.gemini/config/agents/. |
| What a definition can set | Definitions use YAML metadata and a Markdown system prompt. A description guides selection and subagent: true enables invocation by the parent. |
While it runs
| Question | Antigravity CLIchecked at 1.5.14 |
|---|---|
| What it sees, and what comes back | Partly Google documents retaining a subagent’s own context when it wakes. The initial CLI parent-context payload remains unverified. |
| Several at once | The CLI guide describes multiple subagents running concurrently while the terminal remains interactive. |
| Keep working while it runs | Subagents run in the background and are visible in the interactive Agent Manager. |
| Your checkout or its own copy | Google’s CLI 1.5.5 notes document Git worktrees for isolated subagents and swarm workers, including staged, unstaged and untracked changes. The default and merge behavior remain unverified. |
| Its permissions | Google says the parent chooses subagent tool and permission access, including MCP and write access. Enforcement was not probed. |
| Subagents of subagents |
Watching and handing off
| Question | Antigravity CLIchecked at 1.5.14 |
|---|---|
| Watch, steer or stop one | Use /agents to inspect status and select a subagent for details. |
| Hand work to a cloud agent |
Notes and sources
Antigravity CLI, 3 sources
- Publisher documentation and installed help. No subagent was launched.
Is there one, and how does it start, 2
- Antigravity CLI 1.5.14 management command help
Built-in subagents, 1
Define your own, 1
What a definition can set, 1
What it sees, and what comes back, 1
Several at once, 1
Keep working while it runs, 1
Your checkout or its own copy, 1
Its permissions, 1
Subagents of subagents, 1
Watch, steer or stop one, 1
Hand work to a cloud agent, 1
Subagent lifecycle hooks
Recorded start and stop events, with their control semantics and availability caveats. A dash means no event is recorded here. General session or tool events do not establish a dedicated subagent hook.
Which moments a hook can attach to, and what it can do there. Event names link to each harness’s documentation. “Block”, “deny” and “modify” change what the agent does; “observe only” can watch but not intervene. Where hook files live is on the Locations page.
| Moment | Antigravity CLI |
|---|---|
| Hook types |
|
Notes and sources
Antigravity CLI
- The 1.5.14 plugin validator recognized a group containing the six documented events. Hook dispatch and effects were not runtime-tested.
- Google Antigravity lifecycle hooks, Documentation, checked 2026-11-22
- Antigravity CLI 1.5.14 hook validation fixture, live observation, checked 2026-11-22
- Antigravity plugin packaging, Documentation, checked 2026-11-22
- Antigravity customization discovery, Documentation, checked 2026-11-22
Subagent transcripts
Child storage and parent links are described separately from the harness’s general session format. Internal and source-observed formats can change between versions; these records do not promise a stable external schema.
| Question | Antigravity CLIlive-observed |
|---|---|
| Child transcripts and parent links | Not documented Separate transcript paths and parent-child linking for subagents remain unverified. |
| Session file format | Partly Two synthetic text-only runs wrote JSONL. The sampled records were USER_INPUT and PLANNER_RESPONSE. Other record types and cross-version stability remain unverified. |
| What is recorded | Partly Google documents older messages remaining in saved history after compaction. The exact JSONL representation, including tool calls and attachments, remains unverified. |
| Read transcripts from code | Partly Status-line JSON exposes transcript_path. A stable public record schema or read API for the log remains unverified. |
| Session record structure | Antigravity CLI |
|---|---|
| Envelope fields | step_index, source, type, status, created_at |
| Record discriminator | type |
| Identifiers and lineage | conversationId identifies the conversation directory; record-level IDs remain unverified. |
| Ordering | Ascending step_index in the two-row sample. |
Notes and sources
Antigravity CLI, 3 sources
- Two synthetic print runs verified the transcript log path. The publisher identifies the saved-conversation directory in 1.5.15. The relationship between each saved conversation and its log artifacts remains unverified.