---
topic: ai-technology
author: Crashtech Editorial
published: Nov 15, 2026 · read: 3 min
---

Five Core AI Agentic Patterns: Reflection, Tool Use, ReAct, Planning, and Multi-Agent Systems

Beyond single-turn prompting: an architectural deep dive into agentic loops, self-reflection, tool execution, ReAct reasoning, and multi-agent coordination.

– –

In the early stages of generative AI adoption, engineering efforts centered on zero-shot prompting: crafting the ideal system prompt to elicit a flawless response in a single inference pass. While effective for simple summarization or translation, single-turn prompts degrade rapidly when confronted with complex engineering problems.

A single model forward pass cannot browse the web, catch its own logical fallacies, verify syntax errors via a compiler, or adjust course when an API returns an HTTP 500 error.

The frontier of applied AI has shifted to agentic workflows: computational loops that wrap large language models in control structures, granting them memory, tool execution capabilities, planning mechanisms, and self-correction loops.

+-------------------------------------------------------------+
|             The Five Core Agentic Workflow Patterns         |
+-------------------------------------------------------------+
| 1. Reflection   | Generate -> Critique -> Revise loop       |
| 2. Tool Use     | External APIs, SQL, Code execution, CLI   |
| 3. ReAct        | Thought -> Action -> Observation cycle    |
| 4. Planning     | Goal decomposition & dependency trees     |
| 5. Multi-Agent  | Orchestrators, Specialists, and Reviewers |
+-------------------------------------------------------------+

Pattern 1: Reflection (Self-Correction)

The Reflection pattern introduces an adversarial evaluation loop where the model assesses its own intermediate outputs before surfacing a final answer to the user.

[User Task: Write secure SQL query]
               |
               v
     +-------------------+
     | Generator Agent   | ===> [Draft 1: Select * from users...]
     +-------------------+              |
               ^                        v
               |             +-------------------+
               |             | Evaluator / Critic|
               |             | (Checks for SQLi, |
               |             |  missing indexes) |
               |             +-------------------+
               |                        |
         [Refined Prompt] <=============+ (Flaws Detected: Missing LIMIT clause)
               |
               v
     +-------------------+
     | Refined Version   | ===> [Final Secure SQL Output]
     +-------------------+

How It Operates

  1. Generation: The agent generates an initial draft.
  2. Critique: A secondary prompt (or an independent model instance) inspects the draft against explicit evaluation rubrics: code security, edge case handling, factual citation accuracy, or stylistic guidelines.
  3. Revision: The generator takes the critique and produces an updated version.

Studies show that simply running an automated reflection loop frequently yields greater performance gains on coding benchmarks than switching to a significantly larger model.


Pattern 2: Tool Use (Environmental Action)

LLMs operate in a closed sandbox limited to their pre-trained weights. The Tool Use pattern equips models with structured interfaces to external environments:

[Model Context Window]
          |
          v
+-------------------------------+
| Structured Tool Call Decision |
| "call: search_database(query)"|
+-------------------------------+
          |
          v
+-------------------------------+
| Secure Host Execution Runtime |
| (Runs SQL / HTTP / Shell)     |
+-------------------------------+
          |
          v
+-------------------------------+
| Tool Return Payload (JSON)    |
| Injected back into context    |
+-------------------------------+

The model does not run the code; it emits a strictly typed function call schema (such as JSON Schema). The host application executes the tool, captures the output, and appends it to the model context. This unlocks arithmetic calculations via Python interpreters, live stock lookups via REST APIs, and database mutations via SQL drivers.


Pattern 3: ReAct (Reasoning + Acting)

Formulated by Yao et al. in 2022, the ReAct pattern unifies natural language reasoning with tool actions in an interleaved loop:

+---------------------------------------------------------------+
|                       The ReAct Cycle                         |
+---------------------------------------------------------------+
| Thought:     "I need to find the current CEO of Acme Corp."   |
| Action:      search_web("Acme Corp current CEO 2026")         |
| Observation: "Acme Corp appointed Jane Doe as CEO in Jan."   |
| Thought:     "Now I need to verify when her term began."      |
| Action:      search_web("Jane Doe Acme Corp start date")      |
| Observation: "Her tenure officially started on Jan 15, 2026." |
| Thought:     "I now have all necessary facts to answer."      |
| Final Answer: "Jane Doe became CEO on January 15, 2026."      |
+---------------------------------------------------------------+

