Skip to content

feat: support Trae IDE#1560

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

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

Conversation

@WilliamMunch

Copy link
Copy Markdown

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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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

mnriem commented Feb 25, 2026

Copy link
Copy Markdown
Collaborator

@WilliamMunch Can you resolve the conflicts?

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

WilliamMunch commented Mar 4, 2026

Copy link
Copy Markdown
Author

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

It’s done.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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.

Comment thread src/specify_cli/__init__.py
Comment thread scripts/bash/update-agent-context.sh Outdated
Comment thread .github/workflows/scripts/create-release-packages.sh Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@SoniaChoo

Copy link
Copy Markdown

hello @WilliamMunch please solve the conflicts, thx

@WilliamMunch

Copy link
Copy Markdown
Author

hello @WilliamMunch please solve the conflicts, thx

It’s done.

@mnriem mnriem left a comment

Copy link
Copy Markdown
Collaborator

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
Copy Markdown

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

@WilliamMunch

Copy link
Copy Markdown
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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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.

Comment thread src/specify_cli/__init__.py
Comment thread .github/workflows/scripts/create-release-packages.ps1
@mnriem mnriem self-requested a review March 19, 2026 11:50

@mnriem mnriem left a comment

Copy link
Copy Markdown
Collaborator

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

mnriem commented Mar 19, 2026

Copy link
Copy Markdown
Collaborator

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

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