Skip to content

feat: support Trae IDE#1560

Open
WilliamMunch wants to merge 3 commits intogithub:mainfrom
WilliamMunch:main
Open

feat: support Trae IDE#1560
WilliamMunch wants to merge 3 commits intogithub:mainfrom
WilliamMunch:main

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.

Comment on lines +261 to +266
"trae": {
"name": "Trae",
"folder": ".trae/",
"commands_subdir": "commands",
"install_url": None, # IDE-based
"requires_cli": False,
Copy link

Copilot AI Mar 4, 2026

Choose a reason for hiding this comment

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

trae is added to AGENT_CONFIG, but extension command registration is driven by CommandRegistrar.AGENT_CONFIGS (src/specify_cli/extensions.py) and currently has no Trae entry. As a result, installing extensions won’t register their commands for Trae projects (the .trae/ directory will be ignored). Add a corresponding trae config there (likely pointing at .trae/commands, markdown, $ARGUMENTS, .md) or refactor to derive registrar config from AGENT_CONFIG so new agents don’t get partially integrated.

Copilot uses AI. Check for mistakes.
Copy link
Collaborator

Choose a reason for hiding this comment

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

@copilot open a new pull request to apply changes based on this feedback


# Determine agent list
ALL_AGENTS=(claude gemini copilot cursor-agent qwen opencode windsurf codex kilocode auggie roo codebuddy amp shai kiro-cli agy bob qodercli generic)
ALL_AGENTS=(claude gemini copilot cursor-agent qwen opencode windsurf codex kilocode auggie roo codebuddy amp shai kiro-cli agy bob qodercli generic trae)
Copy link

Copilot AI Mar 4, 2026

Choose a reason for hiding this comment

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

This agent allowlist now includes trae, but the script header comment that documents the valid AGENTS subset (near the top of the file) still omits it. Please update the usage comment so it stays in sync with ALL_AGENTS.

Copilot uses AI. Check for mistakes.
Copy link
Collaborator

Choose a reason for hiding this comment

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

@copilot open a new pull request to apply changes based on this feedback

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.

3 participants