Repository navigation
feat(clients): register Antigravity CLI during setup - #3249
IvenKooLab wants to merge 3 commits into
Conversation
The Antigravity CLI reads the same global ~/.gemini/config/mcp_config.json registration file as the IDE but discovers global skills in its own ~/.gemini/antigravity-cli/skills root, so CLI users got REA's MCP server without the workflow skill. Register antigravity_cli with the shared configuration file, its own marker directory and skill destination, and cover the shared-registration uninstall path (the second surface skips the already-absent entry).
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
The CLI shared the IDE's configuration file as detection evidence, so an IDE-only home reported an Antigravity CLI installation and all-detected setup installed a CLI skill copy without the CLI. Pin the CLI's evidence to its own marker through an evidencePath override honored by doctor and setup detection.
|
Addressed in f879216. The definition now pins the CLI's installation evidence to its own marker through an Validation: |
|
CI-fix track: both failures, |
baron
left a comment
There was a problem hiding this comment.
HOLD — verification incomplete at 1677c06be455507b2cd50efc3ffecb2f226dfd45; no additional confirmed source defect.
Source review covered the definition owner, both clientEvidencePaths consumers (setup detection and doctor), the configuration transaction/backup boundary, skill destinations, shared-file uninstall ownership, and the new tests. The current evidence override addresses the prior IDE-only detection comment without duplicating that finding. Existing approval-before-write, additive/idempotent transaction, backup, and owned-removal paths remain in use; this change does not introduce a new analysis provider or target-execution authority.
The documented shared MCP file and separate CLI skill root agree with Google's MCP guide and skills guide. This is documentation corroboration, not an installed Antigravity client run.
Light validation: evaluated the exact definition/evidence-path source with pinned Node and built-in assertions. IDE-only presence selected only the IDE, CLI-only presence selected only the CLI, and the skill roots were distinct. PR-diff git diff --check passed. No filesystem-boundary, public setup/doctor/uninstall, or real-client behavior is claimed by that probe.
Fresh pre-post snapshot (2026-10-15T06:59:01.094Z): head unchanged; mergeability MERGEABLE/CLEAN. All repository checks were inspected, not just Greptile or required checks: 15 succeeded, 17 skipped; none failed, pending, or cancelled. CI required is successful. Skipped lanes, including Full PR qualification, are not successful execution evidence.
Validation was restricted to isolated temporary checkouts and pinned Node 24.18.0. The shared checkout and the two PR lockfiles differ, so no dependency reuse was allowed. The initial isolated npm ci attempt failed at the sandbox-denied ambient npm cache; no completed install was reused, and installation was stopped/deferred when the overseer requested no heavy work. No builds or local Vitest/package runs completed. This is a HOLD, not approval; the light probes below do not replace public CLI/filesystem or installed-client verification.
Remaining local verification: the focused Antigravity configuration, client lifecycle, and registration-status suites; applicable verify:package and npm pack --dry-run. CI's Linux package result is useful existing evidence, but local package/native-host and actual Antigravity CLI discovery remain unverified.
|
TL;DR: I ran the two files this PR changes, plus six more, on Node 24.18.0. With this PR on current main, the two files pass. Five of the six more pass. The sixth, productCatalog, fails until the docs table is rebased. That docs hunk does not apply to main. Thanks, IvenKooLab, for the work. I tested head 1677c06 on top of main 89faa86 (#3050). Results
Not run
Commandsgit -C ~/code/rea-mirror/rea.git fetch origin
git -C ~/code/rea-mirror/rea.git archive 89faa863ed472d8a13a826014331d3b81cfc5de3 | tar -x -C /tmp/t8-1015/main
npm ci # Node 24.18.0, exit 0
# before: main plus only this PR's test changes
F=tests/boundary/filesystem
npm run test:focused -- $F/antigravityCliClientConfiguration.test.ts $F/clientLifecycle.test.ts # exit 1, 7 failed 56 passed
# after: main plus this PR, docs/installation.md excluded
git apply --exclude=docs/installation.md 3249.diff
npm run test:focused -- $F/antigravityCliClientConfiguration.test.ts $F/clientLifecycle.test.ts \
$F/clientConfigurationBom.test.ts $F/clientConfigurationDialects.test.ts \
$F/clientConfigurationEnvironment.test.ts $F/clientConfigurationLayeredEnvironment.test.ts \
$F/clientRegistrationStatus.test.ts $F/productCatalog.test.ts # exit 1, 165 passed 1 failed
# productCatalog again, with one table row added by hand to docs/installation.md
npm run test:focused -- $F/productCatalog.test.ts # exit 0, 10 passedThe files I skipped because they run doctor: The patch came from Test setup🤖 Generated with Claude Code (Sonnet 5.5, verified by Opus 5.5) 🦊 |
|
I checked the actual three-way merge of main I also ran the compiled REA CLI through setup, scoped doctor, idempotent setup, uninstall, and doctor again. Registration changed from
@baron, this adds the local CLI/filesystem and package evidence missing from the earlier review. Actual Antigravity client discovery and skill loading remain unverified; the client is not installed here. |
|
Closing in favor of #5145. The replacement retains this implementation and review fixes on current main, and adds a committed public CLI regression for independent CLI detection, shared registration, repeated setup and cleanup of both skill roots while preserving user notes. This discussion remains the record of the earlier review and package validation. Actual Google client loading remains unverified; the replacement is a draft. |
Summary
Register the Antigravity CLI (
antigravity_cli) so CLI users get REA's workflow skill where the CLI loads it, instead of an MCP registration with no skill.Problem and expected behavior
The Antigravity CLI reads the same global
~/.gemini/config/mcp_config.jsonregistration file as the IDE (docs), so the existingantigravityclient already registers MCP for both surfaces. But per the official skills documentation and the Gemini CLI migration guide, the CLI discovers global skills from~/.gemini/antigravity-cli/skills/, not the IDE's~/.gemini/config/skills/. Setup therefore registered the CLI's MCP server while the workflow skill never landed in the CLI's skills root — the same surface-specific skill-root gap the Trae and Qoder reviews fixed.The new definition:
~/.gemini/config/mcp_config.jsonas its configuration file, so selecting either Antigravity surface registers the same entry and a second selection isunchanged;~/.gemini/antigravity-cli) so detection reflects a CLI installation, not just the IDE;~/.gemini/antigravity-cli/skillswhileantigravitykeeps~/.gemini/config/skills;skipped("REA registration is absent") and unrelated servers survive.Validation
Local verification on macOS arm64, Node 24.18.0/npm 11.16.0, with a fresh locked install. The tested tree was an actual three-way merge of main
ca7ee018band PR head1677c06bein an isolated checkout. The merge had no conflicts; the installation table row was retained without manual edits.aligned), repeated setup (no actions and identical config bytes), uninstall, then scoped doctor (missing). Unrelated shared-file settings and user-owned skill notes survived. The CLI skill root stayed separate from the IDE's. An IDE-only--all-detected --dry-rundid not select the CLI.npm run verify:package— passed, including isolated install/update, CLI/MCP startup, setup/uninstall, backup recovery, symlink handling, and cleanup. The first attempt hit this host's Swift 6.3.3/default SDK 27 mismatch; the successful retry selected the installed SDK 26.5 and compiler through command-scoped environment settings.npm pack --dry-run --json— passed (1,714 entries).npm run docs:check— passed, including 5 README consistency tests.npm run check— failed on the existing formatting ofsrc/adb/AdbProvider.ts, which is byte-for-byte identical to mainca7ee018b. Separate typecheck, lint, knip, metadata, and architecture checks passed; lint reported 0 errors.git diff --cached --checkpassed. The full gate is not claimed as passing.Focused test command
The closed-source Antigravity client was not installed or run, so its actual discovery and skill loading remain unverified. This run exercised REA's public CLI and filesystem/package boundaries on macOS; no additional Windows/Linux host verification is claimed.