Skip to content

feat(commands): support antigravity-cli workflow commands#2091

Merged
dyoshikawa merged 1 commit into
mainfrom
resolve-issue-2071-antigravity-cli-commands
Jun 30, 2026
Merged

feat(commands): support antigravity-cli workflow commands#2091
dyoshikawa merged 1 commit into
mainfrom
resolve-issue-2071-antigravity-cli-commands

Conversation

@dyoshikawa

Copy link
Copy Markdown
Owner

Summary

Follow-up for Google Antigravity CLI upstream updates (#2071). The Antigravity CLI (agy) shares the Antigravity 2.0 harness and reads workflow slash commands from .agents/workflows/, but rulesync wired the commands feature only for antigravity-ide, so antigravity-cli emitted no command files.

Changes

  • Added AntigravityCliCommand extends AntigravitySharedCommand (src/features/commands/antigravity-cli-command.ts), mirroring AntigravityCliSkill. Targets project .agents/workflows/ and the CLI global tree ~/.gemini/antigravity-cli/global_workflows/.
  • New path constants in antigravity-paths.ts (re-exported via antigravity-cli-paths.ts).
  • Registered the factory in commands-processor.ts (project+global, native) and added antigravity-cli to commandsProcessorToolTargetTuple.
  • Tests: new antigravity-cli-command.test.ts; extended commands-processor.test.ts; added antigravity-cli to the e2e Tool×Feature matrix (generate, orphan-delete, import, global). Regenerated supported-tools tables (Commands → ✅ 🌏).

Note

The issue also suggested adding a commands/commandsClass entry to the antigravity-cli convention in rules-processor.ts. This was intentionally NOT done: that additionalConventions.commands entry only fires for simulated commands, and Antigravity commands are native (the native sibling antigravity-ide has no such entry). Mirroring the native sibling is the correct interpretation.

Verification

pnpm cicheck fully green: 294 test files, 6589 tests; lint/typecheck, sync-skill-docs, gitignore, supported-tools, cspell, secretlint all pass.

References

Closes #2071

The Antigravity CLI (agy) reads workflow slash commands from the shared Antigravity 2.0 .agents/workflows/ directory, but rulesync wired the commands feature only for antigravity-ide.

Add AntigravityCliCommand (a thin AntigravitySharedCommand subclass mirroring AntigravityCliSkill): project workflows in .agents/workflows/ and a CLI-specific global tree at ~/.gemini/antigravity-cli/global_workflows/. Register it in commands-processor.ts and the commandsProcessorToolTargetTuple. The supported-tools tables regenerate from getToolTargets; gitignore is unchanged (the project path is already emitted by antigravity-ide).

Resolves #2071

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@dyoshikawa
dyoshikawa merged commit 464336e into main Jun 30, 2026
14 of 25 checks passed
@dyoshikawa
dyoshikawa deleted the resolve-issue-2071-antigravity-cli-commands branch June 30, 2026 16:30
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.

Follow up Google Antigravity CLI upstream updates: commands (workflows in .agents/workflows/)

2 participants