Add Google Antigravity tracing integration - #18
Open
Stephen Belanger (Qard) wants to merge 2 commits into
Open
Conversation
Abhijeet Prasad (AbhiPrasad)
approved these changes
Aug 14, 2026
Stephen Belanger (Qard)
force-pushed
the
t3code/assess-antigravity-integration
branch
2 times, most recently
from
August 18, 2026 13:27
65e90ae to
cf174ab
Compare
Stephen Belanger (Qard)
force-pushed
the
t3code/assess-antigravity-integration
branch
from
August 18, 2026 13:36
cf174ab to
e6d2c36
Compare
Abhijeet Prasad (AbhiPrasad)
approved these changes
Aug 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PreInvocation,PostInvocation,PostToolUse, andStoptranscript_full.jsonlrecords to produce session, turn, LLM, and tool spansbt trace setup antigravityandbt trace setup antigravity --disableWhy
Antigravity's hook payloads provide model/tool lifecycle boundaries, while its full transcript contains the message and tool content needed for useful traces. Combining both sources makes the core integration feasible without changing Antigravity's permission behavior.
PreToolUseis intentionally omitted because its response participates in authorization. The adapter remains credential-free and fails open; authentication and destination routing stay in thebthost.Setup behavior
bt trace setup antigravitystages the bundled adapter, installs it through Antigravity'sagy plugin install, registers the direct global hooks needed by the current Antigravity runtime, and persists the selected non-secret Braintrust route. Repeated setup replaces only the managed entry and preserves unrelated hooks.bt trace setup antigravity --disabledoes not require Braintrust auth or destination selection. It uninstalls the managed plugin, removes only the Braintrust hook entry, and marks persistent tracing disabled while preserving the saved route and unrelated settings.Live validation
A real Antigravity 1.1.12 session was delivered automatically through the daemon to the existing
coding-agentsproject:https://www.braintrust.dev/app/Braintrust%20SDKs/p/c77f5203-f2ef-4ed6-8f45-049d082bc5f0/logs?r=47982939-b057-5e9d-a4c1-b5a60425f0c3&s=47982939-b057-5e9d-a4c1-b5a60425f0c3
The resulting trace contains:
list_dirspan, and final LLM responseThe setup command was also exercised through a locally built real
bthost and the installedagy1.1.12 CLI in an isolated Antigravity home. Initial setup, repeated setup, JSON output, route persistence, plugin discovery, and disable all passed without touching the user's active Antigravity configuration.Validation
make validate-antigravitycargo test --manifest-path bt-daemon/Cargo.toml --all-featurescargo clippy --manifest-path bt-daemon/Cargo.toml --all-targets --all-features -- -D warningscargo fmt --manifest-path bt-daemon/Cargo.toml -- --checkbt trace setup antigravity/ repeat /--disablelifecycle againstagy1.1.12 in an isolated homegit diff --checkThe all-feature test run passed; four unrelated real-agent tests remained intentionally ignored because they require their respective installed CLIs or built extensions.
Current scope
This establishes the core hooks, translator, and persistent setup flow. Managed-run injection, historical import/attach, Windows support, and production distribution remain follow-up work. After this repository change merges, the released
btCLI still needs itsbt-daemonrevision bumped to expose the new setup subcommand.