Skip to content
Open
Changes from all commits
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
6 changes: 6 additions & 0 deletions src/specify_cli/extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,12 @@ class CommandRegistrar:
"format": "markdown",
"args": "$ARGUMENTS",
"extension": ".md"
},
"agy": {
"dir": ".agent/workflows",
"format": "markdown",
"args": "$ARGUMENTS",
"extension": ".md"
Comment on lines +680 to +684
Copy link

Copilot AI Feb 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new AGY/Antigravity registration path is not covered by tests. tests/test_extensions.py currently exercises command registration only for Claude, so this change could regress without detection. Consider adding a CommandRegistrar test that creates a .agent/workflows dir and asserts commands are written there (and/or that register_commands_for_all_agents detects .agent).

Copilot uses AI. Check for mistakes.
Comment on lines +680 to +684
Copy link

Copilot AI Feb 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CommandRegistrar.AGENT_CONFIGS duplicates agent directory metadata that also exists in src/specify_cli/__init__.py (AGENT_CONFIG), and this drift is what caused AGY to be missed originally. To reduce future mismatches, consider deriving these paths/placeholders from a shared config or adding a validation test that ensures any agent with a commands directory configured is represented here.

Copilot uses AI. Check for mistakes.
}
}

Expand Down