All Agentic Architectures AI Agent

by FareedKhan-dev• 4.6k•• Scanned•Claim this listing•Request removal
Coding Agentsagentic aiai agentslangchainlanggraphlangsmith

35 production-grade agentic AI architectures (Reflexion, LATS, GraphRAG, MemGPT, Voyager, BrowserAgent, ...) — a Python library and runnable textbook with multi-provider LLM support and a 17-task benchmark leaderboard.

All Agentic Architectures is an open-source ai agent by FareedKhan-dev, written mainly in Jupyter Notebook, with 4,646 GitHub stars and the MIT license. Its code was last updated Jun 22, 2026.

<div align="center"> <br>

Agentic Architectures

Thirty-five production-grade agentic AI patterns. End to end.

A library and a living textbook — real LLM outputs, provider-agnostic, deterministic-picker discipline throughout, and a comparative benchmark leaderboard that ranks every architecture against every relevant task.

<br>

CI Docs PyPI License

<br> <a href="docs/getting-started/quickstart.md"> <img alt="Quickstart" src="https://img.shields.io/badge/Quickstart-→-0a0a0a?style=for-the-badge&labelColor=0a0a0a" /> </a> <a href="docs/index.md"> <img alt="Documentation" src="https://img.shields.io/badge/Documentation-→-262626?style=for-the-badge&labelColor=262626" /> </a> <a href="docs/architectures/index.md"> <img alt="Architectures" src="https://img.shields.io/badge/Architectures-→-404040?style=for-the-badge&labelColor=404040" /> </a> <a href="docs/benchmarks.md"> <img alt="Benchmarks" src="https://img.shields.io/badge/Benchmarks-→-525252?style=for-the-badge&labelColor=525252" /> </a> <a href="https://codespaces.new/FareedKhan-dev/all-agentic-architectures"> <img alt="Open in Codespaces" src="https://img.shields.io/badge/Open_in_Codespaces-→-737373?style=for-the-badge&labelColor=737373" /> </a>

<br><br>

<table> <tr> <td align="center" width="140"><h2><kbd>&nbsp; 35 &nbsp;</kbd></h2><sub>ARCHITECTURES</sub></td> <td align="center" width="140"><h2><kbd>&nbsp; 283 &nbsp;</kbd></h2><sub>PASSING TESTS</sub></td> <td align="center" width="140"><h2><kbd>&nbsp; 17 &nbsp;</kbd></h2><sub>BENCHMARK TASKS</sub></td> <td align="center" width="140"><h2><kbd>&nbsp; 9 &nbsp;</kbd></h2><sub>LLM PROVIDERS</sub></td> <td align="center" width="140"><h2><kbd>&nbsp; 0 &nbsp;</kbd></h2><sub>MOCKED RUNS</sub></td> </tr> </table> <br> </div>

Overview

A single Python library that packages every major agentic AI pattern from the literature as a runnable Architecture class with a uniform contract. Each pattern ships with a fully executed Jupyter notebook whose theory is written against the captured run — not synthetic examples. The library is multi-provider (Nebius, OpenAI, Anthropic, Groq, Ollama, Together, Fireworks, Mistral, Google) and built on top of LangGraph state machines.

The central technical discipline of the repository is the deterministic-picker pattern — every LLM-as-Scorer surface has the LLM commit to categorical features (booleans, enums) and lets Python compose the deciding signal. This is the universal escape from the LLM-as-Scorer flat-band pathology, applied in 13 of 35 architectures; 9 more are architecturally immune by design.


Quickstart

pip install "agentic-architectures[nebius,faiss,tavily]"
from agentic_architectures import get_llm
from agentic_architectures.architectures import Reflection

arch = Reflection(llm=get_llm(), max_iterations=2, target_score=8)
result = arch.run("Write a haiku about a glacier.")

print(result.output)
print("score:", result.metadata["final_score"], "/ 10")

Same .run(task) interface across all 35 architectures. Same ArchitectureResult return shape. Swap the class, swap the pattern — your downstream code does not change.

