GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||
GeezerVison is showing docs.braintrust.dev — Google Antigravity - Braintrust Google Antigravity is Google’s coding agent. You can connect it to Braintrust in two ways:
Braintrust tracing for the Antigravity CLI ( agy) is supported for macOS, Linux, and Windows. To trace agents that you build with the Antigravity Python SDK, see Google Antigravity SDK.Trace Antigravity sessionsThebraintrust-antigravity-tracing plugin uses bt to trace your Antigravity sessions to Braintrust.
Set up tracingIf braintrust-antigravity-tracing is already installed, follow Update the tracing plugin.1 Install Antigravity If you haven’t already, install the Antigravity CLI. Make sure its agy command is available in your terminal.2 Install and authenticate bt Follow the bt CLI quickstart to install bt, authenticate, and set your active context.3 Enable tracing Before starting Antigravity, run this command in a terminal:
bt trace enable.4 Restart Antigravity Restart Antigravity so it loads the plugin and tracing settings. 5 Log a test trace Ask Antigravity to do something simple in an agy session. When the session finishes, open your Braintrust project and confirm that the trace appears on the Logs page.What Braintrust tracesAntigravity traces in Braintrust include:
bt v0.19.3 or later, session spans also include the local username when available.
Every span records its origin as braintrust.plugin.antigravity, along with versions in context.span_origin: the plugin version in version, the bt version in bt.version, and the Antigravity version in antigravity.version. These versions are captured when each span is created, and unknown versions are null. Each turn span and every span under it records the turn’s span ID in metadata.turn_span_id. Model inputs are reconstructed from transcripts rather than captured as raw provider requests. Imported sessions do not establish exact historical model-call latency.
Common workflows
Change saved tracing settings To change the saved destination, profile, or organization, rerun bt trace enable antigravity with the corresponding options. Running bt switch does not change the saved tracing configuration.To add root-span metadata, pass --additional-metadata '<JSON>' to bt trace enable for future sessions. Standard session metadata takes precedence when keys conflict.With bt v0.19.3 or later, pass --tag ci --tag release-validation to bt trace enable to tag session spans.
Trace a saved Antigravity session Antigravity stores session transcripts locally. Use bt trace import with antigravity and the conversation ID to import a past session, even if tracing was not enabled when it ran.You can also attach an imported session to an existing span or experiment.
Resume an Antigravity session When you resume an Antigravity session, new turns are added to its existing Braintrust trace.
Stop tracing Antigravity sessions With bt v0.33.0 or later, bt trace disable antigravity pauses tracing and keeps the plugin and its tracing configuration. Run bt trace enable antigravity to resume.To uninstall the tracing plugin and remove its tracing configuration, use bt trace uninstall antigravity. In earlier versions of bt, bt trace disable antigravity uninstalls them instead. Saved bt profiles and credentials are preserved. Restart Antigravity after uninstalling.Update the tracing pluginIf ~/.gemini/config/hooks.json contains a braintrust-antigravity-tracing entry, use “Migrate from a manual hook registration” below instead of the routine update steps.
Migrate from a manual hook registration Record the profile, organization, project, metadata, tags, and custom settings you want to preserve from ~/.gemini/config/braintrust.json (or the file your BRAINTRUST_DAEMON_CONFIG or BT_DAEMON_CONFIG override points to). Then follow the CLI migration guide to update bt and complete the applicable migrations.Run this command with the profile, organization, and project you recorded:bt trace update, it rewrites your tracing settings.Compare the tracing file with the settings you recorded and restore any custom values. route.flush_mode resets to fire_and_forget, so restore its previous value if you customized it.Restart Antigravity, run a short agy session, and confirm that its trace appears on the Logs page in the intended Braintrust project.1 Update bt Follow the CLI migration guide to update bt to the latest version and complete the applicable migrations.2 Update the tracing plugin bt trace update updates the installed plugin without changing your saved tracing configuration.3 Restart and verify Antigravity Restart Antigravity, run a short agy session, and confirm that its trace appears on the Logs page in the intended Braintrust project.Troubleshooting tracingFirst, runbt trace doctor antigravity. Then, review the following:
The tracing plugin is missing or disabled Run bt trace enable antigravity --project <your-project> to install and enable the plugin. Restart Antigravity afterward.The doctor report checks tracing settings and authentication, not whether Antigravity loaded the plugin’s hooks.
Traces do not appear after setup If Antigravity was running when its plugin or configuration changed, restart it. Confirm that bt is on the PATH of the environment that launches agy.Run bt trace doctor antigravity and confirm that tracing is enabled and routed to the intended project.If authentication succeeds but traces do not appear, confirm that your account has permission to write logs to the selected project.For authentication, tracing destination, or endpoint problems, see bt trace troubleshooting and the CLI migration troubleshooting guide.Tracing failures do not interrupt the Antigravity session.
Antigravity uses an unexpected configuration directory Tracing settings are saved in ~/.gemini/config/braintrust.json. To use a different file, set BRAINTRUST_DAEMON_CONFIG (BT_DAEMON_CONFIG in bt v0.25.0 and earlier) to its path before both running bt trace enable antigravity and launching Antigravity.
Traces use unexpected settings For normal sessions, the integration does not use TRACE_TO_BRAINTRUST, BRAINTRUST_PROJECT, or BRAINTRUST_ADDITIONAL_METADATA from the agent’s environment to override the saved tracing settings.For environment variables accepted by the bt commands themselves, see bt trace.Connect to Braintrust MCPThe Braintrust MCP server lets Antigravity query and update Braintrust data. You can install the Braintrust plugin, which configures the server for you, or add the server yourself. Either way, MCP is configured independently from the tracing plugin.Install the Braintrust pluginThebraintrust plugin connects Antigravity to the Braintrust MCP server on the US data plane. It signs in with OAuth, so it doesn’t need an API key or bt.
1 Install the plugin 2 Sign in In the Antigravity CLI, open /plugin, expand braintrust under Installed, and choose Sign in. In the Antigravity app, open Customizations > Installed > MCP Servers and authenticate the braintrust_braintrust server. Complete the Braintrust sign-in in your browser.3 Verify the connection To verify the connection, ask Antigravity to list your recent Braintrust projects. If it can’t connect, see Braintrust MCP troubleshooting. 4 Start using Braintrust tools Antigravity can query logs, compare experiments, work with datasets, and use other Braintrust tools. For example:
Use the plugin with another data plane The published plugin connects to https://api.braintrust.dev/mcp. To connect to another data plane, install a local copy with a different MCP URL:
Manage the plugin bt trace update antigravity updates only the tracing plugin.If Braintrust tools are missing, confirm that the plugin is enabled and signed in. Don’t also add the Braintrust MCP server manually, because Antigravity would connect to the same server twice.Add the server manuallyAdding the server manually lets you use an API key or manage the connection outside a plugin.1 Choose authentication
Use OAuth when your client supports it. Your client opens a Braintrust authorization page where you sign in and approve access. The server acts with the permissions of the account you sign in with.
/.well-known/oauth-authorization-server on the same host as your MCP endpoint (see next step), so a client can register itself.Use an API key for clients without OAuth support or for programmatic connections. The server acts with the permissions of the account the key belongs to.
Your bt login doesn’t authenticate the MCP server.2 Choose your endpoint Use the endpoint for your organization’s data plane region:
3 Add the server to Antigravity Follow the Antigravity guide to add the remote server. 4 Verify the connection To verify the connection, ask Antigravity to list your recent Braintrust projects. If it can’t connect, see Braintrust MCP troubleshooting. 5 Start using Braintrust tools Antigravity can query logs, compare experiments, work with datasets, and use other Braintrust tools. For example:
Next steps
Was this page helpful? | ||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |