trae-agent vs SWE-agent
Python software engineering agents compared
trae-agent and SWE-agent both use language models and repository tools to carry out software engineering tasks. trae-agent focuses on configurable, general-purpose CLI workflows, while SWE-agent centers on attempting fixes for GitHub issues and research workflows; its maintainers recommend mini-SWE-agent for new use.

trae-agent: LLM Agent for Software Engineering
Trae Agent is a Python CLI agent that uses configurable LLM providers to carry out general-purpose software engineering tasks. Its modular tools, interactive mode, and recorded trajectories suit developers and researchers who want to run or study agent workflows.

SWE-agent: Use Language Models to Fix GitHub Issues
SWE-agent gives a language model tools to work on real software repositories, including diagnosing and attempting to fix GitHub issues. It is designed for software engineering research and configurable coding tasks, though its maintainers now recommend mini-SWE-agent for new use.
| trae-agent | SWE-agent | |
|---|---|---|
| Language | Python | Python |
| License | MIT | MIT |
| Stars | 12.2k | 20.5k |
| Forks | 1.4k | 2.2k |
| Last analyzed | Oct 23, 2026 | Oct 3, 2026 |
Key differences
- trae-agent accepts natural-language instructions for general-purpose software tasks, while SWE-agent uses a GitHub issue as its primary starting point.
- trae-agent offers interactive sessions, trajectory recording, and tools including sequential thinking; SWE-agent emphasizes repository issue-fixing workflows and SWE-bench benchmarking.
- trae-agent supports several hosted model providers and Ollama, while SWE-agent lets users select a model, with GPT-4o and Claude Sonnet 4 named as examples.
- trae-agent documents Docker execution as an option; SWE-agent documents EnIGMA mode for cybersecurity challenges, with version 0.7 recommended while its 1.0 update is pending.
- Both projects are Python and MIT-licensed; trae-agent requires Python 3.12 or newer and UV for its documented setup.
- SWE-agent has more listed stars and forks than trae-agent, but its maintainers recommend mini-SWE-agent for new use; trae-agent's measured activity is quiet despite its README describing active development.
Choose trae-agent if you…
- want a general-purpose CLI agent for multi-step software tasks from natural-language instructions.
- need provider options that include Ollama, plus interactive sessions and trajectory logs for reviewing agent behavior.
- want optional Docker execution and YAML configuration for agents, models, and tools.
Choose SWE-agent if you…
- want to evaluate an agent on GitHub issues or SWE-bench workflows.
- need a research-oriented, hackable workflow for custom coding tasks or repository-tool experiments.
- want to explore EnIGMA cybersecurity challenges and can use the recommended SWE-agent 0.7 version.
Compare the numbers side by side, or add more projects
This comparison is generated with AI from the OSRepos analyses of both projects. Always check each project's repository and documentation before choosing.