feat(antigravity): split antigravity into antigravity-ide and antigravity-cli (Antigravity 2.0)#1708
Open
dyoshikawa wants to merge 3 commits into
Open
feat(antigravity): split antigravity into antigravity-ide and antigravity-cli (Antigravity 2.0)#1708dyoshikawa wants to merge 3 commits into
dyoshikawa wants to merge 3 commits into
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements Antigravity 2.0, which splits Google Antigravity into two products with separate global config trees: the desktop
antigravity-ideand theantigravity-cli(agy). This PR registers both as new tool targets, wires their features through every processor, and keeps the legacyantigravitytarget working as a deprecated alias.Closes #1679
Changes
New tool targets
antigravity-ide— rules, commands (workflows), skills, mcp, hooksantigravity-cli— rules, skills, mcp, hooks, permissions (global-only)Both support project and global scope where the product does;
antigravity-clipermissions are global-only and reuse the Claude-Code-stylepermissions.allow/ask/denyarrays.Legacy
antigravityaliasLEGACY_TARGETS, so wildcard*expansion now excludes it.antigravity-ide, preserving its original singular.agent/paths and existing classes for backward compatibility.antigravity-ide/antigravity-cli.Gemini CLI deprecation
geminicliis not removed — Enterprise access continues and existingGEMINI.md/.gemini/repos still rely on it.Docs
README.mdanddocs/**;skills/rulesync/regenerated viascripts/sync-skill-docs.ts.Tests
Out of scope
CLI subagents are tracked separately in #1706.
Verification
pnpm cicheck(code + content) passes.RULESYNC_CMD=…), matching the CI invocation.🤖 Generated with Claude Code