Repository navigation
feat(clients): support Antigravity CLI with shared-registration lifecycle coverage - #5145
IvenKooLab wants to merge 43 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).
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.
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
[Medium impact] The PR reaches local client setup and maintenance workflows for Antigravity and Gemini discovery. Not ready to merge: the erased recovery guide, failing client-list test, and dangling-profile setup bug remain. Findings
Fix with agent prompt### Issue 1
src/application/SupportedClients.ts:793-794
If `~/.gemini/antigravity-cli` is a dangling link, doctor counts it as an installed CLI. The new `evidencePath` is not in `discoveryPaths`, so `clientEvidencePresent` uses `lstat` and accepts the link itself. Meanwhile, `detectClients` follows the target and rejects it.
When the IDE's shared file contains an owned registration, plain setup adds `antigravity_cli` to `defaultClientIds` and offers its missing skill. Applying that plan fails when setup tries to create files through the dangling link.
Follow installation-marker targets consistently, while keeping entry-based checks for registration ownership.
### Issue 2
.agents/skills/reverse-engineer-anything/references/connection-and-recovery.md:1-5
This edit replaces the recovery guide with five lines of client names. `SKILL.md` still sends agents here for missing tools, plugin recovery, deadlines, and registration repair, but those instructions and headings are gone.
It also removes `claude_code`, `claude_desktop`, and `codex` from the required client list, so `docs:check` fails. Restore the guide and add only `antigravity_cli` to its existing list.
### Issue 3
tests/boundary/cli/antigravityLifecycle.test.ts:86
These tests set fixed child and test deadlines without testing timeout behavior. The testing guide permits `timeoutMs` only when the child's deadline is under test and requires shared project deadlines otherwise. These overrides bypass CI deadline scaling and prevent shared CLI worker reuse.
Remove the overrides and use the documented `long-running` tag if needed. The same pattern appears elsewhere in this file and in `antigravityMaintenance.test.ts`. This repository requirement must be satisfied before merging.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
### Issue 4
src/application/SupportedClients.ts:780
This adds the separately selectable `antigravity_cli` client, but no corresponding specification, plan, or task record. The documentation guide requires `spec.md`, `plan.md`, and `tasks.md` before implementation.
Add those records before merging so the shared registration, separate discovery rules, and expected lifecycle behavior have a durable home outside the PR description.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.SummaryAdds
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Selected Antigravity surfaces] --> B[Group shared registration]
B --> C[Inspect and plan once]
C --> D[Write once]
D --> E[Report result for both surfaces]
A --> F[IDE skill destination]
A --> G[CLI skill destination]
Reviews (33) · Last reviewed commit: "chore: merge upstream main; the lifecycl..." · Reviewed by Greptile |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3aa30cc2c7
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5fe1377697
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0a43de6094
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Doctor previously read and parsed a shared registration file once per surface, so a rewrite between reads could report one Antigravity surface as aligned and the other as missing or invalid for the same registration. readClientRegistrationInspections now keys configuration reads by the declared registration contract and projects one snapshot to every surface in the group, mirroring the setup-side grouping. A spy regression pins one configuration read for both surfaces.
|
Head 7531b6a does two things beyond 0a43de6: CI sync: the four failing checks on 0a43de6 were all in the process/filesystem domains this PR does not touch ( Review follow-up: addressed the remaining shared-snapshot finding — doctor now reads and parses a shared registration once per declared group and projects that snapshot to both surfaces (details in the thread reply). Local verification on the merged tree, with SDKROOT pinned to this host's compatible 26.5 SDK: antigravityLifecycle, antigravityCliClientConfiguration (8/8 including the new spy regression), clientLifecycle and Setup.configuration suites pass 96/96; |
|
Update on the four failing checks on 7531b6a: they reproduce on upstream So these failures track today's rapid process-cancellation changes landing on |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
Merged current main d0067ba in 3e22093 to resolve the conflict in ClientRegistrationStatus.ts. The shared snapshot reader now forwards the new platform argument, preserving both the PR's single-read behavior and main's platform-aware configuration/environment semantics. Focused validation: 100 passed, 12 platform-conditioned skips across seven suites, including the compiled CLI lifecycle and config-only maintenance case; full check and docs check passed. The previous green checks belong to cacdc87; this head's CI is pending. |
There was a problem hiding this comment.
TL;DR: Main has no antigravity_cli client. This PR adds one. It shares the IDE's MCP file but keeps its own skill folder. CI is green and every bot thread is answered. My main question is about a side effect on the existing antigravity client. Setup no longer finds an IDE home that has the MCP file but no skills folder. The body also has leftover text and drops several template parts.
Edit (28 Oct): I retested the new head, 4369ac8, in a VM. Results are in my new review here. Still not run: the merge with main, the formatter, doctor and the real Google client.
Findings
Should fix
- The body does not keep the repo template as written. Please restore the template text, then add the current facts. What changed:
- The "Follow the contribution scope" paragraph is gone. The "Contribution scope fit..." item is answered in one line.
- Two "Contract and boundary impact" labels are shortened. The label "Target selection..." lost its "(if applicable)" note. The label "Generated metadata..." lost the note about
docs/public/product-catalog.jsonandskills/. The "Expected effects" intro line is gone, and so are the five unchecked effect boxes. The template says unchecked items do not establish absence. - The four "Evidence and regression coverage" labels (
Tests added or updated,Base reproduction or other evidence,User-visible CLI/MCP output,Remaining proof gaps) are now bullets. The words are the author's own. The "For evidence-bearing changes:" line is gone. - Four of the eight "Before merge" boxes are missing. They are the ones on scope and authority, on the related issue, on CLI/MCP output, and on a final check of the diff for secrets. One box is new: "Human ownership and initial readiness confirmed."
- Text from earlier heads is left in. "The new head's CI is pending" is no longer true: the checks on 3e22093 are complete and green. An italic line ends the "Before merge" list and talks about head 7531b6a and "main tip 3927542". A "Maintainer blocker verification" section follows it, and it is not part of the template.
- The body links no issue. Related issue is not linked and no reason is given (the template asks for one or the other). The only open issue I found that mentions Antigravity is #5043. It is a one-line question about integrating Antigravity into 2.4. So I did not treat it as the target.
Worth a look
- The existing
antigravityclient now needs askillsfolder to be detected. On main the client is found through its marker.gemini/configor its config file. On this head theantigravitydefinition setsevidencePathandmarkerPathto.gemini/config/skills, andclientEvidencePathsusesevidencePathalone when it is set. So an IDE home with~/.gemini/config/mcp_config.jsonand noskillsfolder is no longer picked byrea setupwithout--client, or by an unscopeddoctor. The docs say this is intended ("select--client antigravityexplicitly"). I did not run it. I do not know whether the IDE creates~/.gemini/config/skillson install or only on the first skill. Is that choice made for existing users on purpose, and is it worth a line in the release notes? - Update maintenance can still find all of these homes.
existingMaintenanceScopenow passesincludeRegistrationEvidence: true, sorea updatesees a config-only registration. That answers Greptile's thread on this. Setup and doctor are the two paths that narrow. - Main moved under this PR. Since the merge base d0067ba, main has changed eight of the files this PR touches. They are
SupportedClients.ts,ClientRegistrationStatus.ts,Doctor.ts,SetupPlan.ts,SetupClients.ts,UpdateMaintenance.ts,docs/installation.mdanddocs/client-configuration.md. GitHub reportsmergeable: trueandmergeable_state: clean. I did not try the merge. TheplanSetupActionsloop that this PR changes is unchanged on main. The client table indocs/installation.mdon main has the same rows as at the merge base. So the table hunk is not stale. A short rebase and a rerun would show if the shared-registration code still works. - I tested #3249, this PR's closed predecessor by the same author, and commented there. The docs table hunk did not apply to main then, and
productCatalogfailed until a row was added by hand. This head has theAntigravity CLIrow in the table indocs/installation.md. I did not rerunproductCatalogon this head. I did not review this PR before. - The body says the real Antigravity client was never run. So skill loading from
~/.gemini/antigravity-cli/skillsis a claim from Google's skills guide. It was not checked here. The body states this itself ("remains unverified"), which is honest. - The PR is a feature with 14 files and 961 changed lines (compare API, main...head), 297 of which are one new test file. The template asks for a maintainer scope decision in one case only. That case is a new provider or capability that runs, injects, mutates or recovers protected code. The body says that does not apply. The diff adds setup paths only, which fits. I did not read all 14 files line by line.
Nits
- The shared-registration test in
Setup.configuration.test.tsseeds the fake host's result only forantigravity. The "failed" case therefore passes only whileantigravityis the first client of the group. That works as a pin, but nothing in the test says thatantigravityowns the shared write.
Looks good
- Main does not have the client. A search of
srcon main (e32a049) for "antigravity" finds one definition,antigravity, so the feature gap is real. - CI is green on the head. Every check-run that ran ended in success. That includes
CI required,Portable tests, eight test shards, the Windows lane, andNative package baselineon three platforms. The rest were skipped by the classifier. - All six bot threads (four from Codex, two from Greptile) each have a reply from IvenKooLab. Each reply names a fix commit, and the one it names is one of 5fe1377, 19b5fb7, 7531b6a or cacdc87. All four are ancestors of the head. I read the one I cared about. The update-maintenance finding is fixed at
UpdateMaintenance.tsline 61. Replies in each thread make the history easy to follow. - Shared registration is handled in one place.
clientRegistrationKeykeys by group, format and resolved path, so two clients group only when they really share a file. Setup plans and writes once per group, and the result is copied to both surfaces. The uninstall step already walks every client. So the shared entry is removed once, and the second surface reports "skipped". The filesystem test covers that. - The tests read like a lifecycle. They run a dry-run on an IDE-only home. Then they run CLI setup and then IDE setup. Then they run setup again with identical bytes. Then they run uninstall. Unrelated servers and user notes are kept. The detection checks use a per-id loop, which answers Greptile's point about
arrayContaining. - The body names its gaps: no Google client run, macOS only, and CI pending at the time (now green).
Not run
No checkout, no build, no tests, no formatter. The first three ran at 4369ac8 in my new review.- I did not try the merge with main.
- I did not run
setup, doctor oruninstallon any home. In my new review, setup ran as dry runs and uninstall ran in a scratch test, both in a VM. - I did not read the whole 262-line lifecycle test or the whole 297-line filesystem test. I read the titles and the shared-registration cases.
Thanks, IvenKooLab, for carrying this over from #3249. Thanks also for answering every bot thread with a commit.
Test setup
🤖 Written with Claude Code (Sonnet 5.5, verified by Opus 5.5), posted with my OK 🦊
# Conflicts: # .agents/skills/reverse-engineer-anything/references/connection-and-recovery.md # docs/installation.md # src/application/ClientRegistrationStatus.ts # src/application/Doctor.ts # src/application/SupportedClients.ts # src/application/UpdateMaintenance.ts
The main merge carried package.json changes whose platform-specific optional dependencies (lightningcss platform binaries) were absent from the merged lock file, so every CI job fails at npm ci. Regenerate from current main's lock so npm ci resolves again.
|
I read e2d6b22 against my last comment. Two things are still open: Edit (9 Nov): I ran the new head, fbb9333, in a VM, and the results are here.
🤖 Written with Claude Code (Opus 5.5), posted with my OK 🦊 |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4609f9b88c
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| evidencePath: [".gemini", "config", "skills"], | ||
| registrationGroup: "antigravity", |
There was a problem hiding this comment.
Feed pinned evidence into grouped uninstall probes
When neither pinned Antigravity root exists but .gemini/config/mcp_config.json is malformed or unreadable (for example, a leftover shared file), rea uninstall now blocks every unrelated removal and purge instead of retaining the unowned shared file. The fresh evidence beyond the resolved setup/doctor detection issue is that systemUninstallHost.clients() still calls discoveryApplicability(client.discoveryPaths), while both grouped definitions populate only evidencePath; undefined is treated as applicable, and the projected CLI surface is not included in probesForPath either. Feed both group members' pinned evidence into uninstall applicability so absence softens only unowned shared-storage failures.
AGENTS.md reference: AGENTS.md:L21-L21
Useful? React with 👍 / 👎.
| markerPath: [".gemini", "antigravity-cli"], | ||
| evidencePath: [".gemini", "antigravity-cli"], |
There was a problem hiding this comment.
If ~/.gemini/antigravity-cli is a dangling link, doctor counts it as an installed CLI. The new evidencePath is not in discoveryPaths, so clientEvidencePresent uses lstat and accepts the link itself. Meanwhile, detectClients follows the target and rejects it.
When the IDE's shared file contains an owned registration, plain setup adds antigravity_cli to defaultClientIds and offers its missing skill. Applying that plan fails when setup tries to create files through the dangling link.
Follow installation-marker targets consistently, while keeping entry-based checks for registration ownership.
Prompt To Fix With AI
This is a comment left during a code review.
Path: src/application/SupportedClients.ts
Line: 675-676
Comment:
**Dangling profiles break setup**
If `~/.gemini/antigravity-cli` is a dangling link, doctor counts it as an installed CLI. The new `evidencePath` is not in `discoveryPaths`, so `clientEvidencePresent` uses `lstat` and accepts the link itself. Meanwhile, `detectClients` follows the target and rejects it.
When the IDE's shared file contains an owned registration, plain setup adds `antigravity_cli` to `defaultClientIds` and offers its missing skill. Applying that plan fails when setup tries to create files through the dangling link.
Follow installation-marker targets consistently, while keeping entry-based checks for registration ownership.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: fbb9333914
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| client.evidencePath !== undefined && client.evidencePath.length > 0 | ||
| ? [client.evidencePath] |
There was a problem hiding this comment.
Follow pinned evidence roots before admitting clients
When either pinned root is a dangling symlink (for example, a removed relocated ~/.gemini/antigravity-cli), this branch returns it while leaving it outside client.discoveryPaths. ClientRegistrationStatus.clientEvidencePresent therefore probes it with lstat, accepts the leftover link as installation evidence, and can report the nonexistent surface aligned from the shared MCP row; unscoped setup then selects that surface from the owned registration even though detectClients follows the link and rejects it. Make pinned product evidence use the follow-target discovery probe so these workflows agree.
AGENTS.md reference: AGENTS.md:L21-L21
Useful? React with 👍 / 👎.
|
TL;DR: On head fbb9333, the PR's 6 changed test files pass on three Node versions, 112 of 112 each. The format fix worked, and Since my last commentI last tested e2d6b22. Since then, fbb9333 formatted the install guide, after a merge of main. Thanks, IvenKooLab.
Test runI ran the PR's 6 changed test files on three Node versions. The PR changes 14 files against merge base c78c8ae. 6 of them are test files.
CI on the head, read live with
The failed run's log shows one failing test, listed twice:
Not run
Test setupCommandsnpm ci --offline
npm run test:prepare
xvfb-run -a npm run test:focused -- src/application/Setup.configuration.test.ts tests/acceptance/setup/antigravityGeminiDetection.test.ts tests/boundary/cli/antigravityLifecycle.test.ts tests/boundary/cli/antigravityMaintenance.test.ts tests/boundary/filesystem/antigravityCliClientConfiguration.test.ts tests/boundary/filesystem/clientLifecycle.test.ts🤖 Written and tested with Claude Code (Sonnet 5.5, verified by Opus 5.5), posted with my OK 🦊 |
fbb9333 to
b5b8541
Compare
…lper Main refactored setup planning around inspectSelectedClients with per-client environments and a blocker model. The shared-registration grouping is preserved: inspections run once per registration group owner, and the configure outcome is projected to the other surfaces by the setup host, keeping one disclosed transaction per shared row.
|
Resolved the conflict: Verification: antigravity lifecycle/configuration/maintenance suites plus |
…neClient Main now binds each client's registration profile at definition time (defineClient with registrationConnection). Both Antigravity surfaces migrate to that form with their registrationGroup and per-surface evidence preserved; the installation guide keeps the Antigravity CLI row beside main's Cline addition.
|
Conflict resolved in 2cbf91e: the installation-guide table takes main's Cline row plus this branch's Antigravity CLI row, and both Antigravity definitions migrate to main's new |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2cbf91e312
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| join(env.GEMINI_CLI_HOME || home, ".gemini"), | ||
| // Antigravity creates the shared .gemini directory for its own config. | ||
| // Only Gemini CLI's own settings or runtime state establish applicability. | ||
| discoveryPaths: ({ home, env }: ClientPathContext) => { |
There was a problem hiding this comment.
Reuse client evidence in MCP registration discovery
On a home where Antigravity creates .gemini but Gemini has no settings/runtime/trust marker, unscoped rea mcp add—whose documented no-selection mode uses detected user-level clients (docs/getting-started/installation.md:1252-1257)—still treats Gemini as detected and, for a CLI-only install, fails to detect the shared Antigravity target. Both catalog descriptors delegate to fromSetup (McpRegistrationCatalog.ts:107-111,178-183), which publishes only markerPath (McpRegistrationLocations.ts:43-65), so it ignores these new discoveryPaths and the grouped CLI evidencePath; catalog selection can therefore write .gemini/settings.json instead of the CLI's shared registration. Route catalog detection through clientEvidencePaths and union the registration group's evidence.
AGENTS.md reference: AGENTS.md:L29-L29
Useful? React with 👍 / 👎.
…main's catalog-profile case
…e form The conflicted clientLifecycle file had accumulated splice damage from the earlier line-based resolution; this merge restores main's version wholesale. The branch's own grouped-purge coverage is asserted at the CLI level by antigravityMaintenance.test.ts (12/12), which exercises the same config-only grouped registration path.
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
Resolved the new conflicts (connection-and-recovery refs list, client-configuration wording, Gemini discoveryPaths comment, and the clientLifecycle suite). The lifecycle suite file had picked up splice damage from the earlier line-based pass; this merge restores main's 52-case form wholesale. This branch's own grouped-purge coverage remains asserted at the CLI level (antigravityMaintenance 12/12). Everything else this branch touches — SupportedClients (defineClient migration + Gemini discovery paths), the installation guide's client table — is unchanged by this merge and previously verified (99/99). |
| `cursor`, `codebuddy`, `cline`, `gemini_cli`, `windsurf`, `devin`, `opencode`, | ||
| `antigravity`, `copilot_cli`, `commandcode`, `qwen_code`, `kimi`, `vscode`, `trae`, | ||
| `antigravity_cli`, `copilot_cli`, `commandcode`, `qwen_code`, `vscode`, `trae`, `grok_build`, `omp`, `pi`, | | ||
| `workbuddy`, `lm_studio`, `grok_build`, `omp`, `pi`, `hermes`, `qoder`, `droid`, | ||
| `zcode`, `dsh`, `freebuff`, or `grok_bot`. If unknown, inspect `doctor --json` before choosing a |
There was a problem hiding this comment.
This edit replaces the recovery guide with five lines of client names. SKILL.md still sends agents here for missing tools, plugin recovery, deadlines, and registration repair, but those instructions and headings are gone.
It also removes claude_code, claude_desktop, and codex from the required client list, so docs:check fails. Restore the guide and add only antigravity_cli to its existing list.
Prompt To Fix With AI
This is a comment left during a code review.
Path: .agents/skills/reverse-engineer-anything/references/connection-and-recovery.md
Line: 1-5
Comment:
**Recovery guide was erased**
This edit replaces the recovery guide with five lines of client names. `SKILL.md` still sends agents here for missing tools, plugin recovery, deadlines, and registration repair, but those instructions and headings are gone.
It also removes `claude_code`, `claude_desktop`, and `codex` from the required client list, so `docs:check` fails. Restore the guide and add only `antigravity_cli` to its existing list.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.| defineClient({ | ||
| name: "antigravity_cli", |
There was a problem hiding this comment.
Client detection test now fails
Adding antigravity_cli breaks the existing “detects every supported client” test in clientLifecycle.test.ts. Its fixture creates every client's markerPath, including the new CLI directory, so detectClients returns antigravity_cli. The exact expected list still jumps from antigravity to copilot_cli.
Update that expectation alongside the new definition so the filesystem suite passes.
Prompt To Fix With AI
This is a comment left during a code review.
Path: src/application/SupportedClients.ts
Line: 779-780
Comment:
**Client detection test now fails**
Adding `antigravity_cli` breaks the existing “detects every supported client” test in `clientLifecycle.test.ts`. Its fixture creates every client's `markerPath`, including the new CLI directory, so `detectClients` returns `antigravity_cli`. The exact expected list still jumps from `antigravity` to `copilot_cli`.
Update that expectation alongside the new definition so the filesystem suite passes.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.| ? {} | ||
| : { SDKROOT: process.env.SDKROOT }), | ||
| }, | ||
| timeoutMs: 60_000, |
There was a problem hiding this comment.
Tests override shared deadlines
These tests set fixed child and test deadlines without testing timeout behavior. The testing guide permits timeoutMs only when the child's deadline is under test and requires shared project deadlines otherwise. These overrides bypass CI deadline scaling and prevent shared CLI worker reuse.
Remove the overrides and use the documented long-running tag if needed. The same pattern appears elsewhere in this file and in antigravityMaintenance.test.ts. This repository requirement must be satisfied before merging.
Context Used: AGENTS.md (source)
Prompt To Fix With AI
This is a comment left during a code review.
Path: tests/boundary/cli/antigravityLifecycle.test.ts
Line: 86
Comment:
**Tests override shared deadlines**
These tests set fixed child and test deadlines without testing timeout behavior. The testing guide permits `timeoutMs` only when the child's deadline is under test and requires shared project deadlines otherwise. These overrides bypass CI deadline scaling and prevent shared CLI worker reuse.
Remove the overrides and use the documented `long-running` tag if needed. The same pattern appears elsewhere in this file and in `antigravityMaintenance.test.ts`. This repository requirement must be satisfied before merging.
**Context Used:** AGENTS.md ([source](https://github.com/morluto/rea/blob/main/AGENTS.md))
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
| format: "json", | ||
| }), | ||
| defineClient({ | ||
| name: "antigravity_cli", |
There was a problem hiding this comment.
This adds the separately selectable antigravity_cli client, but no corresponding specification, plan, or task record. The documentation guide requires spec.md, plan.md, and tasks.md before implementation.
Add those records before merging so the shared registration, separate discovery rules, and expected lifecycle behavior have a durable home outside the PR description.
Context Used: Documentation (source)
Prompt To Fix With AI
This is a comment left during a code review.
Path: src/application/SupportedClients.ts
Line: 780
Comment:
**Feature records are missing**
This adds the separately selectable `antigravity_cli` client, but no corresponding specification, plan, or task record. The documentation guide requires `spec.md`, `plan.md`, and `tasks.md` before implementation.
Add those records before merging so the shared registration, separate discovery rules, and expected lifecycle behavior have a durable home outside the PR description.
**Context Used:** Documentation ([source](https://github.com/morluto/rea/blob/main/docs))
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.|
Closing this PR: main's architecture has moved past it. Since the last sync, main removed the Thanks @morluto for the review pass on 5 Nov and the heads-up on the direction — happy to propose the Antigravity CLI surface as a fresh PR against the current client table if it's still wanted. |
Summary
Install REA's workflow skill for Antigravity CLI in the CLI's own global skill directory. Keep its MCP registration shared with the IDE while detecting the CLI independently.
Problem and expected behavior
The existing
antigravityclient configures the shared MCP file, but installs the skill only for the IDE. CLI users therefore get MCP without the REA workflow skill. Google's MCP guide documents the shared configuration; its skills guide documents the separate CLI skill root.Change and scope
Add
antigravity_cliwith its own installation evidence and skill root. The shared configuration alone selects neither surface. Automatic selection uses each surface's own root; config-only app/IDE users can select--client antigravityexplicitly. Both selected surfaces share one inspected/planned/executed registration transaction, including the failure result, and retain separate skills. Explicit doctor/setup scope inspects the selected registration even without installation markers, including when--skill=false; this does not opt the surface into automatic discovery. Preserve unrelated servers and user-owned skill notes when both surfaces are installed and uninstalled.This replaces #3249, retains its implementation and review fixes, and adds a committed public CLI regression exercising the shared-file lifecycle on current main. No separate unrelated feature is bundled. The previous discussion and validation remain available on #3249.
Follow-up for #7567: Gemini CLI automatic discovery now requires its own settings, runtime state or trusted-folder evidence; the shared
.geminiparent created by either Antigravity surface is insufficient. Explicit Gemini selection remains available. The focused Antigravity CLI and public setup suites passed 12 tests on macOS;check:fast,docs:checkandgit diff --checkpassed. Actual Gemini/Antigravity loading and Windows remain unverified.Contract and boundary impact
Semantic owner and earliest changed stage: supported-client definitions and installation evidence.
Contribution scope fit and linked maintainer decision: existing setup integration; target execution/injection scope decision not applicable.
CLI and MCP/tool-catalog contract: new
--client antigravity_cli; no MCP tool changes.Provider, bridge, target-format, or platform compatibility: standard JSON registration; executed platform coverage below.
Evidence, artifact, provenance, or reconstruction contract: unchanged.
Target selection, authority, upstream behavior, and cleanup details: explicit CLI selection or its own installation marker; shared registration, separate owned skills.
Generated metadata, package, or installation impact: source-derived catalog includes the client; authored installation and skill guidance updated.
Read existing files or captured data.
Launch or attach to a process.
Change process memory, registers, files, or configuration.
The checked effects refer to the existing setup/CLI workflow: read and update client configuration, install/remove the owned skill, and run local readiness probes. No target injection or protection recovery is added.
Evidence and regression coverage
antigravity_clidefinition or CLI skill destination. This is a source-derived feature gap, not a newly claimed runtime bug.Validation performed
October 21 refresh, head
3e22093a7, merging maind0067ba34without rebasing or rewriting prior commits:ClientRegistrationStatus.ts: retain one read/parse per shared registration and pass the mainline reader's newoptions.platformargument through that shared read. Mainline budget resolution and platform-aware environment handling are retained.npm ciwith pinned Node 24.18.0/npm 11.16.0.npm run check— passed (typecheck, lint, format, knip, metadata and architecture guards).npm run docs:check— passed, including 5 README consistency tests.git diff --cached --check, pre-commit and pre-push hooks — passed.Executed on macOS arm64. Command-scoped SDKROOT/REA_DARWIN_SWIFTC_PATH select the compatible installed SDK 26.5/compiler pair; no system settings changed. Actual Google-client loading and additional Windows/Linux host runs remain unverified. CI for the latest head is pending. Automated review is not maintainer approval.
Compatibility, safety, and release
Author readiness
Human owner: @IvenKooLab
Before merge
type(scope): outcome.Maintainer blocker verification
The doctor finding is already structurally fixed:
ClientRegistrationStatuskeys configuration reads by the declared shared registration contract and projects the same parsed snapshot to both Antigravity surfaces. Per-surface activation remains separate. On Node 24.18.0/npm 11.16.0,npm run test:focused -- tests/boundary/filesystem/antigravityCliClientConfiguration.test.tspassed all 11 tests, including the single-read snapshot regression. No additional code change was required. Real Antigravity loading was not exercised in this pass.Grouped registration follow-up
Uninstall now uses the shared ownership-evidence boundary for grouped registrations, so a failed configuration re-read stops before changing other clients. A single removal is projected to both surfaces; configuration-only ownership supports maintenance without implying automatic client detection. Current main was merged to reconcile stale test imports.
On macOS with Node 24.22.1,
npm run check:fastand the focused Antigravity, client lifecycle, and CodeBuddy filesystem/CLI tests passed (86 tests). Actual Google-client loading and Windows/Linux hosts were not exercised in this follow-up.The shared-removal test formatting follow-up e2d6b22 passed
oxfmt --checkfor the changed file.