You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/core/prompts/system.hai.v1.ts
+78-13Lines changed: 78 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -209,7 +209,6 @@ Usage:
209
209
<uri>resource URI here</uri>
210
210
</access_mcp_resource>
211
211
212
-
213
212
## ask_followup_question
214
213
Description: Ask the user a question to gather additional information needed to complete the task. This tool should be used when you encounter ambiguities, need clarification, or require more details to proceed effectively.
215
214
Parameters:
@@ -233,6 +232,21 @@ Your final result description here
233
232
<command>Command to demonstrate result (optional)</command>
234
233
</attempt_completion>
235
234
235
+
## new_task
236
+
Description: Request to create a new task with preloaded context covering the conversation with the user up to this point and key information for continuing with the new task. With this tool, you will create a detailed summary of the conversation.
237
+
Among other important areas of focus, this summary should be thorough in capturing technical details, code patterns, and architectural decisions that would be essential for continuing with the new task.
238
+
Parameters:
239
+
- Context: (required) The context to preload the new task with. If applicable based on the current task, this should include:
240
+
1. Current Work: Describe in detail what was being worked on prior to this request to create a new task. Pay special attention to the more recent messages / conversation.
241
+
2. Key Technical Concepts: List all important technical concepts, technologies, coding conventions, and frameworks discussed, which might be relevant for the new task.
242
+
3. Relevant Files and Code: If applicable, enumerate specific files and code sections examined, modified, or created for the task continuation. Pay special attention to the most recent messages and changes.
243
+
4. Problem Solving: Document problems solved thus far and any ongoing troubleshooting efforts.
244
+
5. Pending Tasks and Next Steps: Outline all pending tasks that you have explicitly been asked to work on, as well as list the next steps you will take for all outstanding work, if applicable. Include code snippets where they add clarity. For any next steps, include direct quotes from the most recent conversation showing exactly what task you were working on and where you left off. It's important to be detailed here.
245
+
Usage:
246
+
<new_task>
247
+
<context>context to preload new task with</context>
248
+
</new_task>
249
+
236
250
## plan_mode_respond
237
251
Description: Use this tool in PLAN MODE to respond to user inquiries about planning a task. If not in PLAN MODE (as indicated by environment_details), do not use this tool.
238
252
Parameters:
@@ -242,6 +256,13 @@ Usage:
242
256
<response>Your response here</response>
243
257
</plan_mode_respond>
244
258
259
+
## load_mcp_documentation
260
+
Description: Load documentation about creating MCP servers. This tool should be used when the user requests to create or install an MCP server. The documentation provides detailed information about the MCP server creation process, including setup instructions, best practices, and examples.
261
+
Parameters: None
262
+
Usage:
263
+
<load_mcp_documentation>
264
+
</load_mcp_documentation>
265
+
245
266
# Tool Use Examples
246
267
247
268
## Example 1: Requesting to execute a command
@@ -273,7 +294,38 @@ Usage:
273
294
</content>
274
295
</write_to_file>
275
296
276
-
## Example 3: Requesting to make targeted edits to a file
297
+
## Example 3: Creating a new task
298
+
299
+
<new_task>
300
+
<context>
301
+
1. Current Work:
302
+
[Detailed description]
303
+
304
+
2. Key Technical Concepts:
305
+
- [Concept 1]
306
+
- [Concept 2]
307
+
- [...]
308
+
309
+
3. Relevant Files and Code:
310
+
- [File Name 1]
311
+
- [Summary of why this file is important]
312
+
- [Summary of the changes made to this file, if any]
313
+
- [Important Code Snippet]
314
+
- [File Name 2]
315
+
- [Important Code Snippet]
316
+
- [...]
317
+
318
+
4. Problem Solving:
319
+
[Detailed description]
320
+
321
+
5. Pending Tasks and Next Steps:
322
+
- [Task 1 details & next steps]
323
+
- [Task 2 details & next steps]
324
+
- [...]
325
+
</context>
326
+
</new_task>
327
+
328
+
## Example 4: Requesting to make targeted edits to a file
277
329
278
330
<replace_in_file>
279
331
<path>src/components/App.tsx</path>
@@ -309,7 +361,7 @@ return (
309
361
</replace_in_file>
310
362
311
363
312
-
## Example 4: Requesting to use an MCP tool
364
+
## Example 5: Requesting to use an MCP tool
313
365
314
366
<use_mcp_tool>
315
367
<server_name>weather-server</server_name>
@@ -322,13 +374,6 @@ return (
322
374
</arguments>
323
375
</use_mcp_tool>
324
376
325
-
## Example 5: Requesting to access an MCP resource
326
-
327
-
<access_mcp_resource>
328
-
<server_name>weather-server</server_name>
329
-
<uri>weather://san-francisco/current</uri>
330
-
</access_mcp_resource>
331
-
332
377
## Example 6: Another example of using an MCP tool (where the server name is a unique identifier such as a URL)
Copy file name to clipboardExpand all lines: src/core/prompts/system.hai.v2.ts
+78-13Lines changed: 78 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -199,7 +199,6 @@ Usage:
199
199
: ""
200
200
}
201
201
202
-
203
202
## use_mcp_tool
204
203
Description: Request to use a tool provided by a connected MCP server. Each MCP server can provide multiple tools with different capabilities. Tools have defined input schemas that specify required and optional parameters.
205
204
Parameters:
@@ -252,6 +251,21 @@ Your final result description here
252
251
<command>Command to demonstrate result (optional)</command>
253
252
</attempt_completion>
254
253
254
+
## new_task
255
+
Description: Request to create a new task with preloaded context covering the conversation with the user up to this point and key information for continuing with the new task. With this tool, you will create a detailed summary of the conversation.
256
+
Among other important areas of focus, this summary should be thorough in capturing technical details, code patterns, and architectural decisions that would be essential for continuing with the new task.
257
+
Parameters:
258
+
- Context: (required) The context to preload the new task with. If applicable based on the current task, this should include:
259
+
1. Current Work: Describe in detail what was being worked on prior to this request to create a new task. Pay special attention to the more recent messages / conversation.
260
+
2. Key Technical Concepts: List all important technical concepts, technologies, coding conventions, and frameworks discussed, which might be relevant for the new task.
261
+
3. Relevant Files and Code: If applicable, enumerate specific files and code sections examined, modified, or created for the task continuation. Pay special attention to the most recent messages and changes.
262
+
4. Problem Solving: Document problems solved thus far and any ongoing troubleshooting efforts.
263
+
5. Pending Tasks and Next Steps: Outline all pending tasks that you have explicitly been asked to work on, as well as list the next steps you will take for all outstanding work, if applicable. Include code snippets where they add clarity. For any next steps, include direct quotes from the most recent conversation showing exactly what task you were working on and where you left off. It's important to be detailed here.
264
+
Usage:
265
+
<new_task>
266
+
<context>context to preload new task with</context>
267
+
</new_task>
268
+
255
269
## plan_mode_respond
256
270
Description: Respond to the user's inquiry in an effort to plan a solution to the user's task. This tool should be used when you need to provide a response to a question or statement from the user about how you plan to accomplish the task. This tool is only available in PLAN MODE. The environment_details will specify the current mode, if it is not PLAN MODE then you should not use this tool. Depending on the user's message, you may ask questions to get clarification about the user's request, architect a solution to the task, and to brainstorm ideas with the user. For example, if the user's task is to create a website, you may start by asking some clarifying questions, then present a detailed plan for how you will accomplish the task given the context, and perhaps engage in a back and forth to finalize the details before the user switches you to ACT MODE to implement the solution.
257
271
Parameters:
@@ -261,6 +275,13 @@ Usage:
261
275
<response>Your response here</response>
262
276
</plan_mode_respond>
263
277
278
+
## load_mcp_documentation
279
+
Description: Load documentation about creating MCP servers. This tool should be used when the user requests to create or install an MCP server. The documentation provides detailed information about the MCP server creation process, including setup instructions, best practices, and examples.
280
+
Parameters: None
281
+
Usage:
282
+
<load_mcp_documentation>
283
+
</load_mcp_documentation>
284
+
264
285
# Tool Use Examples
265
286
266
287
## Example 1: Requesting to execute a command
@@ -292,7 +313,38 @@ Usage:
292
313
</content>
293
314
</write_to_file>
294
315
295
-
## Example 3: Requesting to make targeted edits to a file
316
+
## Example 3: Creating a new task
317
+
318
+
<new_task>
319
+
<context>
320
+
1. Current Work:
321
+
[Detailed description]
322
+
323
+
2. Key Technical Concepts:
324
+
- [Concept 1]
325
+
- [Concept 2]
326
+
- [...]
327
+
328
+
3. Relevant Files and Code:
329
+
- [File Name 1]
330
+
- [Summary of why this file is important]
331
+
- [Summary of the changes made to this file, if any]
332
+
- [Important Code Snippet]
333
+
- [File Name 2]
334
+
- [Important Code Snippet]
335
+
- [...]
336
+
337
+
4. Problem Solving:
338
+
[Detailed description]
339
+
340
+
5. Pending Tasks and Next Steps:
341
+
- [Task 1 details & next steps]
342
+
- [Task 2 details & next steps]
343
+
- [...]
344
+
</context>
345
+
</new_task>
346
+
347
+
## Example 4: Requesting to make targeted edits to a file
296
348
297
349
<replace_in_file>
298
350
<path>src/components/App.tsx</path>
@@ -327,7 +379,7 @@ return (
327
379
</diff>
328
380
</replace_in_file>
329
381
330
-
## Example 4: Requesting to use an MCP tool
382
+
## Example 5: Requesting to use an MCP tool
331
383
332
384
<use_mcp_tool>
333
385
<server_name>weather-server</server_name>
@@ -340,13 +392,6 @@ return (
340
392
</arguments>
341
393
</use_mcp_tool>
342
394
343
-
## Example 5: Requesting to access an MCP resource
344
-
345
-
<access_mcp_resource>
346
-
<server_name>weather-server</server_name>
347
-
<uri>weather://san-francisco/current</uri>
348
-
</access_mcp_resource>
349
-
350
395
## Example 6: Another example of using an MCP tool (where the server name is a unique identifier such as a URL)
0 commit comments