-
Notifications
You must be signed in to change notification settings - Fork 6.7k
refactor: consolidate agent configurations and improve test coverage #1712
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 all commits
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 | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,202 @@ | ||||||
| """ | ||||||
| Agent configurations for specify-cli. | ||||||
| Shared between CLI initialization and the extension system. | ||||||
| """ | ||||||
|
|
||||||
| # Default values for agent metadata | ||||||
| DEFAULT_FORMAT = "markdown" | ||||||
| DEFAULT_ARGS = "$ARGUMENTS" | ||||||
| DEFAULT_EXTENSION = ".md" | ||||||
|
|
||||||
| AGENT_CONFIG = { | ||||||
| "copilot": { | ||||||
| "name": "GitHub Copilot", | ||||||
| "folder": ".github/", | ||||||
| "commands_subdir": "agents", | ||||||
| "install_url": None, | ||||||
| "requires_cli": False, | ||||||
| "command_format": DEFAULT_FORMAT, | ||||||
| "command_args": DEFAULT_ARGS, | ||||||
| "command_extension": DEFAULT_EXTENSION, | ||||||
| }, | ||||||
| "claude": { | ||||||
| "name": "Claude Code", | ||||||
| "folder": ".claude/", | ||||||
| "commands_subdir": "commands", | ||||||
| "install_url": "https://docs.anthropic.com/en/docs/claude-code/setup", | ||||||
| "requires_cli": True, | ||||||
| "command_format": DEFAULT_FORMAT, | ||||||
| "command_args": DEFAULT_ARGS, | ||||||
| "command_extension": DEFAULT_EXTENSION, | ||||||
| }, | ||||||
| "gemini": { | ||||||
| "name": "Gemini CLI", | ||||||
| "folder": ".gemini/", | ||||||
| "commands_subdir": "commands", | ||||||
| "install_url": "https://github.com/google-gemini/gemini-cli", | ||||||
| "requires_cli": True, | ||||||
| "command_format": "toml", | ||||||
| "command_args": "{{args}}", | ||||||
| "command_extension": ".toml", | ||||||
| }, | ||||||
| "cursor-agent": { | ||||||
| "name": "Cursor", | ||||||
| "folder": ".cursor/", | ||||||
| "commands_subdir": "commands", | ||||||
| "install_url": None, | ||||||
| "requires_cli": False, | ||||||
| "command_format": DEFAULT_FORMAT, | ||||||
| "command_args": DEFAULT_ARGS, | ||||||
| "command_extension": DEFAULT_EXTENSION, | ||||||
| }, | ||||||
| "qwen": { | ||||||
| "name": "Qwen Code", | ||||||
| "folder": ".qwen/", | ||||||
| "commands_subdir": "commands", | ||||||
| "install_url": "https://github.com/QwenLM/qwen-code", | ||||||
| "requires_cli": True, | ||||||
| "command_format": "toml", | ||||||
| "command_args": "{{args}}", | ||||||
| "command_extension": ".toml", | ||||||
| }, | ||||||
| "opencode": { | ||||||
| "name": "opencode", | ||||||
| "folder": ".opencode/", | ||||||
| "commands_subdir": "command", | ||||||
| "install_url": "https://opencode.ai", | ||||||
| "requires_cli": True, | ||||||
| "command_format": DEFAULT_FORMAT, | ||||||
| "command_args": DEFAULT_ARGS, | ||||||
| "command_extension": DEFAULT_EXTENSION, | ||||||
| }, | ||||||
| "codex": { | ||||||
| "name": "Codex CLI", | ||||||
| "folder": ".codex/", | ||||||
| "commands_subdir": "prompts", | ||||||
| "install_url": "https://github.com/openai/codex", | ||||||
| "requires_cli": True, | ||||||
| "command_format": DEFAULT_FORMAT, | ||||||
| "command_args": DEFAULT_ARGS, | ||||||
| "command_extension": DEFAULT_EXTENSION, | ||||||
| }, | ||||||
| "windsurf": { | ||||||
| "name": "Windsurf", | ||||||
| "folder": ".windsurf/", | ||||||
| "commands_subdir": "workflows", | ||||||
| "install_url": None, | ||||||
| "requires_cli": False, | ||||||
| "command_format": DEFAULT_FORMAT, | ||||||
| "command_args": DEFAULT_ARGS, | ||||||
| "command_extension": DEFAULT_EXTENSION, | ||||||
| }, | ||||||
| "kilocode": { | ||||||
| "name": "Kilo Code", | ||||||
| "folder": ".kilocode/", | ||||||
| "commands_subdir": "rules", | ||||||
|
||||||
| "commands_subdir": "rules", | |
| "commands_subdir": "workflows", |
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.
Since this doc now states
src/specify_cli/agent_config.pyis the single source of truth, the “Current Supported Agents” table above should match the directories inAGENT_CONFIG. Right now the table/explanatory text has conflicting examples (e.g. Codex listed as.codex/commands/vsAGENT_CONFIG['codex']['commands_subdir'] = 'prompts'). Please reconcile the table/examples with the new config to avoid sending contributors to the wrong paths.