<details> <summary><b>Set up a virtualenv from a fresh clone</b></summary> <br>
git clone https://github.com/FareedKhan-dev/all-agentic-architectures
cd all-agentic-architectures

python -m venv .venv
.venv\Scripts\activate              # Windows
source .venv/bin/activate           # macOS / Linux

pip install -e ".[dev,test,docs,nebius,faiss,tavily,networkx]"
cp .env.example .env                # then fill in NEBIUS_API_KEY etc.

pytest -q                           # 283 tests pass in ~30s
</details>

Architecture families

<table> <tr> <td width="33%" valign="top">

Reasoning & Reflection

Self-critique loops that drive answer quality up through iteration. <br><br> <sub><a href="notebooks/01_reflection.ipynb">Reflection</a> · <a href="notebooks/18_reflexion.ipynb">Reflexion</a> · <a href="notebooks/20_chain_of_verification.ipynb">Chain-of-Verification</a> · <a href="notebooks/19_self_discover.ipynb">Self-Discover</a> · <a href="notebooks/32_constitutional_ai.ipynb">Constitutional AI</a></sub>

</td> <td width="33%" valign="top">

Sampling & Search

Sample many paths or grow a tree with rewards. <br><br> <sub><a href="notebooks/21_self_consistency.ipynb">Self-Consistency</a> · <a href="notebooks/09_tree_of_thoughts.ipynb">Tree of Thoughts</a> · <a href="notebooks/22_lats.ipynb">LATS</a> · <a href="notebooks/10_mental_loop.ipynb">Mental Loop</a> · <a href="notebooks/13_ensemble.ipynb">Ensemble</a></sub>

</td> <td width="33%" valign="top">

Retrieval (RAG)

Ground every claim — five retrieval shapes. <br><br> <sub><a href="notebooks/23_agentic_rag.ipynb">Agentic RAG</a> · <a href="notebooks/24_corrective_rag.ipynb">Corrective RAG</a> · <a href="notebooks/25_self_rag.ipynb">Self-RAG</a> · <a href="notebooks/26_adaptive_rag.ipynb">Adaptive RAG</a> · <a href="notebooks/27_graph_rag.ipynb">GraphRAG</a></sub>

</td> </tr> <tr> <td width="33%" valign="top">

Memory

Learn across calls — pick the storage shape. <br><br> <sub><a href="notebooks/08_episodic_semantic_memory.ipynb">Episodic + Semantic</a> · <a href="notebooks/12_graph_memory.ipynb">Graph Memory</a> · <a href="notebooks/31_memgpt.ipynb">MemGPT</a> · <a href="notebooks/29_voyager.ipynb">Voyager</a> · <a href="notebooks/35_agent_workflow_memory.ipynb">Agent Workflow Memory</a></sub>

</td> <td width="33%" valign="top">

Tools & Actions

From one search tool to a real Chromium browser. <br><br> <sub><a href="notebooks/02_tool_use.ipynb">Tool Use</a> · <a href="notebooks/03_react.ipynb">ReAct</a> · <a href="notebooks/04_planning.ipynb">Planning</a> · <a href="notebooks/06_pev.ipynb">PEV</a> · <a href="notebooks/33_swe_agent.ipynb">SWE-Agent</a> · <a href="notebooks/34_computer_use.ipynb">BrowserAgent</a></sub>

</td> <td width="33%" valign="top">

Multi-Agent

Specialists, debate, multi-perspective research. <br><br> <sub><a href="notebooks/05_multi_agent.ipynb">Multi-Agent</a> · <a href="notebooks/07_blackboard.ipynb">Blackboard</a> · <a href="notebooks/28_debate.ipynb">Debate</a> · <a href="notebooks/30_storm.ipynb">STORM</a> · <a href="notebooks/11_meta_controller.ipynb">Meta-Controller</a></sub>

</td> </tr> <tr> <td width="33%" valign="top">

Safety & Routing

