Braj Kishore
JourneyVaultML FoundationsAI PM GuideAgenticNewsWork With MeMentorshipPulseNow
Say hi

Hiring · Building · Investing

Have a system — or a team —that needs to scale?

info@avyxon.ai

Usually replies within a day · track record here

JourneyVaultML FoundationsAI PM GuideAgenticNewsWork With MeMentorshipPulseNow
LinkedInXYouTubeSubstackInstagramThreadsFacebookDiscordGitHubTopmate
© 2026 Braj Kishore · Bengaluru, INThink Big · Start Small · Scale Fast
Agentic engineering
Lesson 05Patterns

Design patterns

Two pattern vocabularies are in circulation and you need both. The five workflow patterns are what you design in. The research catalogue is what you get asked about. Knowing which of the famous papers survived contact with production is the part that is hard to fake.

Say “we chained two fixed steps rather than letting an orchestrator plan, because we already knew the steps”, and an interviewer hears someone who made a choice. Say “we built a multi-agent system”, and they hear someone who followed a tutorial. That is what Anthropic’s five workflow patterns buy you: a shared language for the decision, and a way to name the option you rejected.

Underneath all five sits the same building block, the augmented LLM. That is a model with retrieval, tools and memory, generating its own queries and selecting its own tools.

The research catalogue is a different job. ReAct, Reflexion, Tree of Thoughts and the rest are what gets name-dropped, and roughly half of them no longer describe how you should build. The field has been unusually bad at retiring papers. So being able to say which idea survived and which implementation did not is a genuine differentiator — and it is not a memory test. It is a claim you have to be able to defend.

The lesson runs in that order. First the six shapes and when each one is the right answer. Then the arithmetic that separates the two that look alike. Then the nine papers, with a verdict against each.

Interactive · seven patterns, four axes

The comparison you cannot make one diagram at a time

Read down a column for one pattern, across a row to see how the seven differ on the axis that decides the argument. The cost row is the one to read first. Select any pattern for the detail.

↑ Who decides what happens next
Model calls per run
Fixed — one per step
One path, chosen per input
Fixed — one per section you named
Fixed — N runs of the same task
Not known before the run
One per iteration, until the critique passes
Not known before the run
Cost shape
Linear · priceable before it ships
Linear · the cheap path takes the easy majority
Linear · no planner call, fixed call graph
Linear · × N, and you chose N
Linear in subtasks — count decided at runtime
Linear · × iterations, so bound them
Quadratic · every turn resends the whole array
Use it when
It decomposes cleanly and each intermediate result is verifiable on its own.
Inputs fall into distinct categories that genuinely need different handling.
The subtasks genuinely do not depend on each other’s output.
You want confidence, and there is an objective way to compare two answers.
The subtasks are genuinely not knowable before the run starts.
Clear evaluation criteria exist and iteration measurably improves the result.
The steps cannot be enumerated in advance and the outcome pays for the tokens.
The tell you picked wrong
You are adding conditionals to the chain. You wanted routing.
The classifier is as hard as the task. Then you have two hard problems.
A branch needs to see another branch’s result. The split was wrong.
No objective way to pick the winner. You bought variance, not confidence.
You could have listed the subtasks. Sectioning does the same work for a fixed price.
The evaluator is the same model with no external signal behind it.
You can draw the flowchart. Then draw it, and build that instead.

The five workflow patterns are linear in the number of subtasks. The loop is quadratic, because every turn resends the whole array — which is why a workflow can be priced before it ships and an agent cannot.

The six shapes

Five workflow patterns, plus the agent loop they are alternatives to, drawn on one canvas. Click through them with one question in mind, because it is the question that separates all six: who decides what happens next, you or the model?

One pair repays the most attention. Sectioning and orchestrator-workers read almost identically in words and look nothing alike in pictures. The difference between them is a planner call and an unbounded invoice. Here is the tell that you picked wrong: you reached for orchestrator-workers, and you could have listed the subtasks before the run started. If you could list them, sectioning does the same work for a fixed price.

Interactive · pattern gallery

Five workflow patterns and the loop, on one grid

Every diagram is drawn on the same 300×130 canvas, so the shapes are comparable rather than merely adjacent. Sectioning and orchestrator-workers are the pair worth clicking between — the sentences describing them are nearly identical and the pictures are not.

step 1gatestep 2step 3deterministicevery step is testable on its own
Shape
Prompt chaining

A fixed sequence, with a programmatic gate between steps.

The cheapest pattern and the most underrated. Each call does one thing, so each call can be tested, cached and swapped independently, and the gate between steps means a degraded intermediate result is caught where it happened rather than three steps later. Farmer.Chat, running 1.5 million queries across four countries, is this shape: one model recalls verified facts, a second turns them into an answer without being allowed to change the agronomy.

