添加总结

添加总结
This commit is contained in:
tycon
2025-10-14 22:04:51 +08:00
parent c87083d594
commit 60ddd120c4
1067 changed files with 134118 additions and 10742 deletions

View File

@@ -1,6 +1,6 @@
## Builder Prompt.txt
```text
````text
You are a powerful agentic AI coding assistant. You operate exclusively in Trae AI, the world's best IDE.
You are pair programming with a USER to solve their coding task. The task may require creating a new codebase, modifying or debugging an existing codebase, or simply answering a question. Each time the USER sends a message, we may automatically attach some information about their current state, such as what files they have open, where their cursor is, recently viewed files, edit history in their session so far, and more. This information may or may not be relevant to the coding task, it is up for you to decide.
@@ -267,4 +267,5 @@ Follow these guidelines regarding tool calls
- Use clear, descriptive task names
When in doubt, use this tool. Being proactive with task management demonstrates attentiveness and ensures you complete all requirements successfully.
```
````

View File

@@ -1,5 +1,39 @@
## Builder Tools.json
## Trae AI Builder Tools Overview
This document defines the collection of tools available to Trae AI in Builder Mode. These tools provide the AI assistant with full software development capabilities, including task management, codebase search, file operations, command execution, and more.
### Core Tool Categories
1. **Task Management Tools**
- `todo_write`: Create and manage structured task lists to help track progress and organize complex tasks
2. **Codebase Search Tools**
- `search_codebase`: Search for relevant code snippets in the codebase using natural language descriptions
- `search_by_regex`: Fast text-based search based on regular expressions
3. **File Viewing and Operation Tools**
- `view_files`: View up to 3 files simultaneously in batch mode for faster information gathering
- `list_dir`: View files in the specified directory
- `write_to_file`: Write file content with precise control over creation/rewrite behavior
- `update_file`: Edit files with precise modifications using replacement blocks
- `edit_file_fast_apply`: Quickly edit existing files with less than 1000 lines of code
- `rename_file`: Move or rename existing files
- `delete_file`: Delete files (multiple files can be deleted in one tool call)
4. **Command Execution Tools**
- `run_command`: Propose and run commands on behalf of the user
- `check_command_status`: Get the status of a previously executed command
- `stop_command`: Terminate a currently running command
5. **Development Assistance Tools**
- `open_preview`: Display available preview URLs for the user to open in the browser
- `web_search`: Search the internet for external information
- `finish`: The final tool to mark the session as complete when the user's requirements are met
These tools form the foundation of Trae AI's powerful development capabilities, enabling the AI assistant to search codebases, edit files, run commands, and manage complex development tasks.
```json
{
"todo_write": {

View File

@@ -1,6 +1,6 @@
## Chat Prompt.txt
```text
````text
<identity>
You are Trae AI, a powerful agentic AI coding assistant. You are exclusively running within a fantastic agentic IDE, you operate on the revolutionary AI Flow paradigm, enabling you to work both independently and collaboratively with a user.
Now, you are pair programming with the user to solve his/her coding task. The task may require creating a new codebase, modifying or debugging an existing codebase, or simply answering a question.
@@ -113,4 +113,5 @@ IMPORTANT: These reference formats are entirely separate from the web citation f
IMPORTANT: These reference formats are entirely separate from the web citation format ( ). Use the appropriate format for each context:
* Use only for citing web search results with index numbers
```
````

View File

@@ -1,10 +1,18 @@
# Trae (EN)
# Trae
## 内容列表
- [Builder Prompt](./Builder%20Prompt.md)
- [Builder Tools](./Builder%20Tools.md)
- [Chat Prompt](./Chat%20Prompt.md)
- 📄 [Builder Prompt](/en/en/trae/Builder Prompt.md)
- 📄 [Builder Tools](/en/en/trae/Builder Tools.md)
- 📄 [Chat Prompt](/en/en/trae/Chat Prompt.md)
## Summary of Product Tool Documents
This directory contains the core system prompts and toolset designed for the Trae AI programming assistant, which is engineered as a powerful agent operating within the Trae AI IDE. Its functionalities are manifested through two distinct modes:
*完整还原。*
- **Builder Mode**:
- **`Builder Prompt.md`**: This is the core system prompt for the Builder Mode, defining the AI assistant's code of conduct when executing coding tasks such as creating, modifying, and debugging codebases. It emphasizes best practices for code changes, debugging, external API calls, and communication style.
- **`Builder Tools.md`**: This file details all the tools available in Builder Mode in JSON format. These include task management (`todo_write`), codebase search (`search_codebase`), file operations (`write_to_file`, `update_file`), command execution (`run_command`), and web search (`web_search`), providing the AI with comprehensive development capabilities.
- **Chat Mode**:
- **`Chat Prompt.md`**: Defines the AI's behavioral guidelines when engaging in conversations and Q&A with users. It focuses on understanding user intent and deciding whether to answer directly or to use tools. The tool list in this mode is empty, indicating that its primary function is conversation rather than direct manipulation.
In summary, the `trae` directory, through the definition of these two modes, constructs an AI assistant system that can function both as a powerful development agent (Builder Mode) and an intelligent conversational partner (Chat Mode).