Skip to content

feat(clients): support Antigravity CLI with shared-registration lifecycle coverage - #5145

Closed
IvenKooLab wants to merge 43 commits into
morluto:mainfrom
IvenKooLab:feat/antigravity-cli-lifecycle
Closed

IvenKooLab wants to merge 43 commits into
morluto:mainfrom
IvenKooLab:feat/antigravity-cli-lifecycle

Conversation

@IvenKooLab

@IvenKooLab IvenKooLab commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

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 antigravity client 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_cli with 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 antigravity explicitly. 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 .gemini parent 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:check and git diff --check passed. 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

  • Seven filesystem cases cover paths, registration preservation, shared-file cleanup and installation detection. CLI-only registration is also verified not to create app/IDE detection. Two service cases assert that successful and failed shared writes execute once and report the same result for both selected surfaces.
  • A new compiled public CLI case covers IDE-only dry-run detection without writes; CLI then IDE setup; scoped doctor; repeated two-surface setup with identical configuration bytes; uninstall; exact missing registration for both surfaces; and retained unrelated servers/settings/user notes.
  • Base evidence: current main has no antigravity_cli definition or CLI skill destination. This is a source-derived feature gap, not a newly claimed runtime bug.
  • Remaining proof gap: the closed-source Google Antigravity client was not run. REA's own public CLI and filesystem boundaries are exercised; actual Google client discovery/skill loading remains unverified.

Validation performed

October 21 refresh, head 3e22093a7, merging main d0067ba34 without rebasing or rewriting prior commits:

  • Resolved the single conflict in ClientRegistrationStatus.ts: retain one read/parse per shared registration and pass the mainline reader's new options.platform argument through that shared read. Mainline budget resolution and platform-aware environment handling are retained.
  • Fresh locked npm ci with pinned Node 24.18.0/npm 11.16.0.
  • Seven focused suites: 100 passed, 12 platform-conditioned skips (112 total). Public Antigravity lifecycle 3, config-only maintenance CLI 1, Antigravity filesystem 11, registration status 25, layered environment 10, configuration environment 35, update maintenance 27. Skipped cases are not execution evidence.
  • 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

  • Breaking changes or migration steps: none; existing IDE selection remains available.
  • Real Hopper/Ghidra, browser, or OS coverage: macOS arm64 REA setup workflow only; no target/provider analysis or Windows/Linux host run claimed.
  • Package or release metadata impact: additive client catalog and installation documentation; no version bump.
  • Security, privacy, process, or containment review: isolated temporary HOME; no credentials or generated build outputs included.

Author readiness

Human owner: @IvenKooLab

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

Before merge

  • This PR addresses a concrete problem or an agreed enhancement.
  • This PR has one focused outcome and the title follows type(scope): outcome.
  • Tests cover changed observable behavior and meaningful failure paths.
  • Owning docs, contracts, and generated metadata are updated where needed.
  • Human ownership and initial readiness confirmed.

Maintainer blocker verification

The doctor finding is already structurally fixed: ClientRegistrationStatus keys 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.ts passed 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:fast and 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 --check for the changed file.

IvenKooLab and others added 4 commits October 14, 2026 14:32
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.
@IvenKooLab
IvenKooLab marked this pull request as ready for review October 19, 2026 01:25
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-14T13:09:27.311734Z
We couldn’t complete this review. Comment @codex review to try again.
d736475 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@greptile-apps

greptile-apps Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 2/5 Tier: plus

[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

  1. P1 Dangling profiles break setup ▶
  2. P1 Recovery guide was erased ▶
  3. P2 Tests override shared deadlines ▶
  4. P2 Feature records are missing ▶
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.

Summary

Adds antigravity_cli with a separate skill destination and shared Antigravity MCP registration.

  • Antigravity CLI gets its own setup choice, detection root, and skill folder.
  • Both Antigravity surfaces use one shared registration transaction.
  • Config-only Antigravity registrations can be included in update maintenance.
  • The bundled skill no longer includes its detailed connection and recovery guide.

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]
Loading

Reviews (33) · Last reviewed commit: "chore: merge upstream main; the lifecycl..." · Reviewed by Greptile

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread src/application/SupportedClients.ts Resolved
Comment thread src/application/SupportedClients.ts Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread src/application/SupportedClients.ts Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread src/application/SupportedClients.ts Resolved
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.
@IvenKooLab

