@easbot/agent 0.2.3 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/txt/context/prompt/anthropic.txt +6 -6
- package/dist/assets/txt/context/template/CODER.txt +4 -4
- package/dist/assets/txt/session/prompt/anthropic.txt +6 -6
- package/dist/assets/txt/tool/bash.txt +2 -2
- package/dist/assets/txt/tool/codebase.txt +26 -30
- package/dist/assets/txt/tool/gateway-channel.txt +31 -73
- package/dist/assets/txt/tool/ls.txt +6 -1
- package/dist/assets/txt/tool/note.txt +18 -15
- package/dist/assets/txt/tool/plan.txt +34 -0
- package/dist/assets/txt/tool/pty_session.txt +60 -52
- package/dist/assets/txt/tool/todo.txt +124 -0
- package/dist/cli.cjs +295 -300
- package/dist/cli.mjs +299 -304
- package/dist/index.cjs +307 -312
- package/dist/index.d.cts +4049 -1530
- package/dist/index.d.ts +4049 -1530
- package/dist/index.mjs +313 -318
- package/package.json +12 -12
- package/dist/assets/txt/tool/plan-enter.txt +0 -14
- package/dist/assets/txt/tool/plan-exit.txt +0 -13
- package/dist/assets/txt/tool/pty.txt +0 -41
- package/dist/assets/txt/tool/todoread.txt +0 -14
- package/dist/assets/txt/tool/todowrite.txt +0 -166
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
Use this tool to create and manage a structured task list for your current coding session. This helps you track progress, organize complex tasks, and demonstrate thoroughness to the user.
|
|
2
|
+
|
|
3
|
+
## Operations
|
|
4
|
+
|
|
5
|
+
This tool supports two operations:
|
|
6
|
+
|
|
7
|
+
### 1. write - Write/Update TODO list
|
|
8
|
+
Use this operation to create, update, or replace the entire TODO list.
|
|
9
|
+
|
|
10
|
+
**Parameters:**
|
|
11
|
+
- `operation`: "write" (required)
|
|
12
|
+
- `todos`: Complete TODO list with all task items (required). Can be either an array JSON string.
|
|
13
|
+
|
|
14
|
+
**When to Use:**
|
|
15
|
+
- Complex multistep tasks - When a task requires 3 or more distinct steps or actions
|
|
16
|
+
- Non-trivial and complex tasks - Tasks that require careful planning or multiple operations
|
|
17
|
+
- User explicitly requests todo list - When the user directly asks you to use the todo list
|
|
18
|
+
- User provides multiple tasks - When users provide a list of things to be done (numbered or comma-separated)
|
|
19
|
+
- After receiving new instructions - Immediately capture user requirements as todos
|
|
20
|
+
- After completing a task - Mark it complete and add any new follow-up tasks
|
|
21
|
+
- When starting a new task - Mark it as in_progress
|
|
22
|
+
|
|
23
|
+
### 2. read - Read TODO list
|
|
24
|
+
Use this operation to read the current TODO list for the session.
|
|
25
|
+
|
|
26
|
+
**Parameters:**
|
|
27
|
+
- `operation`: "read" (required)
|
|
28
|
+
|
|
29
|
+
**When to Use:**
|
|
30
|
+
- At the beginning of conversations to see what's pending
|
|
31
|
+
- Before starting new tasks to prioritize work
|
|
32
|
+
- When the user asks about previous tasks or plans
|
|
33
|
+
- Whenever you're uncertain about what to do next
|
|
34
|
+
- After completing tasks to update your understanding of remaining work
|
|
35
|
+
- After every few messages to ensure you're on track
|
|
36
|
+
|
|
37
|
+
## When NOT to Use This Tool
|
|
38
|
+
|
|
39
|
+
Skip using this tool when:
|
|
40
|
+
1. There is only a single, straightforward task
|
|
41
|
+
2. The task is trivial and tracking it provides no organizational benefit
|
|
42
|
+
3. The task can be completed in less than 3 trivial steps
|
|
43
|
+
4. The task is purely conversational or informational
|
|
44
|
+
|
|
45
|
+
NOTE: You should not use this tool if there is only one trivial task to do. In this case you are better off just doing the task directly.
|
|
46
|
+
|
|
47
|
+
## Examples
|
|
48
|
+
|
|
49
|
+
### Example 1: write operation
|
|
50
|
+
```
|
|
51
|
+
User: I want to add a dark mode toggle to the application settings. Make sure you run the tests and build when you're done!
|
|
52
|
+
Assistant: I'll help add a dark mode toggle to your application settings. Let me create a todo list to track this implementation.
|
|
53
|
+
*Calls todo tool with operation="write" and todos=[
|
|
54
|
+
{ id: "1", content: "Create dark mode toggle component in Settings page", status: "in_progress", priority: "high" },
|
|
55
|
+
{ id: "2", content: "Add dark mode state management (context/store)", status: "pending", priority: "high" },
|
|
56
|
+
{ id: "3", content: "Implement CSS-in-JS styles for dark theme", status: "pending", priority: "medium" },
|
|
57
|
+
{ id: "4", content: "Update existing components to support theme switching", status: "pending", priority: "medium" },
|
|
58
|
+
{ id: "5", content: "Run tests and build process", status: "pending", priority: "high" }
|
|
59
|
+
]*
|
|
60
|
+
Begins working on the first task
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### Example 2: read operation
|
|
64
|
+
```
|
|
65
|
+
User: What tasks do I have pending?
|
|
66
|
+
Assistant: Let me check your TODO list.
|
|
67
|
+
*Calls todo tool with operation="read"*
|
|
68
|
+
Based on your TODO list, you have the following tasks pending:
|
|
69
|
+
1. Create dark mode toggle component in Settings page (in_progress)
|
|
70
|
+
2. Add dark mode state management (pending)
|
|
71
|
+
3. Implement CSS-in-JS styles for dark theme (pending)
|
|
72
|
+
...
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### Example 3: write operation with JSON string format
|
|
76
|
+
```
|
|
77
|
+
User: I need to add some tasks to my todo list
|
|
78
|
+
Assistant: I'll add those tasks to your todo list.
|
|
79
|
+
*Calls todo tool with operation="write" and todos='[{"id":"1","content":"New task 1","status":"pending","priority":"high"},{"id":"2","content":"New task 2","status":"pending","priority":"medium"}]'*
|
|
80
|
+
Tasks have been added to your todo list.
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### Example 4: write operation with array format
|
|
84
|
+
```
|
|
85
|
+
User: Help me rename the function getCwd to getCurrentWorkingDirectory across my project
|
|
86
|
+
Assistant: Let me first search through your codebase to find all occurrences of 'getCwd'.
|
|
87
|
+
*Uses grep or search tools to locate all instances of getCwd in the codebase*
|
|
88
|
+
Assistant: I've found 15 instances of 'getCwd' across 8 different files. Let me create a todo list to track these changes.
|
|
89
|
+
*Calls todo tool with operation="write" and todos=[
|
|
90
|
+
{ id: "1", content: "Rename getCwd to getCurrentWorkingDirectory in src/utils.ts", status: "in_progress", priority: "high" },
|
|
91
|
+
{ id: "2", content: "Rename getCwd to getCurrentWorkingDirectory in src/cli.ts", status: "pending", priority: "high" },
|
|
92
|
+
...
|
|
93
|
+
]*
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
## Task States and Management
|
|
97
|
+
|
|
98
|
+
**Task States:**
|
|
99
|
+
- `pending`: Task not yet started
|
|
100
|
+
- `in_progress`: Currently working on (limit to ONE task at a time)
|
|
101
|
+
- `completed`: Task finished successfully
|
|
102
|
+
- `cancelled`: Task no longer needed
|
|
103
|
+
|
|
104
|
+
**Task Management:**
|
|
105
|
+
- Update task status in real-time as you work
|
|
106
|
+
- Mark tasks complete IMMEDIATELY after finishing (don't batch completions)
|
|
107
|
+
- Only have ONE task in_progress at any time
|
|
108
|
+
- Complete current tasks before starting new ones
|
|
109
|
+
- Cancel tasks that become irrelevant
|
|
110
|
+
|
|
111
|
+
**Task Breakdown:**
|
|
112
|
+
- Create specific, actionable items
|
|
113
|
+
- Break complex tasks into smaller, manageable steps
|
|
114
|
+
- Use clear, descriptive task names
|
|
115
|
+
|
|
116
|
+
## Task Item Structure
|
|
117
|
+
|
|
118
|
+
Each task item should have:
|
|
119
|
+
- `id`: Unique identifier (string or number)
|
|
120
|
+
- `content`: Description of the task (string)
|
|
121
|
+
- `status`: Current state ("pending", "in_progress", "completed", "cancelled")
|
|
122
|
+
- `priority`: Priority level (optional, "high", "medium", "low")
|
|
123
|
+
|
|
124
|
+
When in doubt, use this tool. Being proactive with task management demonstrates attentiveness and ensures you complete all requirements successfully.
|