Learn Agentic Patterns
CoursesInterviewSchoolVideosAI agent videosAI now
Learn Agentic Patterns

Learn agentic AI, then get interviewed on it. A free course, four job paths, a daily broken agent, and the interview.

learnagenticpatterns.com

Navigation

HomeThe courseThe interviewPatterns (developer track)PM trackBlogCareer GuideAboutSign Up

Connect

Cheat sheet (free PDF)Reskilling guideLinkedIn (Mousa Jawaheri)

© 2026 learnagenticpatterns.com

Privacy PolicyTerms of Service

Based on “Agentic Design Patterns” by Antonio Gullí

> All Patterns

[01]Prompt Chaining[02]Routing[03]Parallelization[04]Reflection[05]Tool Use[06]Planning[07]Multi-Agent Collaboration[08]Memory Management[09]Learning & Adaptation[10]State Management (MCP)[11]Goal Setting & Monitoring[12]Exception Handling & Recovery[13]Human-in-the-Loop[14]Knowledge Retrieval (RAG)[15]Inter-Agent Communication (A2A)[16]Resource-Aware Optimization[17]Reasoning Techniques[18]Guardrails & Safety[19]Evaluation & Monitoring[20]Prioritization[21]Exploration & Discovery[22]Boundary Translation
HomeCurriculumReasoning Techniques
Pattern [17]

Reasoning Techniques

≈ Algorithms / Design Patterns (e.g., Breadth-First Search, Recursion)

[17]

TL;DR

Advanced cognitive architectures like Chain-of-Thought (CoT), Tree-of-Thought (ToT), and ReAct (Reason+Act) that structure the model's internal processing to solve complex problems.

SWE: Algorithms / Design Patterns
Architecture Flow
agentgate
Problem DecomposeragentThought GeneratoragentPath EvaluatoragentBest Path Selectorgate

> Agentic Definition

Advanced cognitive architectures like Chain-of-Thought (CoT), Tree-of-Thought (ToT), and ReAct (Reason+Act) that structure the model's internal processing to solve complex problems.

Before: Coded Algorithm

Coded Algorithm
1def solve(problem):
2 # Explicit implementation of A* search
3 open_set = {start}
4 while open_set:
5 current = lowest_f_score(open_set)
6 if current == goal:
7 return path
8 ...

After: Cognitive Prompting

Cognitive Prompting
1prompt = """
2Solve this problem using a Tree of Thought approach.
31. Generate 3 possible next steps.
42. Evaluate each step for feasibility.
53. Discard impossible paths.
64. Expand the best path.
7Let's think step by step.
8"""
9
10llm.generate(prompt)

Traditional SWE

Algorithms / Design Patterns

≈maps to

Agentic Pattern

Reasoning Techniques

≈How They're Similar

The "method" by which the problem is solved. ToT is essentially a search algorithm (BFS/DFS) applied to the space of "thoughts."

≠Key Divergence

Reasoning is prompted, not coded. You don't write the for loop; you tell the model how to think about the loop. You are programming the cognitive process, not the instruction set.

> Production Considerations

01

More reasoning steps = higher latency. CoT increases token count significantly. Use only when the task complexity demands it.

💡

Key Takeaway

Adapt: Programming is now "Prompt Engineering" at the architectural level. You are defining the algorithms of thought.

BuildBuild a Step-by-Step Reasoner. Create a system that solves complex problems by generating multiple reasoning paths, evaluating each, and selecting the best one.

Frequently Asked Questions

When should I use the Reasoning Techniques pattern?

Advanced cognitive architectures like Chain-of-Thought (CoT), Tree-of-Thought (ToT), and ReAct (Reason+Act) that structure the model's internal processing to solve complex problems.

How does Reasoning Techniques relate to Algorithms / Design Patterns (e.g., Breadth-First Search, Recursion)?

The "method" by which the problem is solved. ToT is essentially a search algorithm (BFS/DFS) applied to the space of "thoughts." However, there is a key divergence: Reasoning is prompted, not coded. You don't write the for loop; you tell the model how to think about the loop. You are programming the cognitive process, not the instruction set.

What are the production trade-offs of Reasoning Techniques?

More reasoning steps = higher latency. CoT increases token count significantly. Use only when the task complexity demands it.

Next Pattern

[18] · Guardrails & Safety