All posts
Technical
  • #agents
  • #architecture

Agent architectures

26.04.2026·12 min

Agent architectures

Agent Systems · 21-c02

26 June 2026 · Architecture reading

Agent architecture is not just attaching tools to a model. It is the control structure that decides when the model reasons, acts, stores state, reads failure, and searches alternatives.

Axis
control flow
Question
which uncertainty?
Lever
feedback + search
Risk
cost + loops

Key terms

  • ReAct
  • Plan-and-Execute
  • Reflexion
  • Tree of Thoughts
  • Graph of Thoughts
  • feedback
  • search

The previous post defined an agent through goal, state, tools, loops, and termination. This one goes one layer lower: how do different arrangements of the same pieces become different architectures?

The names matter less than the failure modes. ReAct, Plan-and-Execute, Reflexion, Tree of Thoughts, and Graph of Thoughts each address a different way an agent can get stuck.

01/08

Architecture

Here, architecture means the decision structure around the model. When does it call a tool? Is the plan made once or updated after each observation? Is failure written into memory? Are multiple solution paths explored?

The same model can behave like an operator in ReAct, a coordinator in Plan-and-Execute, a student in Reflexion, a search process in Tree of Thoughts, or a reasoning graph in Graph of Thoughts.

Architectural axes

feedback

Does environment, test output, or evaluator output affect the next decision?

planning

Does the controller decompose the task and dependencies before execution?

memory

Is failure stored in episodic memory for later attempts?

search

Are multiple reasoning paths explored with lookahead and backtracking?

aggregation

Can different paths merge into a shared intermediate result?

02/08

ReAct

ReAct puts reasoning and acting in the same loop. The model reasons, calls a tool when needed, receives an observation, and updates the next step.

It is useful when the task lacks information, but every tool call adds latency and a new failure surface.

ReAct loop
1

thought

2

action

3

observation

4

updated thought

thought -> action -> observation -> updated thought
03/08

Plan-and-Execute

Plan-and-Execute decomposes the task before execution. Plan-and-Solve does this at prompt level; HuggingGPT turns it into model/tool orchestration.

The strength is reducing missing steps. The risk is that a bad global plan can make the whole system execute the wrong thing cleanly.

Plan and execute
01

request

02

plan

03

dependencies

04

execute

05

synthesize

04/08

Reflexion

Reflexion lets an agent learn from failure without changing model weights. Feedback becomes a natural-language lesson stored in episodic memory.

This works best when the environment can provide evaluable signals such as tests; it is weaker when broad exploration is the bottleneck.

From trial to lesson
trial

deneme

evaluator

başarı/hata sinyali

reflection

doğal dilde ders

episodic memory

kalıcı not

next trial

daha iyi hamle

05/08

Tree of Thoughts

Tree of Thoughts treats reasoning as search over intermediate thoughts instead of one left-to-right completion.

It helps when lookahead and backtracking matter, but it trades tokens and latency for reliability.

Thought tree
start
candidate A
continue
candidate B
prune
candidate C
backtrack
06/08

Graph of Thoughts

Graph of Thoughts relaxes the tree assumption. Different reasoning paths can merge, improve each other, or contribute to a shared intermediate result.

This fits tasks that naturally decompose and recombine, but it requires more controller, scorer, parser, and validation machinery.

Thought graph
thought Athought Bthought C

aggregate / improve / validate

merged thought
Birden fazla yol tek ara sonuca katkı verir.
07/08

Choosing

Do not ask which architecture is best. Ask where the agent breaks: missing information, missing steps, repeated mistakes, premature commitment, or inability to merge parts.

Reliability is not a model property alone; it is a fit between task and control structure.

Architecture choice

Missing information

ReAct

correct with tool observations

Missing steps

Plan-and-Execute

decompose first

Repeated failure

Reflexion

write the lesson to memory

One path is not enough

Tree of Thoughts

search alternatives

Parts must merge

Graph of Thoughts

aggregate and validate

08/08

Sources

Agent architectures mature when control flow, state, feedback, search, and validation are combined in a way that matches the task.

So before choosing an architecture, ask what kind of uncertainty the system faces.