Categorical actions through deterministic Python gates. <br><br> <sub><a href="notebooks/14_dry_run.ipynb">Dry-Run</a> · <a href="notebooks/17_reflexive_metacognitive.ipynb">Reflexive Metacognitive</a> · <a href="notebooks/34_computer_use.ipynb">Computer Use</a></sub>

</td> <td width="33%" valign="top">

Specialty

Patterns with a unique shape. <br><br> <sub><a href="notebooks/15_rlhf_self_improvement.ipynb">RLHF Self-Improvement</a> · <a href="notebooks/16_cellular_automata.ipynb">Cellular Automata</a></sub>

</td> <td width="33%" valign="top">

Cross-cutting

Patterns that appear across families. <br><br> <sub><a href="docs/tutorials/deterministic-picker.md">Deterministic-picker</a> · <a href="docs/tutorials/memory.md">Memory variants</a></sub>

</td> </tr> </table>

The 35 architectures

<details open> <summary><b>Reasoning &amp; Reflection</b></summary>
ArchitecturePatternReference
ReflectionGenerate → critique → refineMadaan 2023
ReflexionVerbal reflections in episodic memoryShinn 2023
Chain-of-Verification (CoVe)Verify each baseline claim independentlyDhuliawala 2023
Self-DiscoverSELECT → ADAPT → IMPLEMENT → SOLVEZhou 2024
Constitutional AIPer-rule pass/fail → reviseBai 2022
</details> <details> <summary><b>Sampling &amp; Search</b></summary>
ArchitecturePatternReference
Self-ConsistencySample N paths, majority-voteWang 2022
Tree of ThoughtsBeam search over thoughtsYao 2023
LATSMCTS tree with reward backupZhou 2024
Mental LoopSimulate → score (deterministic-picker)this repo
EnsembleN voters, weighted aggregationthis repo
</details> <details> <summary><b>Retrieval (RAG)</b></summary>
ArchitecturePatternReference
Agentic RAGAgent decides when & what to retrieveLangGraph reference
Corrective RAG (CRAG)Grade docs, fall back to webYan 2024
Self-RAGPer-doc reflection tokensAsai 2024
Adaptive RAGPre-route by query complexityJeong 2024
GraphRAGKG + community summariesMicrosoft 2024
</details> <details> <summary><b>Memory</b></summary>
ArchitectureStored unitReference
Episodic + SemanticConversation turns + triplesPark 2023
Graph Memory(subject, predicate, object) triplesthis repo
MemGPTOS-style context + archival tiersPacker 2023
VoyagerReusable Python skills (real subprocess)Wang 2023
Agent Workflow MemoryHigh-level workflow recipesWang 2024
</details> <details> <summary><b>Tools &amp; Actions</b></summary>
ArchitecturePatternReference
Tool UseAgent with one toolLangChain reference
ReActThought → Action → ObservationYao 2022
PlanningDecompose → execute → replanWei 2022
Plan-Execute-Verify (PEV)Post-execution verification per stepthis repo
SWE-AgentSandboxed file-system agentYang 2024
BrowserAgentReal Playwright + safety gateAnthropic Computer-Use 2024
</details> <details> <summary><b>Multi-Agent</b></summary>
ArchitecturePatternReference
Multi-AgentSupervisor + specialistsLangGraph reference
BlackboardShared workspace + agentsclassical AI
DebateN agents × K roundsDu 2023
STORMMulti-perspective research → articleShao 2024
Meta-ControllerRouter over architecturesthis repo
</details> <details> <summary><b>Safety, Routing &amp; Specialty</b></summary>
ArchitecturePatternReference
Dry-RunPropose → simulate → approval gatethis repo
Reflexive MetacognitiveSelf-aware capability routingthis repo
RLHF Self-ImprovementMulti-dim deterministic scoring + archivethis repo
Cellular AutomataLLM rules over a gridthis repo
</details>

Provider compatibility

