Repository navigation
Conversation
Add a Google Antigravity target. Antigravity reads project
.agents/skills natively; global skills are linked from
~/.gemini/config/skills. MCP servers are written to
.agents/mcp_config.json and ~/.gemini/config/mcp_config.json.
Antigravity does not expand ${VAR}, so URLs and headers must be
literal and stdio env names are omitted (servers inherit the
environment). The file is parsed as JSONC, and per-server settings
Antigravity manages (disabled, oauth, tool filters, timeouts) survive
sync while the endpoint is unchanged.
The target is opt-in for fresh global setups so users who never
choose Antigravity keep ${VAR} headers working. Hooks, subagents, and
plugins are not generated for Antigravity yet.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Someone is attempting to deploy a commit to the Sentry Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
|
Thanks @TheBous! #221 merged a trimmed version of this, and its description credits you. It keeps your target definition, paths, |
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.
Adds a
antigravityagent target for Google Antigravity, covering skills and MCP. Hooks, subagents, and plugins are left for later.What it does
.agents/skills/~/.gemini/config/skills→~/.agents/skillssymlink.agents/mcp_config.json~/.gemini/config/mcp_config.jsonUnsupportedFeatureSources: Skills, MCP.
Design choices
${VAR}expansion. Antigravity passes${VAR}to the server literally (confirmed by a probe, see below). The serializer rejects${in URLs and headers with a clear error, the way Pi rejects it in URLs.mcp addfails beforeagents.tomlchanges. Stdioenvnames are not written because the server inherits Antigravity's environment.url. The docs bundled with Antigravity callurlcanonical andserverUrla legacy alias.AgentDefinition.optInflag keepsantigravityout of the auto-bootstrapped~/.agents/agents.toml. Otherwise users who never chose Antigravity would have${TOKEN}headers rejected and would get a~/.gemini/config/they don't need.disabled, tool filters, timeouts, and OAuth on server entries. A newMcpConfigSpec.clientFieldslist keeps those fields from the existing entry during drift comparison and writes, but only while the command or URL is unchanged. A changed endpoint drops them so credentials don't follow a server to a new URL. Targets withoutclientFieldsbehave exactly as before._, and-, like Pi.Verification
pnpm checkpasses (lint, typecheck, 868 + 329 tests). The new tests cover project and global output, sync repair,clientFieldspreservation including the endpoint-change case, commented files, the${VAR}rejections, and the opt-in bootstrap. Each new behavior test was checked to fail with its fix reverted.skills/dotagents-qa, non-root, isolated homes):pnpm qa:examplepasses.init,add,mcp add,install,list --json,doctor, sync after deletingmcp_config.json,disabledand comments kept,mcp remove,remove.--user syncrepair,--global mcp remove.antigravityout, and${VAR}headers still work there.pnpm qa:pluginsfails the same way onmain(spawnSync claude ENOBUFS: current Claude Code prints the whole plugin directory). This failure predates this change.agentapibinary):mcp_config.jsonwas loaded.${HOME}inargsandenvreached the server unexpanded.Known limitations
.agents/mcp_config.json. Google documents that path for the CLI, IDE, and SDK, so this PR follows the docs. I could not check a non-ACP client.mcp removeleaves the generated entry in client files. All targets already behave this way; this PR doesn't change it.env/cwdon a same-name entry are replaced by the declaration, the same as for other targets. Comments inside a managed server entry are lost when dotagents repairs that entry; the JSONC writer already behaves this way for OpenCode..agents/agents/and.agents/plugins/. Canonical dotagents content there may be visible to Antigravity even when it isn't a selected target. That was already true before this change.Council review
Rounds: 2
Round 2 findings were addressed: the endpoint-scoped
clientFieldsand the docs nit. The two remaining items are the inherited behaviors listed under known limitations.🤖 Generated with Claude Code