Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: address round 2 review comments for agy deprecation
  • Loading branch information
dhilipkumars committed Mar 11, 2026
commit 44f772f5b2aa390eff9a12403af1cf4f1050031c
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ See Spec-Driven Development in action across different scenarios with these comm
| [Mistral Vibe](https://github.com/mistralai/mistral-vibe) | ✅ | |
| [Kimi Code](https://code.kimi.com/) | ✅ | |
| [Windsurf](https://windsurf.com/) | ✅ | |
| [Antigravity (agy)](https://antigravity.google/) | ✅ | Requires `--ai-skills` |
| [Antigravity (agy)](https://antigravity.google/) | ✅ | Requires `--ai-skills` |
| Generic | ✅ | Bring your own agent — use `--ai generic --ai-commands-dir <path>` for unsupported agents |

## 🔧 Specify CLI Reference
Expand Down
17 changes: 9 additions & 8 deletions src/specify_cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1269,6 +1269,13 @@ def install_ai_skills(project_path: Path, selected_ai: str, tracker: StepTracker
return installed_count > 0 or skipped_count > 0


def _handle_agy_deprecation(console: Console) -> None:
"""Print the deprecation error for the Antigravity (agy) agent and exit."""
console.print("\n[red]Error:[/red] Explicit command support was deprecated in Antigravity version 1.20.5.")
console.print("Please use [cyan]--ai-skills[/cyan] when initializing to install templates as agent skills instead.")
console.print("[yellow]Usage:[/yellow] specify init <project> --ai agy --ai-skills")
raise typer.Exit(1)

@app.command()
def init(
project_name: str = typer.Argument(None, help="Name for your new project directory (optional if using --here, or use '.' for current directory)"),
Expand Down Expand Up @@ -1350,10 +1357,7 @@ def init(
raise typer.Exit(1)

if ai_assistant == "agy" and not ai_skills:
console.print("\n[red]Error:[/red] Explicit command support was deprecated in Antigravity version 1.20.5.")
console.print("Please use [cyan]--ai-skills[/cyan] when initializing to install templates as agent skills instead.")
console.print("[yellow]Usage:[/yellow] specify init <project> --ai agy --ai-skills")
raise typer.Exit(1)
_handle_agy_deprecation(console)
Comment thread
dhilipkumars marked this conversation as resolved.
Outdated

if here:
project_name = Path.cwd().name
Expand Down Expand Up @@ -1419,10 +1423,7 @@ def init(
)

if selected_ai == "agy" and not ai_skills:
console.print("\n[red]Error:[/red] Explicit command support was deprecated in Antigravity version 1.20.5.")
console.print("Please use [cyan]--ai-skills[/cyan] when initializing to install templates as agent skills instead.")
console.print("[yellow]Usage:[/yellow] specify init <project> --ai agy --ai-skills")
raise typer.Exit(1)
_handle_agy_deprecation(console)
Comment thread
dhilipkumars marked this conversation as resolved.

# Validate --ai-commands-dir usage
if selected_ai == "generic":
Expand Down
7 changes: 7 additions & 0 deletions tests/test_agent_config_consistency.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,13 @@ def test_release_ps_switch_has_shai_and_agy_generation(self):
assert re.search(r"'shai'\s*\{.*?\.shai/commands", ps_text, re.S) is not None
assert re.search(r"'agy'\s*\{.*?\.agent/commands", ps_text, re.S) is not None

Comment thread
dhilipkumars marked this conversation as resolved.
def test_release_sh_switch_has_shai_and_agy_generation(self):
"""Bash release builder must generate files for shai and agy agents."""
sh_text = (REPO_ROOT / ".github" / "workflows" / "scripts" / "create-release-packages.sh").read_text(encoding="utf-8")

assert ".shai/commands" in sh_text
assert ".agent/commands" in sh_text
Comment thread
dhilipkumars marked this conversation as resolved.
Outdated

def test_init_ai_help_includes_roo_and_kiro_alias(self):
"""CLI help text for --ai should stay in sync with agent config and alias guidance."""
assert "roo" in AI_ASSISTANT_HELP
Expand Down
Loading