Use it when

The task decomposes cleanly and each intermediate result is verifiable on its own.

The tell it is wrong

You are adding conditionals to the chain. You wanted routing.

How we built our multi-agent research systemAnthropic

The same task under two patterns

Pattern choice is usually argued in adjectives. Argue it in four numbers instead. How many model calls? How many of those sit on the critical path — the chain you have to wait through end to end? How many input tokens does the run bill? And what does the failure look like when it comes?

The component below computes the first three from two stated constants. It is arithmetic, not a benchmark. The numbers are not measurements, but they move correctly, and that is enough to settle most pattern arguments before anyone writes code.

Interactive · one task, two patterns

What actually changes when you swap the pattern

One task: read a support ticket, check the order, check the policy, decide the remedy, write the reply — in the customer’s language. Move the slider to change how many subtasks that decomposes into, and pick two patterns to run it under.

5
Left column
Right column
Parallelisation — sectioning

The same steps, but you already know they are independent, so they run at once.

Model calls
6
Sequential hops
2
Billed input tokens
11,200

0.70× the other column's input tokens

  • Branches cannot see each other. If one needs another's output, the split was wrong and no aggregator will rescue it.
  • One extra call buys you the whole latency saving — the aggregator is the only sequential hop you added.
  • Cost is fixed per run, so you can quote a price to finance before you ship.
The agent loop

One model, one loop, deciding for itself when it has finished.

Model calls
5
Sequential hops
5
Billed input tokens
16,000

1.43× the other column's input tokens

  • Every turn resends the whole array, so billed input grows with the square of the trajectory, not with its length.
  • The turn count is not known before the run. Cost, latency and blast radius are unbounded until you bound them.
  • Failure is a transcript, not a stack trace. Debugging means reading, and reading does not scale with traffic.

This is arithmetic, not a benchmark. It assumes 1,200 tokens of system prompt and tool schemas resent on every call, and 400 tokens produced per step. Your constants will differ; the shapes will not. The workflow patterns are linear in the number of subtasks. The agent loop is quadratic, because the whole array goes back up on every turn — which is why removing one tool call from a long agent run saves far more than it looks like it should.

The shape to carry out of that: the workflow patterns are linear in the number of subtasks. The agent loop is quadratic, because every turn resends the whole array. So a workflow can be priced before it ships and an agent cannot. And “we will just add a few more turns” is a far more expensive sentence than it sounds.

The research catalogue, with verdicts

Nine papers everybody name-drops. Each entry has two lines. The first is the paper’s own idea, stated plainly; that line is uncontroversial and taken from the paper.

The second line is the verdict, and it carries one of four labels: holds up, partly, superseded, or contested. The verdict beside it is my reading, not a finding. Every paper is linked, so you can form your own and disagree with the source rather than with me.

  1. ReActarXiv 2210.03629 · 2022Partly

    Interleave a reasoning trace with actions so the plan can be revised as observations arrive.

    The concept is now the default and the format is gone. The prompted Thought / Action / Observation scaffold, parsed out of free text with regexes, has been replaced by native tool calling in the API. Name ReAct in an interview without knowing that, and you have dated yourself precisely.

  2. Self-ConsistencyarXiv 2203.11171 · 2022Partly

    Sample a diverse set of reasoning paths rather than the greedy one, then take the most consistent answer.

    Narrowly, and still useful. It needs an extractable single answer to take a majority over. Its real role now is as the baseline that more elaborate multi-agent schemes have to beat at matched compute — and frequently do not.

  3. ToolformerarXiv 2302.04761 · 2023Superseded

    A model can learn for itself, self-supervised, when to call an external tool.

    Absorbed rather than refuted. Frontier models are post-trained for tool use directly, so the technique is now a property of the model you buy rather than something you implement. Read it for the idea, not the method.

  4. ReflexionarXiv 2303.11366 · 2023Contested

    Reflect on failure in language, store the reflection in memory, and retry.

    Read the framing carefully: the method is defined over feedback that may be external or internally simulated. With a real external signal it works and it is evaluator-optimiser. Without one, the result below applies and self-correction often makes reasoning worse.

  5. Generative AgentsarXiv 2304.03442 · 2023Partly

    A memory stream of natural-language experience, synthesised into reflections, retrieved to plan behaviour.

    The architecture is ancestral to every agent-memory design since — observe, reflect, retrieve, plan. My reading is that the specific retrieval scoring it proposed is not what current systems run; the three-stage shape is what survived.

  6. Plan-and-SolvearXiv 2305.04091 · 2023Holds up

    Devise the plan first as an explicit artefact, then execute it.

    Renamed rather than superseded. Plan mode, todo files, plan-and-execute scaffolds — all the same idea with better tooling. The plan being written down somewhere the agent can re-read is what makes it survive a context reset.

  7. Tree of ThoughtsarXiv 2305.10601 · 2023Superseded

    Treat coherent units of text as nodes and search over them, with lookahead and backtracking.

    My reading: largely eaten by reasoning models that do this search internally, and priced out where they have not. Cost is multiplicative in branching factor times depth, which is the first question anyone senior will ask about it.

  8. Multi-agent debatearXiv 2305.14325 · 2023Contested

    Several model instances propose, critique and converge over rounds.

    The paper that launched a thousand crew diagrams, and the one whose result is hardest to reproduce against a matched baseline. Smit et al. found debate systems “in their current form, do not reliably outperform other proposed prompting strategies, such as self-consistency and ensembling”.

  9. VoyagerarXiv 2305.16291 · 2023Holds up

    Store successful behaviours as executable code in an ever-growing skill library, and retrieve them to reuse.

    Aged best of the cohort, and reads as more current now than it did then. See below — the reason is mechanical, not fashionable.

