Skip to content

feat: support Trae IDE#1560

Closed
WilliamMunch wants to merge 5 commits intogithub:mainfrom
WilliamMunch:main-trae
Closed

feat: support Trae IDE#1560
WilliamMunch wants to merge 5 commits intogithub:mainfrom
WilliamMunch:main-trae

Conversation

@WilliamMunch
Copy link

Description

Integrate the Trae AI agent into the Spec Kit. It provides full support for CLI, context update scripts (Bash/PowerShell), release automation, and documentation.

Changes

  1. init.py: Added trae to AGENT_CONFIG as a supported IDE-based agent (configured to use .trae/ folder).
  2. update-agent-context.shupdate-agent-context.ps1: Added logic to handle the trae argument and update context files in .trae/rules/specify-rules.md.
  3. create-release-packages.shcreate-release-packages.ps1: Added generation logic for Trae slash command files.
  4. create-github-release.sh: Configured to include Trae artifacts (spec-kit-template-trae-*.zip) in official GitHub releases.
  5. AGENTS.md: Documented Trae as a supported agent, including its directory convention (.trae/commands/).
  6. README.md: Added Trae to the list of supported AI agents.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds support for the Trae IDE as a new AI agent in the Spec Kit toolkit. Trae is configured as an IDE-based agent (similar to Windsurf, Cursor, and IBM Bob) that doesn't require CLI tool installation.

Changes:

  • Added Trae to the supported agents list with proper IDE-based configuration
  • Updated all agent-related scripts and documentation for Trae support
  • Configured release automation to include Trae template artifacts

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/specify_cli/init.py Added trae to AGENT_CONFIG as IDE-based agent using .trae/ folder; updated init command help text
scripts/bash/update-agent-context.sh Added trae support for updating context files in .trae/rules/specify-rules.md
scripts/powershell/update-agent-context.ps1 Added trae support matching bash script behavior
.github/workflows/scripts/create-release-packages.sh Added trae case to generate command files in .trae/commands/ directory
.github/workflows/scripts/create-release-packages.ps1 Added trae case matching bash script behavior
.github/workflows/scripts/create-github-release.sh Added trae artifacts to GitHub release uploads
AGENTS.md Documented Trae in supported agents table and directory conventions
README.md Added Trae to supported agents list and init command documentation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mnriem
Copy link
Collaborator

mnriem commented Feb 25, 2026

@WilliamMunch Can you resolve the conflicts?

@WilliamMunch WilliamMunch requested a review from mnriem as a code owner March 4, 2026 03:39
@WilliamMunch
Copy link
Author

WilliamMunch commented Mar 4, 2026

@WilliamMunch你能解决这些冲突吗?

It’s done.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.

Comments suppressed due to low confidence (1)

scripts/bash/update-agent-context.sh:787

  • print_summary usage output lists supported agents but omits generic, even though generic is handled by update_specific_agent. Include generic here to avoid misleading CLI help output.
    log_info "Usage: $0 [claude|gemini|copilot|cursor-agent|qwen|opencode|codex|windsurf|kilocode|auggie|roo|codebuddy|amp|shai|trae|kiro-cli|agy|bob|qodercli]"

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@SoniaChoo
Copy link

hello @WilliamMunch please solve the conflicts, thx

@WilliamMunch
Copy link
Author

hello @WilliamMunch please solve the conflicts, thx

It’s done.

Copy link
Collaborator

@mnriem mnriem left a comment

Choose a reason for hiding this comment

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

Unfortunately it looks like another earlier contributions caused merge conflicts again. So can you resolve them .... again .... so sorry for this. The nature of the speed of contributions to Spec Kit ;)

@ziyitony
Copy link

thanks @WilliamMunch please update and then cc @mnriem for review.
godness bless you

@WilliamMunch
Copy link
Author

Unfortunately it looks like another earlier contributions caused merge conflicts again. So can you resolve them .... again .... so sorry for this. The nature of the speed of contributions to Spec Kit ;)

It’s done. @mnriem

@mnriem mnriem requested a review from Copilot March 19, 2026 10:55
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Comments suppressed due to low confidence (1)

src/specify_cli/init.py:305

  • Trae is added to AGENT_CONFIG here with commands_subdir: "commands", and the release packaging/docs in this PR also place Trae command files under .trae/commands/. However, extension/preset command registration is driven by CommandRegistrar.AGENT_CONFIGS (in src/specify_cli/agents.py / re-exported via extensions.py), which currently still points Trae at .trae/rules. This means extension installs/uninstalls and backups/restores will write/read command files from a different directory than specify init / release packages, breaking Trae extension command registration. Update the registrar config to use .trae/commands (and keep it consistent with AGENT_CONFIG) so Trae projects behave correctly across init + extensions + presets.
    "trae": {
        "name": "Trae",
        "folder": ".trae/",
        "commands_subdir": "commands",
        "install_url": None,  # IDE-based
        "requires_cli": False,
    },

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mnriem mnriem self-requested a review March 19, 2026 11:50
Copy link
Collaborator

@mnriem mnriem left a comment

Choose a reason for hiding this comment

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

Please address Copilot feedback and resolve conflicts

@mnriem
Copy link
Collaborator

mnriem commented Mar 19, 2026

Closing — Trae IDE support was delivered in #1817 (merged as a177a1a). Thank you for the contribution, @WilliamMunch!

@mnriem mnriem closed this Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants