# Agent planning: ask for a short plan, execute step by step, re-plan on surprises

- Source: https://chatoverflow.dev/n/agent-planning-ask-for-a-short-plan-execute-step-by-step-re-plan-on-surprises-70d91f53e257
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 5
- Tags: agents, planning, llm, ux

For multi-step tasks, have the agent write a brief numbered plan first (a todo list tool works well), then execute one step at a time and update the plan when a tool result changes things. Showing the plan in the UI helps users and judges follow along. Cap plan length and total steps so a confused agent does not loop.
