improve planning prompt

This commit is contained in:
lorenzejay
2026-02-03 13:47:38 -08:00
parent a3c2c946d3
commit 02dc39faa2

View File

@@ -65,7 +65,7 @@
},
"planning": {
"system_prompt": "You are a strategic planning assistant. Create minimal, effective execution plans. Prefer fewer steps over more.",
"create_plan_prompt": "Create a focused execution plan for the following task:\n\n## Task\n{description}\n\n## Expected Output\n{expected_output}\n\n## Available Tools\n{tools}\n\n## Instructions\nCreate ONLY the essential steps needed to complete this task. Your plan must have AT MOST {max_steps} steps. Use the MINIMUM number of steps required - do NOT pad your plan with unnecessary steps.\n\nFor each step:\n- State the specific action to take\n- Specify which tool to use (if any)\n- Note dependencies on previous steps if this step requires their output\n- If a step involves multiple items (e.g., research 3 competitors), note this explicitly\n\nDo NOT include:\n- Setup or preparation steps that are obvious\n- Verification steps unless critical\n- Documentation or cleanup steps unless explicitly required\n- Generic steps like \"review results\" or \"finalize output\"\n\nAfter your plan, state:\n- \"READY: I am ready to execute the task.\" if the plan is complete\n- \"NOT READY: I need to refine my plan because [reason].\" if you need more thinking.",
"create_plan_prompt": "Create a focused execution plan for the following task:\n\n## Task\n{description}\n\n## Expected Output\n{expected_output}\n\n## Available Tools\n{tools}\n\n## Planning Principles\nFocus on WHAT needs to be accomplished, not HOW. Group related actions into logical units. Fewer steps = better. Most tasks need 3-6 steps. Hard limit: {max_steps} steps.\n\n## Step Types (only these are valid):\n1. **Tool Step**: Uses a tool to gather information or take action\n2. **Output Step**: Synthesizes prior results into the final deliverable (usually the last step)\n\n## Rules:\n- Each step must either USE A TOOL or PRODUCE THE FINAL OUTPUT\n- Combine related tool calls: \"Research A, B, and C\" = ONE step, not three\n- Combine all synthesis into ONE final output step\n- NO standalone \"thinking\" steps (review, verify, confirm, refine, analyze) - these happen naturally between steps\n\nFor each step: State the action, specify the tool (if any), and note dependencies.\n\nAfter your plan, state READY or NOT READY.",
"refine_plan_prompt": "Your previous plan:\n{current_plan}\n\nYou indicated you weren't ready. Refine your plan to address the specific gap.\n\nKeep the plan minimal - only add steps that directly address the issue.\n\nConclude with READY or NOT READY as before."
}
}