ReAct: Synergizing Reasoning and Acting in Language ModelsarXiv 2210.03629Self-Consistency Improves Chain of Thought Reasoning in Language ModelsarXiv 2203.11171Reflexion: Language Agents with Verbal Reinforcement LearningarXiv 2303.11366Generative Agents: Interactive Simulacra of Human BehaviorarXiv 2304.03442Plan-and-Solve PromptingarXiv 2305.04091Tree of Thoughts: Deliberate Problem Solving with Large Language ModelsarXiv 2305.10601Improving Factuality and Reasoning in Language Models through Multiagent DebatearXiv 2305.14325Voyager: An Open-Ended Embodied Agent with Large Language ModelsarXiv 2305.16291

The negative result worth knowing cold

A model critiquing its own work with no external signal does not reliably improve it. Huang et al. put it plainly: models “struggle to self-correct their responses without external feedback, and at times, their performance even degrades after self-correction”.

Earlier results in this area looked more positive, but they leaned on knowing the right answer, which is how they decided when to stop correcting. Remove the answer key and the gains go with it. So when someone proposes a critic agent, the thing to establish is what tells the critic it is right.

The same caution applies one level up. Multi-agent debate is the most-cited version of “more model calls will fix it”. Smit et al. benchmarked debate strategies against properly matched baselines. Their finding was that the systems “in their current form, do not reliably outperform other proposed prompting strategies, such as self-consistency and ensembling”. They are also notably sensitive to hyperparameters.

Read that result carefully. It is not a refutation of debate. It is a demand for a baseline — and demanding the baseline is your job.

All of that reduces to one question, worth asking out loud in a design review: what is the external signal? If the answer is a test suite, a compiler, a schema validator, or a search that either returns the row or does not, the loop works, and what you have built is evaluator-optimiser. If the answer is “it is another model call”, you are paying twice for the same judgement.

The pattern that aged best, and the mechanism

Voyager stores what worked as executable code in a growing skill library, then retrieves it to reuse. That idea has outlasted every embedding-based memory scheme from the same period, and the reason is mechanical rather than fashionable.

Two mechanisms, specifically. Retrieval is exact rather than fuzzy: you either have the skill or you do not, and there is no similarity threshold to tune. And what comes back runs, so it either works or it throws — which is an external signal you got for free. That is the same test the section above just applied, passed by accident.

That mechanism sits underneath skills, learned procedures, and agents that accumulate their own tooling. My advice, if you are designing agent memory now: start here rather than at a vector store. Add fuzzy retrieval only for the things that genuinely cannot be made executable.

What to actually build, at your size

Two of these five are things a small team should deliberately not build. Both are things small teams build first.

Interactive · calibrate to your stage

What to actually do about this, at your size

