fix(cli): wire --antigravity and remove broken --universal in setup#2700
Open
fahreddinozcan wants to merge 2 commits into
Open
fix(cli): wire --antigravity and remove broken --universal in setup#2700fahreddinozcan wants to merge 2 commits into
fahreddinozcan wants to merge 2 commits into
Conversation
The setup command advertised --universal and --antigravity flags but neither was wired through getSelectedAgents, so passing them silently fell back to auto-detection and wrote to the wrong directory (see #2695). Remove --universal from setup entirely, and add a full Antigravity SetupAgent config: skills under .agent/skills, MCP config at ~/.gemini/antigravity/mcp_config.json with serverUrl for HTTP, and detection of .agent or ~/.gemini/antigravity.
After verifying against Google Codelabs / Google Cloud Community docs, correct the Antigravity config: - MCP global path: ~/.gemini/config/mcp_config.json (Antigravity 2.0 shared config, replacing the older ~/.gemini/antigravity/ path which an outdated github/github-mcp-server install guide cited). - HTTP key: httpUrl (Gemini convention; antigravity is Gemini-based). The previous serverUrl was sourced from the same outdated guide. - Rule: append to GEMINI.md / ~/.gemini/GEMINI.md (Antigravity reads Gemini-family rules, not a vendor-specific file). - Project MCP: none documented; projectPaths is empty and setupAgent / remove falls back to globalPaths so --project --mcp still writes to the correct location. Skills stay at .agent/skills to keep the in-repo IDE_PATHS convention consistent across setup, skill, and generate commands.
enesgules
approved these changes
Jun 1, 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
ctx7 setupadvertised--universaland--antigravitybut neither was wired throughgetSelectedAgents. Passing them silently fell back to auto-detection and wrote to the wrong directory (#2695).--universalfromsetupentirely.--antigravitythrough and adds an AntigravitySetupAgentconfig, with paths verified against Google's Codelabs and Google Cloud Community:~/.gemini/config/mcp_config.json(the Antigravity 2.0 shared location). No documented project-level MCP —setupAgent/uninstallMcpfall back to globalPaths whenprojectPathsis empty, so--project --mcp --antigravitystill writes to the right place.httpUrl(Gemini-family convention).GEMINI.md/~/.gemini/GEMINI.md, since Antigravity is Gemini-based..agent/skills, matching the in-repoIDE_PATHSconvention used byctx7 skill/ctx7 generate.Fixes #2695.
Test plan
npx tsc --noEmitcleannpx vitest run— 207/207 pass (incl. updatedALL_AGENT_NAMESorder,httpUrlfor antigravity, andremovetests covering the empty-projectPathsfallback)npx eslintclean on changed filesctx7 setup --cli --antigravity --projectwrites to./.agent/skills/find-docs/ctx7 setup --mcp --antigravitywrites to~/.gemini/config/mcp_config.jsonwithhttpUrlctx7 setup --universal …is now rejected as unknown option