添加总结

添加总结
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,10 +1,18 @@
# Traycer AI (EN)
# Traycer AI
## 内容列表
- [phase_mode_prompts](./phase_mode_prompts.md)
- [phase_mode_tools](./phase_mode_tools.md)
- [plan_mode_tools](./plan_mode_tools.md)
- 📄 [phase_mode_prompts](/en/en/traycer-ai/phase_mode_prompts.md)
- 📄 [phase_mode_tools](/en/en/traycer-ai/phase_mode_tools.md)
- 📄 [plan_mode_tools](/en/en/traycer-ai/plan_mode_tools.md)
## Summary of Product Tool Documents
This directory defines the core operational logic of the Traycer.AI assistant, which is designed as a technical lead operating within an IDE, capable of breaking down complex coding tasks into high-level phases. Its functionalities are implemented through two distinct modes, each with its dedicated system prompts and toolsets.
*完整还原。*
- **Phase Mode**:
- **`phase_mode_prompts.md`**: Defines the AI's role in this mode—as a technical lead, focusing on breaking down user queries into high-level phases, with read-only access to the codebase.
- **`phase_mode_tools.md`**: Provides the toolset available in this mode, primarily including code exploration (e.g., `read_file`, `grep_search`), code navigation (e.g., `find_references`, `go_to_definition`), and finally the `write_phases` tool for outputting phased plans.
- **Plan Mode**:
- **`plan_mode_tools.md`**: Defines the tools available in Plan Mode. The toolset in this mode is similar to Phase Mode but adds the `think` tool for complex reasoning, and the `agent` and `hand_over_to_approach_agent` tools for creating and handing over tasks to specialized agents, indicating that this mode focuses more on detailed implementation planning and task assignment.
In summary, `traycer-ai`, through the definition of these two modes, constructs a two-tier AI agent system capable of both high-level task decomposition and detailed implementation planning, aiming to systematically solve complex software engineering tasks.

View File

@@ -1,6 +1,6 @@
## phase_mode_prompts.txt
```text
````text
You are `@traycerai` (aka `Traycer.AI`), a large language model based on the state-of-the-art architecture. Never mention that you were created by Anthropic.
<role>
@@ -47,4 +47,5 @@ IMPORTANT: You have the capability to call multiple tools in a single response.
NOTE: You must use one of the provided tools to generate your response. TEXT only response is strictly prohibited.
</important>
```
````

View File

@@ -1,5 +1,37 @@
## phase_mode_tools.json
## Traycer AI Phase Mode Tools Overview
This document defines the set of tools available to Traycer AI in Phase Mode. These tools are primarily used for codebase exploration, file analysis, and task decomposition, helping the AI understand the user's codebase and break down tasks into executable phases.
### Core Tool Categories
1. **File Operation Tools**
- `read_file`: Reads the content of files at specified paths, supporting structured summaries for large files
- `read_partial_file`: Reads specific line ranges from files, improving efficiency for large files
- `list_dir`: Lists directory contents, used for discovery and understanding file structure
2. **Search Tools**
- `file_search`: Fuzzy search based on file paths
- `grep_search`: Fast text-based regex search
- `file_outlines`: Gets a symbol outline for all files in a specified directory
3. **Code Navigation Tools**
- `find_references`: Finds references (usage, mentions, etc.) of functions, methods, classes, etc.
- `go_to_definition`: Jumps to the definition of a symbol
- `go_to_implementations`: Finds implementations of abstract class or function symbols
4. **Analysis and Diagnostic Tools**
- `get_diagnostics`: Retrieves diagnostic information for files, including errors, warnings, and suggestions
- `web_search`: Performs web searches to obtain external knowledge and documentation
5. **Interaction Tools**
- `ask_user_for_clarification`: Asks the user for clarification or input on key design decisions
- `explanation_response`: Provides clear explanations and optional Mermaid diagrams
- `write_phases`: Breaks down coding tasks into independently executable phases
Each tool adheres to strict parameter specifications, ensuring the AI can efficiently explore the codebase, analyze tasks, and generate reasonable phase breakdowns.
```json
{
"read_file": {

View File

@@ -1,5 +1,45 @@
## plan_mode_tools.json
## Traycer AI Plan Mode Tools Overview
This document defines the set of tools available to Traycer AI in Plan Mode. These tools focus on codebase analysis, file operations, and implementation plan formulation, helping the AI deeply understand the codebase and generate detailed implementation plans.
### Core Tool Categories
1. **File Operation Tools**
- `read_file`: Reads the content of files at specified paths, supporting structured summaries for large files
- `read_partial_file`: Reads specific line ranges from files, improving efficiency for large files
- `list_dir`: Lists directory contents, used for discovery and understanding file structure
2. **Search Tools**
- `file_search`: Fuzzy search based on file paths
- `grep_search`: Fast text-based regex search
- `file_outlines`: Gets a symbol outline for all files in a specified directory
3. **Code Navigation Tools**
- `find_references`: Finds references (usage, mentions, etc.) of functions, methods, classes, etc.
- `go_to_definition`: Jumps to the definition of a symbol
- `go_to_implementations`: Finds implementations of abstract class or function symbols
4. **Analysis and Diagnostic Tools**
- `get_diagnostics`: Retrieves diagnostic information for files, including errors, warnings, and suggestions
- `web_search`: Performs web searches to obtain external knowledge and documentation
- `think`: A thinking tool for complex reasoning or brainstorming
5. **Planning Tools**
- `agent`: Creates specialized agents for specific tasks
- `hand_over_to_approach_agent`: Hands over tasks to an approach agent to write high-level approaches
- `explanation_response`: Provides clear explanations and optional Mermaid diagrams
### Differences from Phase Mode
The Plan Mode toolset is similar to Phase Mode but has the following key differences:
1. Added `think` tool for complex reasoning
2. Added `agent` and `hand_over_to_approach_agent` tools for planning and task assignment
3. Stricter parameter requirements for some tools
These tools help Traycer AI in Plan Mode to deeply analyze the codebase, formulate detailed implementation plans, and create specialized agents to execute specific tasks.
```json
{
"list_dir": {