<table> <tr><th>Provider</th><th>Install extra</th><th>Notes</th></tr> <tr><td><b>Nebius</b> &nbsp;<sub><i>(default)</i></sub></td><td><code>[nebius]</code></td><td>Llama-3.3-70B + Qwen3-Thinking; cheapest for the included demos</td></tr> <tr><td>OpenAI</td><td><code>[openai]</code></td><td>All architectures work; highest quality for reasoning patterns</td></tr> <tr><td>Anthropic</td><td><code>[anthropic]</code></td><td>Strong on long context; required for production Computer-Use</td></tr> <tr><td>Groq</td><td><code>[groq]</code></td><td>Fast inference; great for high-volume Self-Consistency</td></tr> <tr><td>Ollama &nbsp;<sub><i>(local)</i></sub></td><td><code>[ollama]</code></td><td>No API key; tool calling depends on the model</td></tr> <tr><td>Together</td><td><code>[together]</code></td><td>Wide model catalogue</td></tr> <tr><td>Fireworks</td><td><code>[fireworks]</code></td><td>Function-calling first-class</td></tr> <tr><td>Mistral</td><td><code>[mistral]</code></td><td>EU-hosted option</td></tr> <tr><td>Google</td><td><code>[google]</code></td><td>Gemini 2.x via Generative AI API</td></tr> </table>

Switch via LLM_PROVIDER + the corresponding key in .env. No code changes.


Benchmarks

A 17-task suite runs every architecture and scores results. Most recent run, real Nebius Llama-3.3-70B, ~25 min, ~$1.50 in tokens:

<table> <tr> <th width="180">Outcome</th> <th>Architectures</th> </tr> <tr> <td><b>Strong</b> &nbsp;<sub>2/2 or 3/3</sub></td> <td><sub><code>Reflection</code> &nbsp;<code>SelfConsistency</code> &nbsp;<code>SelfDiscover</code> &nbsp;<code>BrowserAgent</code></sub></td> </tr> <tr> <td><b>Perfect on attempted</b> &nbsp;<sub>1/1</sub></td> <td><sub>21 more — see leaderboard</sub></td> </tr> <tr> <td><b>Pattern-fit failures</b></td> <td><sub>LATS on arithmetic (wrong shape) · Debate + Ensemble on Sally trick (group-think) · Reflexion + AWM on raw-fact recall (wrong memory shape)</sub></td> </tr> <tr> <td><b>Overall</b></td> <td><b>33 / 42 correct</b> &nbsp;<sub>78%</sub></td> </tr> </table>

<sub><b>Full leaderboard</b> with per-task answer excerpts: <a href="docs/benchmarks.md">docs/benchmarks.md</a></sub>


Learning paths

Four curated reading orders, depending on what you're trying to do.

<table> <tr><th width="180">Path</th><th>For</th><th>Order</th></tr> <tr> <td><b>Beginner</b></td> <td>Mental model</td> <td><sub>Reflection → Tool Use → ReAct → Planning → Self-Consistency</sub></td> </tr> <tr> <td><b>RAG-focused</b></td> <td>Production retrieval</td> <td><sub>Agentic RAG → CRAG → Self-RAG → Adaptive RAG → GraphRAG</sub></td> </tr> <tr> <td><b>Multi-agent</b></td> <td>Coordination</td> <td><sub>Multi-Agent → Blackboard → Debate → STORM → Meta-Controller</sub></td> </tr> <tr> <td><b>Safety</b></td> <td>Guardrails</td> <td><sub>Dry-Run → Constitutional AI → Reflexive Metacognitive → BrowserAgent (safety gate)</sub></td> </tr> </table>

Star history

<div align="center"> <a href="https://www.star-history.com/#FareedKhan-dev/all-agentic-architectures&Date"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=FareedKhan-dev/all-agentic-architectures&type=Date&theme=dark" /> <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=FareedKhan-dev/all-agentic-architectures&type=Date" /> <img alt="Star History Chart" src="https://api.star-history.com/svg?repos=FareedKhan-dev/all-agentic-architectures&type=Date" width="720" /> </picture> </a> </div>