Nearly all guidance on this topic is written for one company size and then read by everyone. Pick yours — the list re-sorts, and what you should deliberately not build drops to the bottom.

  • Name the pattern in the design docDo it

    One line: which of the six this is, and which one you rejected and why.

    At this stage · Now it also gives you a vocabulary for reviewing someone else's design without relitigating it from first principles every time.

  • A router in front of the modelDo it

    Classify the input, then send it down the cheapest path that can handle it.

    At this stage · Now built on the actual traffic distribution. This is usually where the largest single cost reduction in the system is available, and it is almost always missing.

  • Evaluator-optimiser with a real external signalDo it

    A generate-critique loop where the critic is a test suite, a compiler, a schema or a verifier.

    At this stage · Worth building the signal now if it is close. The loop is one of the few places where iteration measurably improves the output rather than merely lengthening it.

  • Orchestrator-workersCheap version

    A lead model decomposing the task at runtime and synthesising what the workers return.

    At this stage · Prototype it only against a sectioning baseline you have already shipped. If it does not beat a fixed decomposition on quality, you have bought a planner call and a variable invoice.

  • A critic that is another model callSkip it

    A second call to the same model, prompted to review the first, with no external signal behind it.

    At this stage · Still skip, and now with a cheaper alternative available: spend the same tokens on self-consistency, which at least has an objective way to pick a winner.

1 of 5 deliberately skipped at this stage. Knowing which controls you are choosing not to build, and being able to say why, is a stronger signal than having built all of them.

Two systems, two patterns

Both of these are production systems outside the usual case list. Each is a clean example of one pattern doing exactly the job that pattern is for. Each is also a case where the evaluator underneath the pattern went wrong first, which is the part worth reading twice.

🇧🇷 Brazil

Nubank — evaluator-optimiser, where the evaluator had to be calibrated first

κ 0.00 → 0.745
judge agreement, before → after
+37pp
tNPS, card delivery agent
5
production agents measured

Nubank broke its customer-support agents into five modular parts — instructions, routines, macros, tool specifications and a working-memory scratchpad — and ran development off evals rather than off vibes. The number worth memorising is the calibration one. On their starting rubric, GPT-4.1 and GPT-4.1-mini agreed as judges at κ = 0.00. Two models from the same family, agreeing at exactly chance. After they optimised the judge prompt, agreement rose to κ=0.745 for that pair, 0.895 against GPT-4o, and 0.950 between the two reasoning models.

That is the whole evaluator-optimiser argument in one dataset. A critic is only a signal if it agrees with something outside itself. Agreement is a measurement, not an assumption, and an uncalibrated judge is a random number in a confident voice. The other reason to read this paper is that it publishes the gap in the other direction too. AI transactional NPS lands below expert human agents in every one of the five use cases, by 1.1 to 23.6 percentage points. Card delivery gained 37 points against the prior baseline and was still 10 points behind a human. Both numbers are true, and a serious team reports both.

🇮🇳 India · Kenya · Ethiopia · Nigeria

Farmer.Chat — prompt chaining, and an evaluator that pointed the wrong way

1.5m
queries served
51.8%
F1, tuned vs 37.2% un-tuned
0.81 → 0.76
RAGAS score, moving down

Digital Green’s Farmer.Chatserves smallholder farmers across four countries. The architecture is a two-stage chain, not an agent. One fine-tuned model recalls verified “golden facts” — 110,723 atomic recommendations extracted from expert-reviewed answers. A separate stitching model turns those into a natural reply, and is not permitted to alter the agronomy. Fine-tuning lifted F1 from 37.2% to 51.8%, beat GPT-4’s 37.3% at 0.15× the cost, and human raters preferred the tuned model in 203 of 308 comparisons.

The finding that should change how you run evals is the one they did not need to publish. Two standard off-the-shelf frameworks moved down while expert F1 and human preference moved up: RAGAS from 0.81 to 0.76, FActScore from 0.72 to 0.68. Read that again. Had they trusted the generic evaluator, they would have rejected the better system. It is the Nubank κ lesson arriving from the opposite direction. An evaluator you have not checked against domain judgement is not a signal, and a generic one that disagrees with your experts is telling you about itself, not about your model.

What to remember

  1. 1
    Name the pattern, and name the one you rejected

    Candidates who say which of the five they used, and why not the others, are describing real experience. Describing 'a multi-agent system' without naming a pattern usually means one thing was built and the rest was read about.

  2. 2
    Orchestrator-workers has exactly one defining condition

    The subtasks are not knowable before the run. If you could have listed them, sectioning does the same work for a fixed cost, a fixed call graph and two sequential hops instead of three.

  3. 3
    Ask what the external signal is

    A generate-critique loop with a test suite, a compiler or a verifier behind it works and is evaluator-optimiser. With a second call to the same model behind it, the published result is that reasoning often gets worse.

  4. 4
    Executable memory beat fuzzy memory

    Voyager's skill library aged best of the 2023 cohort because retrieval is exact and the retrieved artefact runs — which means it also tells you whether it still works. Start agent memory there, not at a vector store.

Sources

Every source in this lesson

Primary sources wherever one exists. Where a claim is contested or vendor-reported, the lesson says so at the point it is made.

