Add Google Antigravity tracing integration - #18
Open
Stephen Belanger (Qard) wants to merge 4 commits into
Open
Conversation
Abhijeet Prasad (AbhiPrasad)
approved these changes
Aug 14, 2026
Stephen Belanger (Qard)
force-pushed
the
t3code/assess-antigravity-integration
branch
3 times, most recently
from
August 18, 2026 13:36
cf174ab to
e6d2c36
Compare
Abhijeet Prasad (AbhiPrasad)
approved these changes
Aug 18, 2026
Stephen Belanger (Qard)
force-pushed
the
t3code/assess-antigravity-integration
branch
from
August 21, 2026 16:09
e6d2c36 to
a2ef920
Compare
Stephen Belanger (Qard)
changed the base branch from
main
to
t3code/add-trace-enable-disable
August 21, 2026 16:09
Andrew Kent (realark)
approved these changes
Aug 21, 2026
Stephen Belanger (Qard)
force-pushed
the
t3code/assess-antigravity-integration
branch
from
August 24, 2026 11:51
a2ef920 to
e89bfee
Compare
Stephen Belanger (Qard)
requested review from
Abhijeet Prasad (AbhiPrasad) and
Andrew Kent (realark)
August 24, 2026 13:42
Abhijeet Prasad (AbhiPrasad)
approved these changes
Aug 26, 2026
Abhijeet Prasad (AbhiPrasad)
left a comment
Member
There was a problem hiding this comment.
are we going to make a repo for this?
Stephen Belanger (Qard)
force-pushed
the
t3code/assess-antigravity-integration
branch
from
August 27, 2026 18:10
e89bfee to
c2083f8
Compare
Abhijeet Prasad (AbhiPrasad)
approved these changes
Aug 27, 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 enableandbt trace disablecommands introduced by SDK-237 Add tracing enable and disable commands #29agy plugin installWhy
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 enable antigravityinstalls or refreshes the published plugin frombraintrustdata/braintrust-antigravity-pluginthrough Antigravity's nativeagy plugin installflow and persists the selected non-secret Braintrust route. Antigravity loads the plugin's ownhooks.json; setup removes the legacy manually registered root hook entry to prevent duplicate delivery.bt trace setup antigravityremains available through #29's compatibility alias.bt trace disable antigravitydoes not require Braintrust auth or destination selection. It uninstalls the managed plugin, removes any legacy Braintrust root hook entry, and removes the Braintrust-owned route file through #29's shared disable path.Distribution
src/plugins/antigravity/contentis the source of truth for the generatedbraintrustdata/braintrust-antigravity-pluginrepository. The Antigravity manifest has no version field, so releases are versioned with monorepo and distribution-repository tags. The shared production and test release workflows now support Antigravity, and the post-deploy smoke workflow installs the GitHub repository using the latestagy, validates the installed plugin and hooks, and uninstalls it cleanly.The live distribution repository is not created or published by this PR; it must exist before the first production release.
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 lifecycle was exercised through a locally built real
bthost and installedagyCLI in an isolated Antigravity home. Initial enable, repeated enable, JSON output, route persistence, plugin discovery, and shared disable all passed without touching the user's active Antigravity configuration.The published artifact shape was also installed directly from this PR's GitHub tree with
agy1.1.17, validated as a native hook plugin, listed, and uninstalled successfully.Validation
make testcargo test --manifest-path bt-daemon/Cargo.toml --all-features --lockedcargo clippy --manifest-path bt-daemon/Cargo.toml --all-targets --all-features --locked -- -D warningscargo fmt --manifest-path bt-daemon/Cargo.toml -- --checkactionlinton the release and Antigravity smoke workflowsDRY_RUN=1 DIST_REPO=braintrustdata/test-coding-agent-dist src/plugins/antigravity/publish.shagy plugin install, validate, list, and uninstall lifecycle withagy1.1.17git 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, persistent setup, and production distribution path. Managed-run injection, historical import/attach, and Windows support remain follow-up work. After this repository change merges, the released
btCLI still needs itsbt-daemonrevision bumped to expose Antigravity in the shared commands.