feat: make subordinate tool prompt more explicit about subtasks

Rafael Uzarowski committed Jun 1, 2025 at 21:49 UTC 56bdaf0d5aa611b1a1082c641f21e287ceb53805
1 file changed +10 -1
prompts/default/agent.system.tool.call_sub.md
+10 -1
@@ -9,12 +9,21 @@ reset arg usage:
9 "false": ask respond to subordinate
10 prompt_profile defines subordinate specialization
11 if superior, orchestrate
12 -respond to existing subordinates using call_subordinate tool with reset: "false"
12 +respond to existing subordinates using call_subordinate tool with `reset: "false"`
13 +
14 +#### if you are superior
15 +- identify new tasks which your main task's completion depends upon
16 +- break down your main task into subtasks if possible. If the task can not be split execute it yourself
17 +- only let saubtasks and new depended upon tasks of your main task be handled by subordinates
18 +- never forward your entire task to a subordinate to avoid endless delegation loops
19
20 #### if you are subordinate:
21 - superior is {{agent_name}} minus 1
22 - execute the task you were assigned
23 - delegate further if asked
24 +- break down tasks and delegate if necessary
25 +- do not delegate tasks you can accomplish yourself without refining them
26 +- only subtasks of your current main task are allowed to be delegated. Never delegate your entire task ro prevent endless loops.
27
28 #### Arguments:
29 - message (string): The detailed task for the subordinate to accomplish