By forcing the model to articulate its thought process before executing an action, ReAct achieves three critical benefits:

  1. Focus: The reasoning step anchors the model’s attention on the immediate sub-problem.
  2. Dynamic Error Recovery: If an action returns an unexpected error, the observation step allows the model to deduce why it failed and attempt an alternative action.
  3. Observability: Engineers can inspect the exact thought trail for debugging and safety auditing.

Pattern 4: Planning (Goal Decomposition)

When a task requires multiple interdependent steps, jumping directly into execution produces brittle results. The Planning pattern forces the agent to map the entire problem space upfront:

[Goal: Migrate Database Schema from MySQL to PostgreSQL]
                           |
                           v
              +-------------------------+
              |    Planning Engine      |
              +-------------------------+
                           |
       +-------------------+-------------------+
       |                   |                   |
       v                   v                   v
[Step 1: Dump DDL]   [Step 2: Map Types]  [Step 3: Migrate Data]
  (Sequential)        (Type Conversion)     (Dependent on 1 & 2)
  1. Decomposition: The agent breaks a high-level goal into discrete, manageable subtasks.
  2. Dependency Mapping: Tasks are organized into directed acyclic graphs (DAGs), identifying steps that can run in parallel versus those that require prerequisite outputs.
  3. Execution & Dynamic Replanning: As individual steps complete, the planner updates the execution state. If a step fails, the planner regenerates the remaining graph without restarting from scratch.

Pattern 5: Multi-Agent Systems

The Multi-Agent pattern divides complex domains among specialized autonomous agents, each with dedicated system prompts, distinct tools, and isolated contexts:

                  +-----------------------+
                  |  Supervisor Agent     |
                  | (Routes & Coordinates)|
                  +-----------------------+
                              |
            +-----------------+-----------------+
            |                                   |
            v                                   v
  +--------------------+              +--------------------+
  | Researcher Agent   |              | Software Engineer  |
  | (Web & Docs Tools) |              | (Code Sandbox Tool)|
  +--------------------+              +--------------------+
            \                                   /
             +----------------+----------------+
                              |
                              v
                    +--------------------+
                    | QA / Critic Agent  |
                    | (Executes Tests)   |
                    +--------------------+

Trade-Offs of Multi-Agent Architectures

  • Strengths: High specialization, modular testability, and token context isolation (each agent only sees information relevant to its sub-domain).
  • Failure Modes: Exponential token costs, increased latency, and conversational loops where agents argue indefinitely over minor discrepancies.

Engineering Decision Matrix

+------------------+-----------------------+-----------------------------+
| Pattern          | When to Use           | Primary Overhead / Hazard   |
+------------------+-----------------------+-----------------------------+
| Reflection       | Code generation, copy | Doubles inference latency   |
| Tool Use         | Dynamic data, math    | Sandbox security, API errors|
| ReAct            | Exploratory search    | Context window bloat        |
| Planning         | Multi-step workflows  | Fragile if initial plan bad |
| Multi-Agent      | Heterogeneous systems | High coordination complexity|
+------------------+-----------------------+-----------------------------+

The most powerful enterprise architectures do not pick a single pattern. They combine them: a multi-agent system where an orchestrator uses planning to delegate subtasks to specialist agents running internal ReAct loops and reflection checks.

Advertisement

Frequently asked questions

What is the fundamental difference between standard prompting and an agentic workflow?

Standard prompting is a single-turn feed-forward pass where the model attempts to generate a complete answer in one shot. Agentic workflows use iterative control loops where the model acts, observes environmental feedback, reflects, and refines.

How does the Reflection pattern improve code generation and technical writing?

In the Reflection pattern, an agent first generates a draft, then switches context to act as an adversarial critic evaluating specific criteria (such as edge cases, memory leaks, or formatting rules), and finally rewrites the output based on that self-critique.

What is the ReAct (Reasoning and Acting) framework?

ReAct combines explicit verbal reasoning traces with tool actions. The agent thinks out loud about its intermediate state, decides which tool to call, inspects the tool output, and updates its reasoning path dynamically.

When should an engineering team avoid multi-agent architectures?

Multi-agent systems introduce severe token overhead, latency amplification, and non-deterministic state coordination bugs. For straightforward sequential tasks with clear parameters, a single capable agent with tool access is significantly more reliable.

Sources & further reading

/* Comments */