Skip to content

Commit 5605295

Browse files
committed
tune sys prompt
1 parent f2da1f8 commit 5605295

File tree

1 file changed

+20
-30
lines changed

1 file changed

+20
-30
lines changed

src/core/prompts/tools/attempt-completion.ts

Lines changed: 20 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ Parameters:
99
- command: (optional) A CLI command to execute to show a live demo of the result to the user. For example, use \`open index.html\` to display a created html website, or \`open localhost:3000\` to display a locally running development server. But DO NOT use commands like \`echo\` or \`cat\` that merely print text. This command should be valid for the current operating system. Ensure the command is properly formatted and does not contain any harmful instructions.${
1010
experiments?.["prompt_suggest"]
1111
? `
12-
- values: (optional) A list of suggested prompt/task/question for user as XML elements. The order of suggestion is important, the order of suggestion is the same with the order that show to user.. Each suggested can have these elements:
13-
* suggest: A suggestion to display to the user. Each suggestion must be provided in its own <suggest> tag. Each suggestion can be multiple line.`
12+
- values: (optional) A list of suggested tasks in the format "create new task for [task description] by using new_task tool". Each suggestion must be provided in its own <suggest> tag. The order of suggestions is important as they will be shown to the user in the same order.`
1413
: ``
1514
}
1615
Usage:
@@ -22,10 +21,10 @@ Your final result description here
2221
? `
2322
<values>
2423
<suggest>
25-
- Suggested prompt or task 1
24+
- Suggested new task 1
2625
</suggest>
2726
<suggest>
28-
- Suggested prompt or task 2
27+
- Suggested new task 2
2928
</suggest>
3029
</values>`
3130
: ``
@@ -43,50 +42,44 @@ I've updated the CSS
4342
experiments?.["prompt_suggest"]
4443
? `
4544
46-
Example: Completion with suggestions after implementing a feature
45+
Example: Completion with new task suggestions
4746
<attempt_completion>
4847
<result>
49-
I've implemented the user authentication feature with email and password login
48+
I've implemented the user authentication feature
5049
</result>
5150
<values>
5251
<suggest>
53-
- Add unit tests for the authentication service
52+
- create new task for authentication service tests by using new_task tool
5453
</suggest>
5554
<suggest>
56-
- Implement password reset functionality
55+
- create new task for password reset functionality by using new_task tool
5756
</suggest>
5857
<suggest>
59-
- Add social login providers (Google, GitHub)
60-
</suggest>
61-
<suggest>
62-
- Update API documentation with auth endpoints
58+
- create new task for social login integration by using new_task tool
6359
</suggest>
6460
</values>
6561
<command>npm run dev</command>
6662
</attempt_completion>
6763
68-
Example: Completion with suggestions after fixing a bug
64+
Example: Completion with new task suggestions
6965
<attempt_completion>
7066
<result>
71-
I've fixed the memory leak in the WebSocket connection handling
67+
I've fixed the memory leak
7268
</result>
7369
<values>
7470
<suggest>
75-
- Add monitoring for WebSocket connection counts
76-
</suggest>
77-
<suggest>
78-
- Write regression tests to prevent future leaks
71+
- create new task for performance monitoring system by using new_task tool
7972
</suggest>
8073
<suggest>
81-
- Review other WebSocket usage for similar issues
74+
- create new task for regression test suite by using new_task tool
8275
</suggest>
8376
<suggest>
84-
- Document the fix in CHANGELOG.md
77+
- create new task for error tracking by using new_task tool
8578
</suggest>
8679
</values>
8780
</attempt_completion>
8881
89-
Example: Completion with task split suggestions
82+
Example: Completion with new task suggestions
9083
<attempt_completion>
9184
<result>
9285
I've completed the initial database schema design
@@ -107,26 +100,23 @@ I've completed the initial database schema design
107100
</values>
108101
</attempt_completion>
109102
110-
Example: Completion with documentation suggestions
103+
Example: Completion with new task suggestions
111104
<attempt_completion>
112105
<result>
113-
I've created the API endpoints for the user management system
106+
I've created the API endpoints
114107
</result>
115108
<values>
116109
<suggest>
117-
- Create OpenAPI/Swagger documentation
110+
- create new task for API documentation by using new_task tool
118111
</suggest>
119112
<suggest>
120-
- Write integration tests for all endpoints
113+
- create new task for integration test suite by using new_task tool
121114
</suggest>
122115
<suggest>
123-
- Add rate limiting and security headers
124-
</suggest>
125-
<suggest>
126-
- Split into new task using new_task: Create user management API guide
116+
- create new task for security features by using new_task tool
127117
</suggest>
128118
</values>
129-
<command>npm run docs</command>
119+
<command>npm run dev</command>
130120
</attempt_completion>`
131121
: ``
132122
}`

0 commit comments

Comments
 (0)