DEV Community

Cover image for How AI Agents Handle Decision-Making and Planning
Agentic Affairs
Agentic Affairs

Posted on Originally published at agentic-affairs.com

How AI Agents Handle Decision-Making and Planning

How AI Agents Handle Decision-Making and Planning

Strip away the demos and an agent is not a genius — it's a loop. Perceive, decide, plan, act, check what happened, and decide again. The agents that survive production are the ones whose loops have limits. The ones that don't are the ones that keep retrying a failed step until the budget is gone.

Here's the uncomfortable part: most agent failures are not reasoning failures. They're decision failures — vague goals, stale state treated as fact, plans with no escape hatch, and no one willing to say "stop."

A plan is just a decision stretched over time

Choosing a restaurant is a decision. Choosing it, checking its hours, and booking the table is a plan. The difference matters because plans break on contact with reality, and the loop is what catches that. When a step returns something unexpected, a good agent goes back to the decision step with new information. A bad one plows on and builds the rest of the plan on a lie.

The three inputs that decide everything

  • Goals and success criteria. A vague goal produces a vague plan. If the agent can't say what "done" looks like, it should ask — or pick the most conservative first step. Guessing is not a strategy.
  • State. What it knows, what it retrieved, and what's still uncertain. Treating a stale document as current is a decision made on false premises — and it will look exactly like a reasoning failure when it blows up.
  • Constraints. Permissions, budgets, safety limits, approval gates. In production, irreversible actions get gated on human approval, and the loop gets bounded by retry policies, loop limits, timeouts, and cost budgets. Those bounds are what decide whether the agent stops because it succeeded, because it gave up, or because it escalated to a human.

ReAct works — on the benchmarks that matter, and only there

The ReAct pattern — interleaving reasoning with tool actions — lifted success rates 34% on ALFWorld and 10% on WebShop. Those are real numbers, but they describe those benchmarks, not your task. The honest takeaway is narrower and more useful: reasoning without acting is guessing, and acting without reasoning is thrashing. The interleaving is the point.

Retry, replan, stop — the judgment that actually matters

This is the distinction most agent frameworks hand-wave past, and it's the one that decides whether your system burns money or ships work:

  • Retry when the failure looks transient — a timeout, a flaky tool.
  • Replan when the failure taught you something new — a missing prerequisite, a wrong assumption.
  • Stop when the plan can't proceed safely, the goal itself is wrong, or the next action is irreversible and unapproved.

Retrying a failed action past a bounded policy, without fixing the cause, is the classic loop failure. Replanning without checking the new plan is better is just thrashing with extra steps. And stopping without explaining why wastes the human's attention — every outcome should be recorded, with the reason visible.

Over-planning is as dangerous as under-planning

Planning every detail of a long task wastes effort the world will invalidate on step one. Improvising through a task that needed structure leaves you debugging at 2am. The right amount of planning is a decision made on the task's shape — short, well-defined, low-risk tasks get a simple rule; long, failure-prone ones earn a real plan. Habit is not a planning strategy.

Go deeper

The full guide walks the whole loop — option generation, plan-execute-replan patterns, and a worked walkthrough of an agent briefing a reviewer without sending anything before the reviewer is confirmed:

How AI Agents Handle Decision-Making and Planning

Originally published on Agentic Affairs (https://agentic-affairs.com)

Top comments (0)