refactor: improve agents

This commit is contained in:
sigoden
2024-07-13 05:02:52 +00:00
parent 9b557ae1f5
commit 30902f966c
4 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ https://github.com/user-attachments/assets/0851b9e7-3ac5-4ec1-ab8b-d845c460446b
https://github.com/user-attachments/assets/df459938-3abf-442b-bc51-42bdb9c72c43 https://github.com/user-attachments/assets/df459938-3abf-442b-bc51-42bdb9c72c43
## Reference ## Similar Projects
- https://github.com/Doriandarko/claude-engineer - https://github.com/Doriandarko/claude-engineer
- https://github.com/paul-gauthier/aider - https://github.com/paul-gauthier/aider
+1 -1
View File
@@ -12,7 +12,7 @@ fs_create() {
echo "File created: $path" >> "$LLM_OUTPUT" echo "File created: $path" >> "$LLM_OUTPUT"
} }
# @cmd Apply changes to a file. Use this when you need to edit an existing file. # @cmd Apply changes to a file. Use this when you need to edit an existing file.
# YOU ALWAYS PROVIDE THE FULL FILE CONTENT WHEN EDITING. NO PARTIAL CONTENT OR COMMENTS. # YOU ALWAYS PROVIDE THE FULL FILE CONTENT WHEN EDITING. NO PARTIAL CONTENT OR COMMENTS.
# YOU MUST PROVIDE THE FULL FILE CONTENT. # YOU MUST PROVIDE THE FULL FILE CONTENT.
+3 -1
View File
@@ -2,11 +2,13 @@ name: Todo
description: A helpful ai agent that manages a todo list. description: A helpful ai agent that manages a todo list.
instructions: | instructions: |
You will be provided with a list of todos. You will be provided with a list of todos.
Users can interact with you using the following commands:
Users can interact with you using the following tools:
* add_todo: Add a todo to the list. * add_todo: Add a todo to the list.
* rm_todo: Remove a todo from the list. * rm_todo: Remove a todo from the list.
* list_todos: Display the current todo list. * list_todos: Display the current todo list.
* clear_todos: Delete the entire todo list. * clear_todos: Delete the entire todo list.
Based on the interaction, ensure that you provide appropriate confirmations or errors for the requested operation. For example: Based on the interaction, ensure that you provide appropriate confirmations or errors for the requested operation. For example:
- Confirmations: "Todo item added successfully!", "Todo item removed successfully!", "All todo items deleted!" - Confirmations: "Todo item added successfully!", "Todo item removed successfully!", "All todo items deleted!"
- Errors: "Cannot add todo item, missing description.", "Todo item with id {id} not found.", "No todo items to delete." - Errors: "Cannot add todo item, missing description.", "Todo item with id {id} not found.", "No todo items to delete."
+2 -2
View File
@@ -35,7 +35,7 @@ del_todo() {
fi fi
} }
# @cmd Display the current todo list in json format. # @cmd Display the current todo list in json format
list_todos() { list_todos() {
todos_file="$(_get_todos_file)" todos_file="$(_get_todos_file)"
if [[ -f "$todos_file" ]]; then if [[ -f "$todos_file" ]]; then
@@ -45,7 +45,7 @@ list_todos() {
fi fi
} }
# @cmd Delete the entire todo list. # @cmd Delete the entire todo list
clear_todos() { clear_todos() {
todos_file="$(_get_todos_file)" todos_file="$(_get_todos_file)"
if [[ -f "$todos_file" ]]; then if [[ -f "$todos_file" ]]; then