feat: add Trae IDE support as a new agent#1817
feat: add Trae IDE support as a new agent#1817huangguang1999 wants to merge 11 commits intogithub:mainfrom
Conversation
Add Trae (https://www.trae.ai/) as a supported AI agent in spec-kit. Trae is an IDE-based agent that uses .trae/rules/ directory for project-level rules in Markdown format. Changes across 9 files: - src/specify_cli/__init__.py: Add trae to AGENT_CONFIG (IDE-based, .trae/ folder, rules subdir, no CLI required) - src/specify_cli/extensions.py: Add trae to CommandRegistrar.AGENT_CONFIGS (.trae/rules, markdown format, .md extension) - README.md: Add Trae to supported agents table, CLI examples, and --ai option description - .github/workflows/scripts/create-release-packages.sh: Add trae to ALL_AGENTS array and build case statement - .github/workflows/scripts/create-release-packages.ps1: Add trae to AllAgents array and switch statement - .github/workflows/scripts/create-github-release.sh: Add trae template zip files to release assets - scripts/bash/update-agent-context.sh: Add TRAE_FILE, trae case in update function, and auto-detect block - scripts/powershell/update-agent-context.ps1: Add TRAE_FILE, ValidateSet entry, switch case, and auto-detect block - tests/test_agent_config_consistency.py: Add 8 consistency tests for trae following established kimi/tabnine patterns
There was a problem hiding this comment.
Pull request overview
Adds Trae IDE as a new supported AI agent, following the established pattern for IDE-based agents (like Cursor/Windsurf). Trae uses .trae/rules/ for project-level rules in Markdown format.
Changes:
- Registers
traeinAGENT_CONFIGandCommandRegistrar.AGENT_CONFIGSwith appropriate directory/format settings - Adds
traeto all release packaging, agent context, and documentation files - Adds 8 consistency tests mirroring existing agent test patterns
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
src/specify_cli/__init__.py |
Add trae to AGENT_CONFIG as IDE-based agent |
src/specify_cli/extensions.py |
Add trae to CommandRegistrar.AGENT_CONFIGS |
create-release-packages.sh |
Add trae to agent list and build case |
create-release-packages.ps1 |
Add trae to agent list and build case |
create-github-release.sh |
Add trae template zips to release assets |
scripts/bash/update-agent-context.sh |
Add trae agent context support |
scripts/powershell/update-agent-context.ps1 |
Add trae agent context support |
README.md |
Add Trae to docs and CLI examples |
tests/test_agent_config_consistency.py |
Add 8 consistency tests for trae |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
mnriem
left a comment
There was a problem hiding this comment.
Please address Copilot feedback. If not applicable please explain why
… release script Fix incorrect parameter names in the trae case of Build-Variant: - -Format -> -Extension - -ArgsToken -> -ArgFormat - -OutDir -> -OutputDir These now match the Generate-Commands function signature and all other agent entries in the script. Co-authored-by: Copilot <copilot@github.com>
|
Good catch! Fixed in 5e162dd — corrected the parameter names to |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
mnriem
left a comment
There was a problem hiding this comment.
Please address Copilot feedback and make sure to resolve any conflicts. You are really close!
…spec-kit into feature/add-trae-support
|
And please resolve conflicts |
mnriem
left a comment
There was a problem hiding this comment.
Can you please resolve the conflicts. Thanks!
I have fixed it. |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Summary
Add Trae as a supported AI agent in spec-kit. Trae is an IDE-based AI assistant that uses
.trae/rules/directory for project-level rules in Markdown format.Follows the same integration pattern as kimi support (#1790) and tabnine support.
Changes (9 files, +128 / -12)
Core runtime
src/specify_cli/__init__.py— AddtraetoAGENT_CONFIG(IDE-based,.trae/folder,rulessubdir,requires_cli: False)src/specify_cli/extensions.py— AddtraetoCommandRegistrar.AGENT_CONFIGS(.trae/rules, markdown,.md)Release packaging
create-release-packages.sh— AddtraetoALL_AGENTSand build casecreate-release-packages.ps1— Addtraeto$AllAgentsand switch blockcreate-github-release.sh— Add trae template zips to release assetsAgent context scripts
scripts/bash/update-agent-context.sh— AddTRAE_FILE, case branch, and auto-detectscripts/powershell/update-agent-context.ps1— AddTRAE_FILE, ValidateSet, switch, auto-detectDocumentation & tests
README.md— Add Trae to supported agents table, CLI examples,--aioption listtests/test_agent_config_consistency.py— Add 8 consistency tests for traeDesign Decisions
.trae/rules/— Trae's project rules location per official docs.md) — consistent with Trae's rule file formatrequires_cli: False,install_url: None— similar to Cursor/Windsurf patterngenericin all agent lists, following existing ordering conventionTesting
__init__.pyandextensions.pyAI Disclosure
This contribution was developed with AI assistance (Mira AI) for:
All changes were reviewed and verified by the contributor.