Prompt LibraryEngineering
Single-Prompt to Agent Migration Planning Prompt
Decide whether a task actually needs an agent loop or just a better prompt.
The prompt
Current implementation: one prompt handling {{task}}.
Symptoms driving the change: {{symptoms}}
Before proposing an agent, check: would a longer single prompt, better context, or a two-step pipeline fix this without a loop?
If a loop is genuinely needed (multi-step tool use, unknown number of steps, need to react to intermediate results), design the minimal loop: exit conditions, step budget, and the one tool that unlocks it.
State explicitly if an agent is overkill here.Replace the {{fields}} with your own context and tighten the rules to match your domain.