Paper
  • ReAct: Synergizing Reasoning and Acting in Language ModelsarXiv 2210.03629

    Yao et al., 6 October 2022. Interleave reasoning traces with actions so the plan can be revised as observations arrive. The idea is now the default; the prompted Thought/Action/Observation text format it used has been replaced by native tool calling.

  • Self-Consistency Improves Chain of Thought Reasoning in Language ModelsarXiv 2203.11171

    Wang et al., 21 March 2022. Sample a diverse set of reasoning paths rather than the greedy one, then take the most consistent answer. The reason it still matters is that it is the baseline more elaborate schemes have to beat, and often do not.

  • Reflexion: Language Agents with Verbal Reinforcement LearningarXiv 2303.11366

    Shinn et al., 20 March 2023. Reflect on failure in language, store the reflection, retry. Read the framing carefully: the method is defined over feedback signals that may be external or internally simulated, and which of those you actually have is what decides whether it works for you.

  • Generative Agents: Interactive Simulacra of Human BehaviorarXiv 2304.03442

    Park et al., 7 April 2023. Memory stream → reflection → planning, with memories retrieved dynamically to plan behaviour. Every agent-memory design since is a descendant of this architecture, whatever it calls itself.

  • Plan-and-Solve PromptingarXiv 2305.04091

    Wang et al., 6 May 2023. Devise the plan first, then execute it. Renamed rather than superseded — plan mode, todo files and plan-and-execute scaffolds are all this idea with better tooling around it.

  • Tree of Thoughts: Deliberate Problem Solving with Large Language ModelsarXiv 2305.10601

    Yao et al., 17 May 2023. Explore coherent units of text as nodes in a search, with lookahead and backtracking. Worth knowing for the cost shape as much as the method: branching factor times depth is multiplicative, which is exactly the budget an interviewer will ask you to defend.

  • Improving Factuality and Reasoning in Language Models through Multiagent DebatearXiv 2305.14325

    Du et al., 23 May 2023. Several model instances propose, critique and converge over rounds. The paper that launched a thousand crew diagrams — and the one whose result has been hardest to reproduce against a properly matched baseline.

  • Voyager: An Open-Ended Embodied Agent with Large Language ModelsarXiv 2305.16291

    Wang et al., 25 May 2023. “An ever-growing skill library of executable code for storing and retrieving complex behaviors.” The one idea in the 2023 cohort that reads as more current now than it did then: retrieval is exact, and what comes back runs.

  • Large Language Models Cannot Self-Correct Reasoning YetarXiv 2310.01798

    Huang et al., 3 October 2023 (revised March 2024). Models “struggle to self-correct their responses without external feedback, and at times, their performance even degrades after self-correction”. The single most useful negative result to have read before someone proposes a critic agent.

  • Should we be going MAD? A Look at Multi-Agent Debate Strategies for LLMsarXiv 2311.17371

    Smit et al., 29 November 2023. Multi-agent debate systems “in their current form, do not reliably outperform other proposed prompting strategies, such as self-consistency and ensembling”, and are notably sensitive to hyperparameters. Cite this whenever debate is proposed without a matched-compute baseline.

  • Building Customer Support AI Agents at 100M-User ScaleNubank · arXiv 2606.08867

    Gupta et al., June 2026. Five production agents decomposed into instructions, routines, macros, tool specifications and a working-memory scratchpad. The judge calibration numbers are the reason to read it: κ=0.00 between two models on the starting rubric, κ=0.745 to 0.950 after optimisation.

  • Fine-Tuning and Evaluating Conversational AI for Agricultural AdvisoryDigital Green · arXiv 2603.03294

    Farmer.Chat, 1.5m queries across India, Kenya, Ethiopia and Nigeria. A two-stage chain — a fine-tuned model recalls verified “Golden Facts”, a separate stitching model turns them into an answer — plus the finding that RAGAS and FActScore both moved down while expert F1 and human preference moved up.

Read
  • Building Effective AI AgentsAnthropic

    Erik Schluntz and Barry Zhang, 19 December 2024. The origin of the five workflow patterns and of the augmented LLM as their shared building block — “an LLM enhanced with augmentations such as retrieval, tools, and memory”. If you name a pattern in an interview, this is the vocabulary the interviewer is matching against.

  • How we built our multi-agent research systemAnthropic

    13 June 2025. Orchestrator-workers at production scale, and the price list for it: about 4× the tokens of a chat interaction for an agent, about 15× for a multi-agent system. Also states where it does not fit — domains needing shared context or heavy inter-agent dependency, which includes most coding work.

Lesson 04
The loop, from scratch
Lesson 06
Tools are the product