For Antigravity Desktop 2.25.0, is there a supported API or event contract that binds a caller’s subagent attempt to separate, host owned accepted and consumed receipts? If so, where are the documented IDs, retrieval, retention, ordering, integrity, and failure semantics?
Hi @Bruce_Onder,
In Antigravity Desktop 2.25.0, there isn’t a two-phase receipt contract that issues separate host-owned “accepted” and “consumed” receipts for a subagent call. invoke_subagent spawns the subagent and starts its background run in a single step—returning conversation_id, log_uri, and workspace_uris—while send_message queues follow-up messages to that conversationId and wakes the subagent on its next turn without returning a separate receipt token.
If you need to track dispatch vs. execution yourself, the closest way today is combining lifecycle hooks (PreToolUse/PostToolUse on invoke_subagent and send_message in the parent, paired with SessionStart, PreInvocation, PostInvocation, and Stop in the subagent) with the local JSONL logs or CLI stream-json output.
For the specifics you asked about:
- Ordering & Retention: Steps in
~/.gemini/antigravity/brain/<conversation-id>/.system_generated/logs/transcript.jsonlare ordered by 0-basedstep_index, and transcripts stay on local disk until you delete them (no automatic TTL eviction, even if a subagent is killed). - Integrity: Logs and hook payloads are plain-text JSON/JSONL under your local OS user account meant for debugging, so they aren’t cryptographically signed or tamper-evident.
- Failures: Launch errors (like bad arguments or hitting the 10-level nesting limit) fail synchronously on the tool call and populate
PostToolUse.error, while runtime failures after launch are recorded in the subagent’s own transcript andStophook (terminationReason/error).
You can check the full schemas in the Subagents docs and Hooks docs.