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: backend/src/__tests__/__snapshots__/tools.test.ts.snap
+62-12Lines changed: 62 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -228,6 +228,56 @@ Example:
228
228
4. Add tests for new module</thought>
229
229
</think_deeply>
230
230
231
+
### create_plan
232
+
233
+
Generate a detailed markdown plan for complex tasks.
234
+
235
+
Params:
236
+
- \`path\`: (required) The path including the filename of a markdown file that will be overwritten with the plan.
237
+
- \`plan\`: (required) A detailed plan to solve the user's request.
238
+
239
+
Use when:
240
+
- User explicitly requests a detailed plan.
241
+
- Task involves significant architectural or multi-file changes.
242
+
- Use this tool to overwrite a previous plan by using the exact same file name.
243
+
244
+
Don't include:
245
+
- Goals, timelines, benefits, next steps.
246
+
- Background context or extensive explanations.
247
+
248
+
For a technical plan, act as an expert architect engineer and provide direction to your editor engineer.
249
+
- Study the change request and the current code.
250
+
- Describe how to modify the code to complete the request. The editor engineer will rely solely on your instructions, so make them unambiguous and complete.
251
+
- Explain all needed code changes clearly and completely, but concisely.
252
+
- Just show the changes needed.
253
+
254
+
What to include in the plan:
255
+
- Include key snippets of code -- not full files of it. Use psuedo code. For example, include interfaces between modules, function signatures, and other code that is not immediately obvious should be written out explicitly. Function and method bodies could be written out in psuedo code.
256
+
- Do not waste time on much background information, focus on the exact steps of the implementation.
257
+
- Do not wrap the path content in markdown code blocks, e.g. \`\`\`.
258
+
259
+
Do not include any of the following sections in the plan:
260
+
- goals
261
+
- a timeline or schedule
262
+
- benefits/key improvements
263
+
- next steps
264
+
265
+
After creating than plan, you should end turn to let the user review the plan.
266
+
267
+
Important: Use this tool sparingly. Do not use this tool more than once in a conversation, unless in ask mode.
268
+
269
+
Examples:
270
+
<create_plan>
271
+
<path>feature-x-plan.md</path>
272
+
<plan>1. Create module \`auth.ts\` in \`/src/auth/\`.
273
+
\`\`\`ts
274
+
export function authenticate(user: User): boolean {/* pseudo-code logic */}
275
+
\`\`\`
276
+
2. Refactor existing auth logic into this module.
277
+
3. Update imports across codebase.
278
+
4. Write integration tests covering new module logic.</plan>
279
+
</create_plan>
280
+
231
281
### browser_logs
232
282
233
283
In a headless browser, navigate to a web page and get the console logs after page load.
@@ -737,7 +787,7 @@ Params:
737
787
Use when:
738
788
- User explicitly requests a detailed plan.
739
789
- Task involves significant architectural or multi-file changes.
740
-
- Only use this tool to create new plans. Do not modify existing plans using this tool—use the \`write_file\` tool instead for modifications.
790
+
- Use this tool to overwrite a previous plan by using the exact same file name.
741
791
742
792
Don't include:
743
793
- Goals, timelines, benefits, next steps.
@@ -750,7 +800,7 @@ For a technical plan, act as an expert architect engineer and provide direction
750
800
- Just show the changes needed.
751
801
752
802
What to include in the plan:
753
-
- Include code, but not full files of it. Write out key snippets of code and use lots of psuedo code. For example, interfaces between modules, function signatures, and other code that is not immediately obvious should be written out explicitly. Function and method bodies could be written out in psuedo code.
803
+
- Include key snippets of code -- not full files of it. Use psuedo code. For example, include interfaces between modules, function signatures, and other code that is not immediately obvious should be written out explicitly. Function and method bodies could be written out in psuedo code.
754
804
- Do not waste time on much background information, focus on the exact steps of the implementation.
755
805
- Do not wrap the path content in markdown code blocks, e.g. \`\`\`.
756
806
@@ -762,7 +812,7 @@ Do not include any of the following sections in the plan:
762
812
763
813
After creating than plan, you should end turn to let the user review the plan.
764
814
765
-
Important: Use this tool sparingly. Do not use this tool more than once in a conversation, if a plan was already created, or for similar user requests.
815
+
Important: Use this tool sparingly. Do not use this tool more than once in a conversation, unless in ask mode.
766
816
767
817
Examples:
768
818
<create_plan>
@@ -1285,7 +1335,7 @@ Params:
1285
1335
Use when:
1286
1336
- User explicitly requests a detailed plan.
1287
1337
- Task involves significant architectural or multi-file changes.
1288
-
- Only use this tool to create new plans. Do not modify existing plans using this tool—use the \`write_file\` tool instead for modifications.
1338
+
- Use this tool to overwrite a previous plan by using the exact same file name.
1289
1339
1290
1340
Don't include:
1291
1341
- Goals, timelines, benefits, next steps.
@@ -1298,7 +1348,7 @@ For a technical plan, act as an expert architect engineer and provide direction
1298
1348
- Just show the changes needed.
1299
1349
1300
1350
What to include in the plan:
1301
-
- Include code, but not full files of it. Write out key snippets of code and use lots of psuedo code. For example, interfaces between modules, function signatures, and other code that is not immediately obvious should be written out explicitly. Function and method bodies could be written out in psuedo code.
1351
+
- Include key snippets of code -- not full files of it. Use psuedo code. For example, include interfaces between modules, function signatures, and other code that is not immediately obvious should be written out explicitly. Function and method bodies could be written out in psuedo code.
1302
1352
- Do not waste time on much background information, focus on the exact steps of the implementation.
1303
1353
- Do not wrap the path content in markdown code blocks, e.g. \`\`\`.
1304
1354
@@ -1310,7 +1360,7 @@ Do not include any of the following sections in the plan:
1310
1360
1311
1361
After creating than plan, you should end turn to let the user review the plan.
1312
1362
1313
-
Important: Use this tool sparingly. Do not use this tool more than once in a conversation, if a plan was already created, or for similar user requests.
1363
+
Important: Use this tool sparingly. Do not use this tool more than once in a conversation, unless in ask mode.
1314
1364
1315
1365
Examples:
1316
1366
<create_plan>
@@ -1833,7 +1883,7 @@ Params:
1833
1883
Use when:
1834
1884
- User explicitly requests a detailed plan.
1835
1885
- Task involves significant architectural or multi-file changes.
1836
-
- Only use this tool to create new plans. Do not modify existing plans using this tool—use the \`write_file\` tool instead for modifications.
1886
+
- Use this tool to overwrite a previous plan by using the exact same file name.
1837
1887
1838
1888
Don't include:
1839
1889
- Goals, timelines, benefits, next steps.
@@ -1846,7 +1896,7 @@ For a technical plan, act as an expert architect engineer and provide direction
1846
1896
- Just show the changes needed.
1847
1897
1848
1898
What to include in the plan:
1849
-
- Include code, but not full files of it. Write out key snippets of code and use lots of psuedo code. For example, interfaces between modules, function signatures, and other code that is not immediately obvious should be written out explicitly. Function and method bodies could be written out in psuedo code.
1899
+
- Include key snippets of code -- not full files of it. Use psuedo code. For example, include interfaces between modules, function signatures, and other code that is not immediately obvious should be written out explicitly. Function and method bodies could be written out in psuedo code.
1850
1900
- Do not waste time on much background information, focus on the exact steps of the implementation.
1851
1901
- Do not wrap the path content in markdown code blocks, e.g. \`\`\`.
1852
1902
@@ -1858,7 +1908,7 @@ Do not include any of the following sections in the plan:
1858
1908
1859
1909
After creating than plan, you should end turn to let the user review the plan.
1860
1910
1861
-
Important: Use this tool sparingly. Do not use this tool more than once in a conversation, if a plan was already created, or for similar user requests.
1911
+
Important: Use this tool sparingly. Do not use this tool more than once in a conversation, unless in ask mode.
1862
1912
1863
1913
Examples:
1864
1914
<create_plan>
@@ -2381,7 +2431,7 @@ Params:
2381
2431
Use when:
2382
2432
- User explicitly requests a detailed plan.
2383
2433
- Task involves significant architectural or multi-file changes.
2384
-
- Only use this tool to create new plans. Do not modify existing plans using this tool—use the \`write_file\` tool instead for modifications.
2434
+
- Use this tool to overwrite a previous plan by using the exact same file name.
2385
2435
2386
2436
Don't include:
2387
2437
- Goals, timelines, benefits, next steps.
@@ -2394,7 +2444,7 @@ For a technical plan, act as an expert architect engineer and provide direction
2394
2444
- Just show the changes needed.
2395
2445
2396
2446
What to include in the plan:
2397
-
- Include code, but not full files of it. Write out key snippets of code and use lots of psuedo code. For example, interfaces between modules, function signatures, and other code that is not immediately obvious should be written out explicitly. Function and method bodies could be written out in psuedo code.
2447
+
- Include key snippets of code -- not full files of it. Use psuedo code. For example, include interfaces between modules, function signatures, and other code that is not immediately obvious should be written out explicitly. Function and method bodies could be written out in psuedo code.
2398
2448
- Do not waste time on much background information, focus on the exact steps of the implementation.
2399
2449
- Do not wrap the path content in markdown code blocks, e.g. \`\`\`.
2400
2450
@@ -2406,7 +2456,7 @@ Do not include any of the following sections in the plan:
2406
2456
2407
2457
After creating than plan, you should end turn to let the user review the plan.
2408
2458
2409
-
Important: Use this tool sparingly. Do not use this tool more than once in a conversation, if a plan was already created, or for similar user requests.
2459
+
Important: Use this tool sparingly. Do not use this tool more than once in a conversation, unless in ask mode.
0 commit comments