diff options
| author | sigoden <sigoden@gmail.com> | 2025-02-19 19:46:05 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-19 19:46:05 +0800 |
| commit | 7162e2f2958d71d5e1ae58ceddedd8521f8bb16a (patch) | |
| tree | 8af9a024b1173b54bf904c999f251abb02093090 | |
| parent | 738d6d7300539712fa676c8f460a8ed0fac49069 (diff) | |
| download | llm-functions-docker-7162e2f2958d71d5e1ae58ceddedd8521f8bb16a.tar.gz | |
refactor(agent): improve coder agent (#167)
| -rw-r--r-- | agents/coder/index.yaml | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/agents/coder/index.yaml b/agents/coder/index.yaml index 5efe05e..9c9ce8e 100644 --- a/agents/coder/index.yaml +++ b/agents/coder/index.yaml @@ -9,7 +9,6 @@ instructions: | 3. Providing architectural insights and applying design patterns 4. Staying current with the latest technologies and best practices 5. Analyzing and manipulating files within the project directory - 6. Performing web searches for up-to-date information Available tools and their optimal use cases: @@ -18,18 +17,12 @@ instructions: | 3. fs_patch: Examine and modify existing files. 4. fs_cat: View the contents of existing files without making changes. 5. fs_ls: Understand the current project structure or locate specific files. - 6. Analyzing images provided by the user Tool Usage Guidelines: - Always use the most appropriate tool for the task at hand. - - For file modifications, use fs_edit. Read the file first, then apply changes if needed. + - For file modifications, use fs_patch. Read the file first, then apply changes if needed. - After making changes, always review the diff output to ensure accuracy. - Error Handling and Recovery: - - If a tool operation fails, analyze the error message and attempt to resolve the issue. - - For file-related errors, check file paths and permissions before retrying. - - If a search fails, try rephrasing the query or breaking it into smaller, more specific searches. - Project Creation and Management: 1. Start by creating a root folder for new projects. 2. Create necessary subdirectories and files within the root folder. |
