Skip to content

feat(antigravity): split antigravity into antigravity-ide and antigravity-cli (Antigravity 2.0)#1708

Open
dyoshikawa wants to merge 3 commits into
mainfrom
antigravity
Open

feat(antigravity): split antigravity into antigravity-ide and antigravity-cli (Antigravity 2.0)#1708
dyoshikawa wants to merge 3 commits into
mainfrom
antigravity

Conversation

@dyoshikawa
Copy link
Copy Markdown
Owner

Summary

Implements Antigravity 2.0, which splits Google Antigravity into two products with separate global config trees: the desktop antigravity-ide and the antigravity-cli (agy). This PR registers both as new tool targets, wires their features through every processor, and keeps the legacy antigravity target working as a deprecated alias.

Closes #1679

Changes

New tool targets

  • antigravity-ide — rules, commands (workflows), skills, mcp, hooks
  • antigravity-cli — rules, skills, mcp, hooks, permissions (global-only)

Both support project and global scope where the product does; antigravity-cli permissions are global-only and reuse the Claude-Code-style permissions.allow/ask/deny arrays.

Legacy antigravity alias

  • Moved into LEGACY_TARGETS, so wildcard * expansion now excludes it.
  • Kept as a deprecated alias for antigravity-ide, preserving its original singular .agent/ paths and existing classes for backward compatibility.
  • Now emits a deprecation warning directing users to antigravity-ide / antigravity-cli.

Gemini CLI deprecation

  • Documented that Google is retiring Gemini CLI on June 18, 2026 for Google AI Pro/Ultra and free Gemini Code Assist individuals (Enterprise plans unaffected). The successor is the Antigravity CLI.
  • geminicli is not removed — Enterprise access continues and existing GEMINI.md/.gemini/ repos still rely on it.
  • Added a Gemini CLI → Antigravity CLI migration guide.

Docs

  • Updated the Supported Tools matrix, file-format reference, and FAQ in README.md and docs/**; skills/rulesync/ regenerated via scripts/sync-skill-docs.ts.

Tests

  • Unit tests for all new feature classes.
  • E2E happy-path coverage for the new Tool × Feature cells (rules, commands, skills, mcp, hooks, permissions).

Out of scope

CLI subagents are tracked separately in #1706.

Verification

  • pnpm cicheck (code + content) passes.
  • Full E2E suite (432 tests) passes against the compiled bun binary (RULESYNC_CMD=…), matching the CI invocation.

🤖 Generated with Claude Code

dyoshikawa and others added 3 commits May 26, 2026 02:01
…vity-cli (Antigravity 2.0)

Register two new tool targets for Antigravity 2.0, which splits the product into a desktop IDE and a CLI (agy) with separate global config trees:

- antigravity-ide: rules, commands (workflows), skills, mcp, hooks

- antigravity-cli: rules, skills, mcp, hooks, permissions (global-only)

The legacy 'antigravity' target is moved into LEGACY_TARGETS and kept as a deprecated alias for antigravity-ide. It retains its original singular '.agent/' paths and old classes for backward compatibility, now emitting a deprecation warning. As a legacy target, it is excluded from wildcard '*' expansion.

Also document the Gemini CLI retirement (June 18, 2026; Enterprise plans unaffected) and add a Gemini CLI -> Antigravity CLI migration guide. geminicli remains supported.

Add unit tests for all new feature classes and e2e happy-path coverage for the new Tool x Feature cells. CLI subagents are tracked separately in issue #1706 and are out of scope here.

Closes #1679

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- Extract shared AntigravityMcp base; AntigravityIdeMcp/AntigravityCliMcp are now thin subclasses (DRY, mirrors antigravity-hooks).

- Extract shared AntigravitySharedSkill base; IDE/CLI skill classes are now thin subclasses.

- MCP: translate canonical url <-> Antigravity serverUrl in both directions so HTTP servers emit the documented Antigravity-compatible shape (was claimed in docs but not implemented).

- Add config-resolver tests for the 'antigravity' alias deprecation warning (once / split-targets / RULESYNC_SILENT_DEPRECATION).

- Docs: note the shared global rule (~/.gemini/GEMINI.md) and hooks (~/.gemini/config/hooks.json) files for the split targets; add Antigravity hook paths to the file-formats note.

- Clarify parsePermissionEntry parsing contract (nested parens round-trip; matches Claude Code).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Address code-review finding #1 on PR #1708: AntigravityIdeCommand was a
near-verbatim copy of the legacy AntigravityCommand, inconsistent with the
MCP/Skills features in this PR which factored shared logic into
AntigravityMcp / AntigravitySharedSkill base classes.

Introduce AntigravitySharedCommand holding the shared workflow body/trigger
transform, frontmatter validation, and round-trip logic. AntigravityIdeCommand
becomes a thin subclass overriding only the project/global workflows
directories and its rulesync target name. The legacy antigravity alias keeps
its own standalone class (mirroring the AntigravitySkill precedent for the
deprecated singular .agent/ tree). No behavior change.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Antigravity 2.0: split antigravity into antigravity-ide / antigravity-cli, expand features, and handle Gemini CLI deprecation

1 participant