Tested

pytest -q
283 passed, 37 skipped (env-gated integration), 1 warning in ~30s
<table> <tr><th width="280">Suite</th><th>Coverage</th></tr> <tr><td><b>Registry sweep</b></td><td>All 35 architectures (metadata + instantiate + build)</td></tr> <tr><td><b>Pure-Python helpers</b></td><td>Haiku checker, composite scorers, subprocess executor, safety gate, sandbox path</td></tr> <tr><td><b>Notebook integrity</b></td><td>All 35 notebooks executed, no error outputs, §9 commentary tailored from real captured runs</td></tr> <tr><td><b>Integration</b> &nbsp;<sub><i>(env-gated)</i></sub></td><td>One real-LLM happy-path per architecture, gated via <code>RUN_INTEGRATION=1</code></td></tr> </table>

Documentation

Full docs siteDark-mode site with embedded notebooks  <sub><i>(live after first deploy)</i></sub>
QuickstartOne-command install, 8-line example
Switching providersCapability matrix; one env var to swap
Add your own architecture5-step contributor recipe
Deterministic-picker patternThe central technical pattern, explained once
Memory variantsComparison of all 7 memory shapes
API referencemkdocstrings auto-gen from docstrings  <sub><i>(live after first deploy)</i></sub>
BenchmarksFull per-task leaderboard with answer excerpts

Contributing

Contributions welcome. Two paths:

  1. Add a new architecture — follow the 5-step recipe. The PR template includes a deterministic-picker checklist.
  2. Improve an existing one — bug fix, prompt tuning, performance, scoring rubric. Open an issue first to discuss scope.

See CONTRIBUTING.md for the dev setup, code style, and commit-message convention (Conventional Commits — release-please auto-generates the CHANGELOG).


Citation

@misc{khan2026agentic,
  title         = {Agentic Architectures: A Library of 35 Production-Grade Agentic AI Patterns},
  author        = {Khan, Fareed},
  year          = {2026},
  howpublished  = {\url{https://github.com/FareedKhan-dev/all-agentic-architectures}},
  note          = {MIT licensed Python library and runnable textbook}
}

License

MIT — © 2026 Fareed Khan.

<br> <div align="center"> <sub> Built on <a href="https://langchain-ai.github.io/langgraph/">LangGraph</a> &nbsp;·&nbsp; Docs powered by <a href="https://squidfunk.github.io/mkdocs-material/">Material for MkDocs</a> &nbsp;·&nbsp; Default LLM via <a href="https://nebius.com/">Nebius</a> </sub>

<br><br>

<sub> <a href="https://github.com/FareedKhan-dev/all-agentic-architectures/stargazers">★ Star</a> &nbsp;·&nbsp; <a href="https://github.com/FareedKhan-dev/all-agentic-architectures/fork">Fork</a> &nbsp;·&nbsp; <a href="https://github.com/FareedKhan-dev/all-agentic-architectures/issues/new/choose">Open an issue</a> &nbsp;·&nbsp; <a href="https://github.com/FareedKhan-dev/all-agentic-architectures/discussions">Discuss</a> </sub> </div>

All Agentic Architectures alternatives

View more →

Similar ai agents in Coding Agents, ranked by GitHub stars. Compare licence, recent activity and scan status before you choose.

NameStarsLicenceLast updatedScan
All Agentic Architectures (this page)
FareedKhan-dev
4.6kMITJun 22, 2026Scanned, no flagged issues
AutoGPT
Significant-Gravitas
188kNone foundNov 1, 2026Not scanned yet
Langchain
langchain-ai
149kMITNov 1, 2026Scanned, no flagged issues
Gemini CLI
google-gemini
109kApache-2.0Nov 1, 2026Scanned, no flagged issues
MetaGPT
FoundationAgents
71kMITJan 21, 2026Scanned, no flagged issues
Oh My Openagent
code-yeongyu
71kNone foundNov 1, 2026Not scanned yet