bytedance/trae-agent được TopGit xếp vào nhóm công cụ AI, với 12.1k sao trên GitHub, viết chủ yếu bằng Python. Trae Agent is an LLM-based agent for general purpose software engineering tasks.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Trae Agent is an LLM-based agent for general purpose software engineering tasks. It provides a powerful CLI interface that can understand natural language instructions and execute complex software engineering workflows using various tools and LLM providers.
For technical details please refer to our technical report.
Project Status: The project is still being actively developed. Please refer to docs/roadmap.md and CONTRIBUTING if you are willing to help us improve Trae Agent.
Difference with Other CLI Agents: Trae Agent offers a transparent, modular architecture that researchers and developers can easily modify, extend, and analyze, making it an ideal platform for studying AI agent architectures, conducting ablation studies, and developing novel agent capabilities. This research-friendly design enables the academic and open-source communities to contribute to and build upon the foundational agent framework, fostering innovation in the rapidly evolving field of AI agents.
✨ Features
🌊 Lakeview: Provides short and concise summarisation for agent steps
🤖 Multi-LLM Support: Works with OpenAI, Anthropic, Doubao, Azure, OpenRouter, Ollama and Google Gemini APIs
🛠️ Rich Tool Ecosystem: File editing, bash execution, sequential thinking, and more
🎯 Interactive Mode: Conversational interface for iterative development
📊 Trajectory Recording: Detailed logging of all agent actions for debugging and analysis
⚙️ Flexible Configuration: YAML-based configuration with environment variable support
Legacy JSON Configuration: If using the older JSON format, see docs/legacy_config.md. We recommend migrating to YAML.
📖 Usage
Basic Commands
# Simple task execution
trae-cli run "Create a hello world Python script"
# Check configuration
trae-cli show-config
# Interactive mode
trae-cli interactive
Provider-Specific Examples
# OpenAI
trae-cli run "Fix the bug in main.py" --provider openai --model gpt-4o
# Anthropic
trae-cli run "Add unit tests" --provider anthropic --model claude-sonnet-4-20250514
# Google Gemini
trae-cli run "Optimize this algorithm" --provider google --model gemini-2.5-flash
# OpenRouter (access to multiple providers)
trae-cli run "Review this code" --provider openrouter --model "anthropic/claude-3-5-sonnet"
trae-cli run "Generate documentation" --provider openrouter --model "openai/gpt-4o"
# Doubao
trae-cli run "Refactor the database module" --provider doubao --model doubao-seed-1.6
# Ollama (local models)
trae-cli run "Comment this code" --provider ollama --model qwen3
Advanced Options
# Custom working directory
trae-cli run "Add tests for utils module" --working-dir /path/to/project
# Save execution trajectory
trae-cli run "Debug authentication" --trajectory-file debug_session.json
# Force patch generation
trae-cli run "Update API endpoints" --must-patch
# Interactive mode with custom settings
trae-cli interactive --provider openai --model gpt-4o --max-steps 30
Docker Mode Commands
Preparation
Important: You need to make sure Docker is configured in your environment.
Usage
# Specify a Docker image to run the task in a new container
trae-cli run "Add tests for utils module" --docker-image python:3.11
# Specify a Docker image to run the task in a new container and mount the directory
trae-cli run "write a script to print helloworld" --docker-image python:3.12 --working-dir test_workdir/
# Attach to an existing Docker container by ID (`--working-dir` is invalid with `--docker-container-id`)
trae-cli run "Update API endpoints" --docker-container-id 91998a56056c
# Specify an absolute path to a Dockerfile to build an environment
trae-cli run "Debug authentication" --dockerfile-path test_workspace/Dockerfile
# Specify a path to a local Docker image file (tar archive) to load
trae-cli run "Fix the bug in main.py" --docker-image-file test_workspace/trae_agent_custom.tar
# Remove the Docker container after finishing the task (keep default)
trae-cli run "Add tests for utils module" --docker-image python:3.11 --docker-keep false
Interactive Mode Commands
In interactive mode, you can use:
Type any task description to execute it
status - Show agent information
help - Show available commands
clear - Clear the screen
exit or quit - End the session
🛠️ Advanced Features
Available Tools
Trae Agent provides a comprehensive toolkit for software engineering tasks including file editing, bash execution, structured thinking, and task completion. For detailed information about all available tools and their capabilities, see docs/tools.md.
Trajectory Recording
Trae Agent automatically records detailed execution trajectories for debugging and analysis:
# Auto-generated trajectory file
trae-cli run "Debug the authentication module"
# Saves to: trajectories/trajectory_YYYYMMDD_HHMMSS.json
# Custom trajectory file
trae-cli run "Optimize database queries" --trajectory-file optimization_debug.json
Trajectory files contain LLM interactions, agent steps, tool usage, and execution metadata. For more details, see docs/TRAJECTORY_RECORDING.md.
🔧 Development
Contributing
For contribution guidelines, please refer to CONTRIBUTING.md.
Troubleshooting
Import Errors:
PYTHONPATH=. trae-cli run "your task"
API Key Issues:
# Verify API keys
echo $OPENAI_API_KEY
trae-cli show-config
Command Not Found:
uv run trae-cli run "your task"
Permission Errors:
chmod +x /path/to/your/project
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
✍️ Citation
@article{traeresearchteam2025traeagent,
title={Trae Agent: An LLM-based Agent for Software Engineering with Test-time Scaling},
author={Trae Research Team and Pengfei Gao and Zhao Tian and Xiangxin Meng and Xinchen Wang and Ruida Hu and Yuanan Xiao and Yizhou Liu and Zhao Zhang and Junjie Chen and Cuiyun Gao and Yun Lin and Yingfei Xiong and Chao Peng and Xia Liu},
year={2025},
eprint={2507.23370},
archivePrefix={arXiv},
primaryClass={cs.SE},
url={https://arxiv.org/abs/2507.23370},
}
🙏 Acknowledgments
We thank Anthropic for building the anthropic-quickstart project that served as a valuable reference for the tool ecosystem.
Có — bytedance/trae-agent phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/bytedance/trae-agent.
bytedance/trae-agent là gì?
bytedance/trae-agent (bytedance/trae-agent) là dự án Python trên GitHub. Theo mô tả gốc: Trae Agent is an LLM-based agent for general purpose software engineering tasks.
bytedance/trae-agent so với các dự án AI Tools khác thế nào?
bytedance/trae-agent được TopGit xếp vào nhóm AI Tools, với 12.1k sao GitHub và viết bằng Python. Xem trang chủ đề AI Tools trên TopGit để so sánh với các dự án tương tự theo số sao và mức độ hoạt động.
Cùng nhóm AI Tools còn repo nào?
bytedance/trae-agent thuộc nhóm AI Tools trên TopGit, cùng 3 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
Đọc thêm về bytedance/trae-agent ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/bytedance/trae-agent là nguồn chính thức.
Vì sao bytedance/trae-agent được xếp vào nhóm AI Tools?
TopGit xếp bytedance/trae-agent vào nhóm AI Tools dựa trên GitHub topics và mô tả của repo (gắn thẻ: "agent", "llm", "software-engineering"). Việc phân loại dựa trên metadata thật của repo, không phải đoán theo cảm tính biên tập.
Đọc đầy đủ README ở tab phía trên.
Muốn nghe thêm một ý kiến về trae-agent?
Hỏi một AI đọc được trang này — một cú bấm là có ngay nhận định về trae-agent.