fix: add missing vibe and agy agent configs to CommandRegistrar#1835
fix: add missing vibe and agy agent configs to CommandRegistrar#1835mango766 wants to merge 2 commits intogithub:mainfrom
Conversation
The template outputs plain text `Last updated: [DATE]` but both update-agent-context scripts only matched `**Last updated**: [DATE]` (bold Markdown). Make the bold markers optional in the regex so the timestamp is refreshed regardless of formatting. Co-Authored-By: Claude (claude-opus-4-6) <noreply@anthropic.com>
Both agents are defined in AGENT_CONFIG in __init__.py but were absent from CommandRegistrar.AGENT_CONFIGS in extensions.py, which meant the extension system could never register commands for them. - vibe (Mistral Vibe): .vibe/prompts, markdown format - agy (Antigravity): .agent/commands, markdown format Co-Authored-By: Claude (claude-opus-4-6) <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
Adds missing agent entries so the extension command registration system recognizes vibe (Mistral Vibe) and agy (Antigravity), and improves agent-context timestamp updating in both Bash and PowerShell tooling.
Changes:
- Add
vibeandagytoCommandRegistrar.AGENT_CONFIGSso extensions can register commands for those agents. - Broaden “Last updated” line matching in
update-agent-contextscripts to handle both bold and non-bold variants.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/specify_cli/extensions.py | Adds vibe and agy agent config mappings used by extension command registration. |
| scripts/powershell/update-agent-context.ps1 | Makes the “Last updated” regex tolerant to bold/non-bold formatting. |
| scripts/bash/update-agent-context.sh | Mirrors the PowerShell “Last updated” regex tolerance in Bash. |
Comments suppressed due to low confidence (1)
src/specify_cli/extensions.py:850
CommandRegistrar.AGENT_CONFIGSis a second source of truth alongsideAGENT_CONFIGin__init__.py, and this PR exists because they drifted. Consider adding a small consistency check (or deriving these entries fromAGENT_CONFIG) so new agents don’t require updating multiple dictionaries manually.
"agy": {
"dir": ".agent/commands",
"format": "markdown",
"args": "$ARGUMENTS",
"extension": ".md"
}
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| "vibe": { | ||
| "dir": ".vibe/prompts", | ||
| "format": "markdown", | ||
| "args": "$ARGUMENTS", | ||
| "extension": ".md" | ||
| }, | ||
| "agy": { | ||
| "dir": ".agent/commands", | ||
| "format": "markdown", | ||
| "args": "$ARGUMENTS", | ||
| "extension": ".md" | ||
| } |
mnriem
left a comment
There was a problem hiding this comment.
Please address Copilot feedback. If not applicable please explain why
|
im going to be adding support for extension + agent-skills with this #1795 , would you like to wait for it and retry for agy? |
|
@mango766 can you re-test agy with latest spec-kit? |
Adds the missing
vibe(Mistral Vibe) andagy(Antigravity) entries toCommandRegistrar.AGENT_CONFIGSinextensions.py.Both agents are defined in
AGENT_CONFIGin__init__.pybut were absent from the extension system's config dictionary, which meant extensions couldn't register commands for them.Related: #1816, #1705
Closes #1833