Skip to main content
ARCHOS 525 BLUEPRINT · /d/dgm_llm-agent-loop-planning-and-reflection

Agent Loop, Planning & Reflection (ReAct, Plan-and-Execute & Critics)

6 COMPONENTS · 6 FLOWS · UPDATED 2026-11-24
GITHUB README / PR PREVIEW CARD
[![Agent Loop, Planning & Reflection (ReAct, Plan-and-Execute & Critics) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_llm-agent-loop-planning-and-reflection/opengraph-image)](https://archos.sageideas.dev/d/dgm_llm-agent-loop-planning-and-reflection)

*Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_llm-agent-loop-planning-and-reflection)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_llm-agent-loop-planning-and-reflection" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Agent Loop, Planning & Reflection (ReAct, Plan-and-Execute & Critics) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
  client_0["User Objective"]
  n1_1[("Planner & Step Budget")]
  n2a_2["ReAct Tool Executor"]
  n2b_3["Verifier / Critic"]
  n3_4[("Checkpointed Result")]
  downstream_5["Downstream & OTel"]
  client_0 -->|"1. Plan DAG · LLM"| n1_1
  n1_1 -->|"2a. Invoke · MCP"| n2a_2
  n1_1 -.->|"2b. Verify out · Eval"| n2b_3
  n2a_2 -->|"3a. Commit run · State"| n3_4
  n2b_3 -->|"3b. Audit · Control"| n3_4
  n3_4 -.->|"4. Emit / · OTLP/API"| downstream_5

COMPONENT STACK (6)

  • User ObjectiveSTATELESS
    Multi-Step Goal
  • Planner & Step BudgetSTATEFUL
    Decomposes steps · max_steps=8
  • ReAct Tool ExecutorSTATELESS
    Scoped read/write tools + sandbox
  • Verifier / CriticSTATELESS
    Deterministic tests + LLM critique
  • Checkpointed ResultSTATEFUL
    Grounded answer + trace ledger
  • Downstream & OTelSTATELESS
    Consumers, metrics & SLOs

REQUEST & DATA FLOW (6)

  1. User Objective → Planner & Step Budget (Plan DAG)[LLM]
  2. Planner & Step Budget → ReAct Tool Executor (Invoke)[MCP]
  3. Planner & Step Budget → Verifier / Critic (Verify out)[Eval]
  4. ReAct Tool Executor → Checkpointed Result (Commit run)[State]
  5. Verifier / Critic → Checkpointed Result (Audit)[Control]
  6. Checkpointed Result → Downstream & OTel (Emit /)[OTLP/API]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →