Skip to content

Commit 340365c

Browse files
committed
Update tools test
1 parent ce51378 commit 340365c

File tree

1 file changed

+62
-12
lines changed

1 file changed

+62
-12
lines changed

backend/src/__tests__/__snapshots__/tools.test.ts.snap

Lines changed: 62 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,56 @@ Example:
228228
4. Add tests for new module</thought>
229229
</think_deeply>
230230
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+
231281
### browser_logs
232282
233283
In a headless browser, navigate to a web page and get the console logs after page load.
@@ -737,7 +787,7 @@ Params:
737787
Use when:
738788
- User explicitly requests a detailed plan.
739789
- 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.
741791
742792
Don't include:
743793
- Goals, timelines, benefits, next steps.
@@ -750,7 +800,7 @@ For a technical plan, act as an expert architect engineer and provide direction
750800
- Just show the changes needed.
751801
752802
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.
754804
- Do not waste time on much background information, focus on the exact steps of the implementation.
755805
- Do not wrap the path content in markdown code blocks, e.g. \`\`\`.
756806
@@ -762,7 +812,7 @@ Do not include any of the following sections in the plan:
762812
763813
After creating than plan, you should end turn to let the user review the plan.
764814
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.
766816
767817
Examples:
768818
<create_plan>
@@ -1285,7 +1335,7 @@ Params:
12851335
Use when:
12861336
- User explicitly requests a detailed plan.
12871337
- 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.
12891339
12901340
Don't include:
12911341
- Goals, timelines, benefits, next steps.
@@ -1298,7 +1348,7 @@ For a technical plan, act as an expert architect engineer and provide direction
12981348
- Just show the changes needed.
12991349
13001350
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.
13021352
- Do not waste time on much background information, focus on the exact steps of the implementation.
13031353
- Do not wrap the path content in markdown code blocks, e.g. \`\`\`.
13041354
@@ -1310,7 +1360,7 @@ Do not include any of the following sections in the plan:
13101360
13111361
After creating than plan, you should end turn to let the user review the plan.
13121362
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.
13141364
13151365
Examples:
13161366
<create_plan>
@@ -1833,7 +1883,7 @@ Params:
18331883
Use when:
18341884
- User explicitly requests a detailed plan.
18351885
- 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.
18371887
18381888
Don't include:
18391889
- Goals, timelines, benefits, next steps.
@@ -1846,7 +1896,7 @@ For a technical plan, act as an expert architect engineer and provide direction
18461896
- Just show the changes needed.
18471897
18481898
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.
18501900
- Do not waste time on much background information, focus on the exact steps of the implementation.
18511901
- Do not wrap the path content in markdown code blocks, e.g. \`\`\`.
18521902
@@ -1858,7 +1908,7 @@ Do not include any of the following sections in the plan:
18581908
18591909
After creating than plan, you should end turn to let the user review the plan.
18601910
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.
18621912
18631913
Examples:
18641914
<create_plan>
@@ -2381,7 +2431,7 @@ Params:
23812431
Use when:
23822432
- User explicitly requests a detailed plan.
23832433
- 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.
23852435
23862436
Don't include:
23872437
- Goals, timelines, benefits, next steps.
@@ -2394,7 +2444,7 @@ For a technical plan, act as an expert architect engineer and provide direction
23942444
- Just show the changes needed.
23952445
23962446
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.
23982448
- Do not waste time on much background information, focus on the exact steps of the implementation.
23992449
- Do not wrap the path content in markdown code blocks, e.g. \`\`\`.
24002450
@@ -2406,7 +2456,7 @@ Do not include any of the following sections in the plan:
24062456
24072457
After creating than plan, you should end turn to let the user review the plan.
24082458
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.
24102460
24112461
Examples:
24122462
<create_plan>

0 commit comments

Comments
 (0)