Skip to main content

What are planning and reflection in agents, and when do they help?

Agents and tools · Intermediate 3

Short answer

Planning means the agent breaks a goal into steps before acting, then follows or revises the plan. Reflection means it reviews its own output or progress, such as checking a draft against criteria or noticing a failed step, and tries again. Both help on multi-step tasks with clear checks, but they add calls, cost and latency, so measure the gain.

Deeper answer

ReAct interleaves reasoning and actions; plan-and-execute writes a plan first; reflection patterns add a critique step, sometimes with a separate grader model. Modern reasoning models do much of this internally, so explicit loops matter most when you can check against something external, such as running tests or validating a schema.

Cap the number of reflection rounds, because models can talk themselves into worse answers or loop.

What a strong answer covers

Answer it out loud in the mock interview about 1.5 min

Follow-ups to expect

Common mistakes

Learn it

Planning and reflection

Today's AI turns are used

Lessons, roadmaps, videos, practice cards and the code playground stay free with your account, with no limit.