Copy link
Copy Markdown
Contributor Author

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 (processCaptureProgress cleanup detail assertions, filesystemSnapshotFallbackCancellation error typing). They came from main moving past ba866a2; ca71e91 and 3927542 completed those changes. 7531b6a merges current main (no conflicts).

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; tsc --noEmit and formatting clean. The process and Windows-lane assertions run on CI's Linux/Windows runners only.

@IvenKooLab

Copy link
Copy Markdown
Contributor Author

Update on the four failing checks on 7531b6a: they reproduce on upstream main itself. main tip 3927542 currently fails 7 checks (CI required, Portable tests, Windows capability and package lane, Test shards 1/5 and 3/5, Reverse tools quality, Real Apple artifact CLI/MCP E2E), and the failing tests overlap the ones reported here — e.g. tests/process-global/filesystemSnapshotFallbackCancellation.test.ts > rejects cancellation during the final hash fallback inspection and closes the descriptor fails on main with the identical ProcessCaptureReadFailure-vs-Error shape difference (main job logs, run 39223818130 vs main's own run for 3927542).

So these failures track today's rapid process-cancellation changes landing on main (ca71e91, 3927542), not this branch: the PR tree is fully merged with that tip and its client-domain suites pass locally (96/96 with the spy regression, tsc and formatting clean). CI here should return to green once main itself is repaired; happy to re-sync or adjust anything if the resolution lands differently.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

Comment thread src/application/SupportedClients.ts Resolved
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@IvenKooLab

Copy link
Copy Markdown
Contributor Author

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.

@CassieFox23 CassieFox23 left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.json and skills/. 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 antigravity client now needs a skills folder to be detected. On main the client is found through its marker .gemini/config or its config file. On this head the antigravity definition sets evidencePath and markerPath to .gemini/config/skills, and clientEvidencePaths uses evidencePath alone when it is set. So an IDE home with ~/.gemini/config/mcp_config.json and no skills folder is no longer picked by rea setup without --client, or by an unscoped doctor. The docs say this is intended ("select --client antigravity explicitly"). I did not run it. I do not know whether the IDE creates ~/.gemini/config/skills on 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. existingMaintenanceScope now passes includeRegistrationEvidence: true, so rea update sees 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.md and docs/client-configuration.md. GitHub reports mergeable: true and mergeable_state: clean. I did not try the merge. The planSetupActions loop that this PR changes is unchanged on main. The client table in docs/installation.md on 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 productCatalog failed until a row was added by hand. This head has the Antigravity CLI row in the table in docs/installation.md. I did not rerun productCatalog on 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/skills is 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.ts seeds the fake host's result only for antigravity. The "failed" case therefore passes only while antigravity is the first client of the group. That works as a pin, but nothing in the test says that antigravity owns the shared write.

Looks good

  • Main does not have the client. A search of src on 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, and Native package baseline on 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.ts line 61. Replies in each thread make the history easy to follow.
  • Shared registration is handled in one place. clientRegistrationKey keys 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 or uninstall on 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
  • Box: Nobara 44 (Fedora 44 base), Linux 7.2.11
  • Head / base: 3e22093 / d0067ba (merge base); main was e32a049

🤖 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
Comment thread src/application/SupportedClients.ts Resolved
Comment thread package-lock.json Resolved
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.
@CassieFox23

CassieFox23 commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

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.

  • Static checks fail on this head. npm run format:check flags one file, docs/installation.md, which this PR edits. Running oxfmt on it should clear that job.
  • My question about current Antigravity users is open too. At this head, antigravity is still found only by ~/.gemini/config/skills (SupportedClients.ts, line 656 on). Main 015a02d still finds it by ~/.gemini/config (line 639). Is that change meant for users who have only the config folder? If so, does it need a release note?

🤖 Written with Claude Code (Opus 5.5), posted with my OK 🦊

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines +658 to +659
evidencePath: [".gemini", "config", "skills"],
registrationGroup: "antigravity",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Comment on lines +675 to +676
markerPath: [".gemini", "antigravity-cli"],
evidencePath: [".gemini", "antigravity-cli"],

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 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.

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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines +867 to +868
client.evidencePath !== undefined && client.evidencePath.length > 0
? [client.evidencePath]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

@CassieFox23

Copy link
Copy Markdown
Contributor

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 Static checks passes now. My question about how Antigravity is found is still open.

Since my last comment

I last tested e2d6b22. Since then, fbb9333 formatted the install guide, after a merge of main. Thanks, IvenKooLab.

  • Static checks is success on fbb9333. Its log says All matched files use the correct format.
  • My question is still open. At this head, antigravity is found by ~/.gemini/config/skills (markerPath, line 662 of src/application/SupportedClients.ts). Main b46f4fc finds it by ~/.gemini/config (line 639). Is that change meant for users who have only the config folder? If so, does it need a release note?

Test run

I 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.

Check Node 22.23.4 Node 24.22.1 Node 26.12.1
Test Files pass, 6 passed (6) pass, 6 passed (6) pass, 6 passed (6)
Tests pass, 112 passed (112) pass, 112 passed (112) pass, 112 passed (112)

CI on the head, read live with gh:

  • The CI run 42553015940 is completed/failure. CodeQL production is completed/skipped. PR readiness and PR title are completed/success.
  • Failed checks (3): CI required, Portable tests, Test shard (2/8).
  • Cancelled checks (7): Test shard (1/8) and Test shard (3/8) through Test shard (8/8).
  • Skipped checks: 22.
  • Successful checks (14): Build bundled Windows x64 native controls, Build package, Classify changes, Conventional PR title, Documentation, Greptile Review, Native package baseline (darwin arm64), Native package baseline (linux arm64), Native package baseline (linux x64), Source tests, Static checks, Validate author declaration, website / Website checks, Windows capability and package lane.
  • The PR is mergeable true, state blocked, not a draft.
  • The head is 5 commits behind main 99d00d1.

The failed run's log shows one failing test, listed twice:

  • The test is preserves the source when an inline result with unknown retention exceeds delivery. The file is tests/boundary/mcp/sourcePublicationComposed.test.ts.
  • The error is an AssertionError. An object with code resource_constraint did not match the expected object.
  • The CI required job fails with CI lanes did not pass: test, test-shard.

tests/boundary/mcp/sourcePublicationComposed.test.ts is not one of the 6 files I ran. The PR does not change it. Main's newer commit 78a84d7 (#9566) edits that test, and that PR says it fixes this failure.

Not run

  • A merge with current main, 99d00d1.
Test setup
  • Box: Fedora 44 VM (4 vCPUs, 8 GB) on my Nobara 44 PC, Linux 7.2.11
  • Node: 22.23.4, 24.22.1, 26.12.1
  • Head / base: fbb9333 / c78c8ae (merge base with main)
  • Install: npm ci --offline and npm run test:prepare on Node 24.22.1
Commands
npm 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 🦊

…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.
@IvenKooLab

Copy link
Copy Markdown
Contributor Author

Resolved the conflict: SetupPlan now uses main's refactored planning structure (inspectSelectedClients with per-client environments and the blocker model) while keeping this branch's shared-registration grouping — inspections run once per registration-group owner, and the configure outcome is projected to the other surfaces by the setup host, preserving one disclosed transaction per shared row. SetupClients.ts keeps the grouped configure loop with main's new assertSetupActive and clientEnvironment calls.

Verification: antigravity lifecycle/configuration/maintenance suites plus Setup.configuration (the shared-registration "executes once, reports for both surfaces" cases) 48/48; tsc --noEmit and knip clean.

…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.
@IvenKooLab

Copy link
Copy Markdown
Contributor Author

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 defineClient/registrationConnection form with registrationGroup and the per-surface evidencePath preserved (the CLI surface declares the same flat connection as the IDE). Antigravity suites plus Setup.configuration 99/99; tsc --noEmit and knip clean.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread src/application/SupportedClients.ts Outdated
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) => {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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 👍 / 👎.

…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.
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@IvenKooLab

Copy link
Copy Markdown
Contributor Author

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).

Comment on lines 1 to 5
`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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 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.

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.

Comment on lines +779 to +780
defineClient({
name: "antigravity_cli",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 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,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 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",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 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)

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.

@IvenKooLab IvenKooLab closed this Nov 16, 2026
@IvenKooLab

Copy link
Copy Markdown
Contributor Author

Closing this PR: main's architecture has moved past it. Since the last sync, main removed the registrationGroup machinery entirely and reworked client applicability into registrationApplicability (and the Gemini false-detection concern was fixed differently in 5b158b2). Re-fitting the Antigravity CLI surface onto that architecture would be a new feature PR rather than a merge of this one.

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.

@morluto morluto added area: setup Setup, packaging, upgrade, install, Doctor, and client registration enhancement New feature or request labels Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: setup Setup, packaging, upgrade, install, Doctor, and client registration enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants