AI Code Generation

Agents are your programming assistants designed for different development tasks. TRAE IDE provides built-in agents. You can create custom agents by configuring prompts and toolsets, enabling them to assist you more efficiently in completing complex tasks.

Capabilities of Agents

Autonomous Operation

Independently explore your codebase, identify relevant files, and make necessary code changes.

Full Tool Access

Utilize all available tools for searching, editing, creating files, and running terminal commands.

Contextual Understanding

Develop a comprehensive understanding of your project's structure and dependencies.

Multi-step Planning

Break down complex tasks into executable steps and handle them sequentially.

Workflow of Agents

1

Requirement Analysis

Gain a deep understanding of the goals and the context of the codebase, clarifying key requirements.

2

Code Research

Search the codebase, documentation, and online resources to locate relevant files and analyze existing implementation logic.

3

Solution Design

Break down the steps based on the analysis results and dynamically optimize the modification planning.

4

Implementation of Changes

Execute necessary code changes throughout the codebase as planned, which may involve:

  • Recommendations for new dependency libraries
  • Terminal commands to be executed
  • Guidance for manual operation outside of the TRAE IDE client
5

Delivery and Acceptance

Transfer control to you after validation is complete and summarize all modifications made.

Built-in Agents

TRAE IDE provides the following built-in agents:

Builder

Builder can help you develop a complete project from scratch. Based on your requests, Builder utilizes various tools when responding. These tools include those for analyzing code files, editing code files, running commands, and more, making the responses more precise and effective.

Builder with MCP

On the basis of Builder, all MCP servers you set up will be automatically added to Builder with MCP and this is not editable.

Getting Started with Agents

To make the most of TRAE's AI agents, start by clearly defining your development task or goal. The agents work best when provided with specific requirements and context about your project. They can handle everything from creating new features to refactoring existing code and setting up project dependencies.