Prerequisites
Before you install the plugin, you need the following:- Antigravity CLI (
agy)1.1.10or later - uv, whose
uvxcommand runs the hook - Python 3.10 or later
- A CoreWeave Forge account and API key
- An Agent Lens project (
[YOUR-TEAM]/[YOUR-PROJECT]) to receive traces
Install the plugin
Complete the following steps to install the plugin and send your first trace to Agent Lens.1
Set your project and API key
Replace The hook runs with the environment that
[YOUR-TEAM]/[YOUR-PROJECT] with your Agent Lens project and [YOUR-API-KEY] with your API key, and then export them:agy was started in. Set FORGE_TRACE_PROJECT and the API key in your shell profile, or wherever you start agy, and make sure uvx is on that PATH. Instead of WANDB_API_KEY, the hook can read the key from the Weights & Biases host’s entry in ~/.netrc.2
Run the installer
agy plugin install, checks the settings the hook needs, and prints where traces will appear:✗ Hook command, see Troubleshooting.3
Start a new session
Start a new
agy session. Each finished turn appears in Agent Lens.View Antigravity traces in Agent Lens
The installer prints a link to your project’s traces. You can also open your project in the Agent Lens UI:- Navigate to CoreWeave Forge, select Agent Lens from the product menu, and then select your project in the project selector at the top of the side menu.
- In the side menu, select Conversations.
- Select the Conversations tab to view all agent conversations saved for your project.
- Select a conversation to inspect the full conversation tree.
Antigravity.
What gets traced
Each turn becomes one trace:gen_ai.* attributes), and are timed from the step timestamps in the Antigravity transcript.
Limitations
The plugin has the following limitations:- Antigravity’s transcript doesn’t record token usage, model request settings, or response IDs, so traces have no token counts or costs.
- A subagent’s
invoke_agentspan has its prompt and result but no child spans, because the transcript doesn’t record the subagent’s own model and tool calls.
Configuration reference
Configure the plugin with environment variables that you set in the environment where you startagy.
Content capture
WithFORGE_ANTIGRAVITY_INCLUDE_CONTENT=false, spans still include the following:
- Model, tool, and subagent names, and subagent roles
- Timing
- Workspace paths
- The Stop hook’s execution number and termination reason
Troubleshooting
If traces aren’t reaching Agent Lens, first find the plugin’s messages with thegrep command. Antigravity doesn’t show hook output in its terminal UI or in agy -p output. It writes the hook’s messages, including links to where to view traces and any export errors, to its CLI logs:
Manage the plugin
To upgrade, rerun the install command. It replaces the installed plugin. To pin a version, or switch to one, install from that version:agy plugin:
0.1.0 or 0.1.1 with uv tool install, upgrading leaves that executable unused. Remove it with: