-
Notifications
You must be signed in to change notification settings - Fork 5.6k
feat: Add Antigravity agent support #1368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -35,6 +35,7 @@ Specify supports multiple AI agents by generating agent-specific command files a | |
| | **Gemini CLI** | `.gemini/commands/` | TOML | `gemini` | Google's Gemini CLI | | ||
| | **GitHub Copilot** | `.github/agents/` | Markdown | N/A (IDE-based) | GitHub Copilot in VS Code | | ||
| | **Cursor** | `.cursor/commands/` | Markdown | `cursor-agent` | Cursor CLI | | ||
| | **Antigravity** | `.agent/workflows/` | Markdown | `antigravity` | Google's Antigravity IDE | | ||
| | **Qwen Code** | `.qwen/commands/` | TOML | `qwen` | Alibaba's Qwen Code CLI | | ||
| | **opencode** | `.opencode/command/` | Markdown | `opencode` | opencode CLI | | ||
| | **Codex CLI** | `.codex/commands/` | Markdown | `codex` | Codex CLI | | ||
|
|
@@ -90,7 +91,7 @@ This eliminates the need for special-case mappings throughout the codebase. | |
| Update the `--ai` parameter help text in the `init()` command to include the new agent: | ||
|
|
||
| ```python | ||
| ai_assistant: str = typer.Option(None, "--ai", help="AI assistant to use: claude, gemini, copilot, cursor-agent, qwen, opencode, codex, windsurf, kilocode, auggie, codebuddy, new-agent-cli, or q"), | ||
| ai_assistant: str = typer.Option(None, "--ai", help="AI assistant to use: claude, gemini, copilot, cursor-agent, antigravity, qwen, opencode, codex, windsurf, kilocode, auggie, codebuddy, new-agent-cli, or q"), | ||
| ``` | ||
|
|
||
| Also update any function docstrings, examples, and error messages that list available agents. | ||
|
|
@@ -111,7 +112,7 @@ Modify `.github/workflows/scripts/create-release-packages.sh`: | |
| ##### Add to ALL_AGENTS array | ||
|
|
||
| ```bash | ||
| ALL_AGENTS=(claude gemini copilot cursor-agent qwen opencode windsurf q) | ||
| ALL_AGENTS=(claude gemini copilot cursor-agent antigravity qwen opencode windsurf q) | ||
| ``` | ||
|
|
||
| ##### Add case statement for directory structure | ||
|
|
@@ -309,6 +310,7 @@ Require a command-line tool to be installed: | |
| - **Claude Code**: `claude` CLI | ||
| - **Gemini CLI**: `gemini` CLI | ||
| - **Cursor**: `cursor-agent` CLI | ||
| - **Antigravity**: `antigravity` CLI | ||
|
||
| - **Qwen Code**: `qwen` CLI | ||
| - **opencode**: `opencode` CLI | ||
| - **Amazon Q Developer CLI**: `q` CLI | ||
|
|
@@ -329,7 +331,7 @@ Work within integrated development environments: | |
|
|
||
| ### Markdown Format | ||
|
|
||
| Used by: Claude, Cursor, opencode, Windsurf, Amazon Q Developer, Amp, SHAI, IBM Bob | ||
| Used by: Claude, Cursor, Antigravity, opencode, Windsurf, Amazon Q Developer, Amp, SHAI, IBM Bob | ||
|
|
||
| **Standard format:** | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -30,12 +30,12 @@ | |||||
| # | ||||||
| # 5. Multi-Agent Support | ||||||
| # - Handles agent-specific file paths and naming conventions | ||||||
| # - Supports: Claude, Gemini, Copilot, Cursor, Qwen, opencode, Codex, Windsurf, Kilo Code, Auggie CLI, Roo Code, CodeBuddy CLI, Qoder CLI, Amp, SHAI, or Amazon Q Developer CLI | ||||||
| # - Supports: Claude, Gemini, Copilot, Cursor, Antigravity, Qwen, opencode, Codex, Windsurf, Kilo Code, Auggie CLI, Roo Code, CodeBuddy CLI, Qoder CLI, Amp, SHAI, Amazon Q Developer CLI | ||||||
| # - Can update single agents or all existing agent files | ||||||
| # - Creates default Claude file if no agent files exist | ||||||
| # | ||||||
| # Usage: ./update-agent-context.sh [agent_type] | ||||||
| # Agent types: claude|gemini|copilot|cursor-agent|qwen|opencode|codex|windsurf|kilocode|auggie|shai|q|bob|qoder | ||||||
| # Agent types: claude|gemini|copilot|cursor-agent|antigravity|qwen|opencode|codex|windsurf|kilocode|auggie|shai|q|bob|qoder | ||||||
| # Leave empty to update all existing agent files | ||||||
|
|
||||||
| set -e | ||||||
|
|
@@ -63,6 +63,7 @@ CLAUDE_FILE="$REPO_ROOT/CLAUDE.md" | |||||
| GEMINI_FILE="$REPO_ROOT/GEMINI.md" | ||||||
| COPILOT_FILE="$REPO_ROOT/.github/agents/copilot-instructions.md" | ||||||
| CURSOR_FILE="$REPO_ROOT/.cursor/rules/specify-rules.mdc" | ||||||
| ANTIGRAVITY_FILE="$REPO_ROOT/.agent/rules/specify-rules.md" | ||||||
|
||||||
| ANTIGRAVITY_FILE="$REPO_ROOT/.agent/rules/specify-rules.md" | |
| ANTIGRAVITY_FILE="$REPO_ROOT/.agent/workflows/specify-rules.md" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the suggestion, but the paths are intentionally different and serve different purposes:
- .agent/workflows/ (in AGENTS.md and release scripts) → Where spec-kit command files are generated (e.g., speckit.plan.md, speckit.spec.md)
- .agent/rules/ (in update-agent-context scripts) → Where the agent context/rules file (specify-rules.md) is stored
This is consistent with other IDE-based agents like Windsurf:
- Commands go to .windsurf/workflows/
- Rules go to .windsurf/rules/specify-rules.md
The AGENTS.md table documents where command files are stored, while the update-agent-context scripts manage per-project agent rules/instructions files. These are two distinct concepts with different file locations.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -9,7 +9,7 @@ Mirrors the behavior of scripts/bash/update-agent-context.sh: | |||||
| 2. Plan Data Extraction | ||||||
| 3. Agent File Management (create from template or update existing) | ||||||
| 4. Content Generation (technology stack, recent changes, timestamp) | ||||||
| 5. Multi-Agent Support (claude, gemini, copilot, cursor-agent, qwen, opencode, codex, windsurf, kilocode, auggie, roo, codebuddy, amp, shai, q, bob, qoder) | ||||||
| 5. Multi-Agent Support (claude, gemini, copilot, cursor-agent, antigravity, qwen, opencode, codex, windsurf, kilocode, auggie, roo, codebuddy, amp, shai, q, bob, qoder) | ||||||
|
|
||||||
| .PARAMETER AgentType | ||||||
| Optional agent key to update a single agent. If omitted, updates all existing agent files (creating a default Claude file if none exist). | ||||||
|
|
@@ -25,7 +25,7 @@ Relies on common helper functions in common.ps1 | |||||
| #> | ||||||
| param( | ||||||
| [Parameter(Position=0)] | ||||||
| [ValidateSet('claude','gemini','copilot','cursor-agent','qwen','opencode','codex','windsurf','kilocode','auggie','roo','codebuddy','amp','shai','q','bob','qoder')] | ||||||
| [ValidateSet('claude','gemini','copilot','cursor-agent','antigravity','qwen','opencode','codex','windsurf','kilocode','auggie','roo','codebuddy','amp','shai','q','bob','qoder')] | ||||||
| [string]$AgentType | ||||||
| ) | ||||||
|
|
||||||
|
|
@@ -48,6 +48,7 @@ $CLAUDE_FILE = Join-Path $REPO_ROOT 'CLAUDE.md' | |||||
| $GEMINI_FILE = Join-Path $REPO_ROOT 'GEMINI.md' | ||||||
| $COPILOT_FILE = Join-Path $REPO_ROOT '.github/agents/copilot-instructions.md' | ||||||
| $CURSOR_FILE = Join-Path $REPO_ROOT '.cursor/rules/specify-rules.mdc' | ||||||
| $ANTIGRAVITY_FILE = Join-Path $REPO_ROOT '.agent/rules/specify-rules.md' | ||||||
|
||||||
| $ANTIGRAVITY_FILE = Join-Path $REPO_ROOT '.agent/rules/specify-rules.md' | |
| $ANTIGRAVITY_FILE = Join-Path $REPO_ROOT '.agent/workflows/specify-rules.md' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the suggestion, but the paths are intentionally different and serve different purposes:
- .agent/workflows/ (in AGENTS.md and release scripts) → Where spec-kit command files are generated (e.g., speckit.plan.md, speckit.spec.md)
- .agent/rules/ (in update-agent-context scripts) → Where the agent context/rules file (specify-rules.md) is stored
This is consistent with other IDE-based agents like Windsurf:
- Commands go to .windsurf/workflows/
- Rules go to .windsurf/rules/specify-rules.md
The AGENTS.md table documents where command files are stored, while the update-agent-context scripts manage per-project agent rules/instructions files. These are two distinct concepts with different file locations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the CLI Tool column, Antigravity is listed as "antigravity", but based on the AGENT_CONFIG in init.py where
"requires_cli": False, and the Description column calling it "Google's Antigravity IDE", it should be "N/A (IDE-based)" to match the pattern of other IDE-based agents like Windsurf, GitHub Copilot, and IBM Bob.