# tradertanmay/ai-agents-zero-to-hero architecture

> Architecture diagram of the GitHub repository tradertanmay/ai-agents-zero-to-hero, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/tradertanmay/ai-agents-zero-to-hero
- Repository: https://github.com/tradertanmay/ai-agents-zero-to-hero

## Overview

This repository is a progressive, code-first educational curriculum for understanding and building AI-agent systems, rather than a single deployed agent product. Its learner workflow moves from first principles through agent loops, tools, state, planning, context, runtimes, and multi-agent systems, then into failure handling, evaluation, safety, production, coding agents, and self-improvement. The README documents the conceptual agent components and starting points; the source index identifies major example modules. Some chapter-to-chapter and capstone implementation relationships are not established by the excerpts, so they are left unconnected.

Main entry points: [`08-agent-runtime-and-harness/example.py`](https://github.com/tradertanmay/ai-agents-zero-to-hero/blob/main/08-agent-runtime-and-harness/example.py) (Runtime and Harness), [`01-what-is-an-agent/example.py`](https://github.com/tradertanmay/ai-agents-zero-to-hero/blob/main/01-what-is-an-agent/example.py) (Agent Concepts), [`02-agent-loop/example.py`](https://github.com/tradertanmay/ai-agents-zero-to-hero/blob/main/02-agent-loop/example.py) (Observe Decide Act), [`03-tools-and-function-calling/example.py`](https://github.com/tradertanmay/ai-agents-zero-to-hero/blob/main/03-tools-and-function-calling/example.py) (Tools and Calling)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_fundamentals["Agent Fundamentals"]
  node_agent_concepts["Agent Concepts<br/>[example.py]"]
  node_agent_loop["Observe Decide Act<br/>[example.py]"]
  node_tool_use["Tools and Calling<br/>[example.py]"]
  node_first_agent["First Agent<br/>[example.py]"]
end

subgraph group_design["Agent Design"]
  node_state_memory["State and Memory<br/>[example.py]"]
  node_planning["Planning and Reasoning<br/>[example.py]"]
  node_context["Context Engineering<br/>[example.py]"]
  node_runtime["Runtime and Harness<br/>[example.py]"]
  node_multi_agent["Multi-Agent Systems<br/>[example.py]"]
end

subgraph group_operations["Reliable Agents"]
  node_failure_recovery["Failure Recovery<br/>[example.py]"]
  node_evaluation["Agent Evaluation<br/>[example.py]"]
  node_safety["Safety and Verification<br/>[example.py]"]
  node_production["Production Agents<br/>[example.py]"]
end

subgraph group_applications["Applied Systems"]
  node_coding_agent["Coding Agent<br/>[example.py]"]
  node_persistent_agent["Persistent Agent<br/>[example.py]"]
  node_research_agent["Research Agent<br/>[example.py]"]
end

subgraph group_improvement["Agent Improvement"]
  node_self_improvement["Self-Improving Agents<br/>[example.py]"]
end

node_learner(("Learner"))

node_learner -->|"starts with"| node_agent_concepts
node_learner -->|"builds from"| node_agent_loop
node_learner -->|"builds from"| node_tool_use
node_learner -->|"builds from"| node_first_agent
node_runtime -->|"controls"| node_agent_loop
node_runtime -->|"uses"| node_state_memory
node_runtime -->|"executes"| node_tool_use
node_agent_concepts -->|"distinguishes from"| node_multi_agent

click node_agent_concepts "https://github.com/tradertanmay/ai-agents-zero-to-hero/blob/main/01-what-is-an-agent/example.py"
click node_agent_loop "https://github.com/tradertanmay/ai-agents-zero-to-hero/blob/main/02-agent-loop/example.py"
click node_tool_use "https://github.com/tradertanmay/ai-agents-zero-to-hero/blob/main/03-tools-and-function-calling/example.py"
click node_first_agent "https://github.com/tradertanmay/ai-agents-zero-to-hero/blob/main/04-build-your-first-agent/example.py"
click node_state_memory "https://github.com/tradertanmay/ai-agents-zero-to-hero/blob/main/05-state-and-memory/example.py"
click node_planning "https://github.com/tradertanmay/ai-agents-zero-to-hero/blob/main/06-planning-and-reasoning/example.py"
click node_context "https://github.com/tradertanmay/ai-agents-zero-to-hero/blob/main/07-context-engineering/example.py"
click node_runtime "https://github.com/tradertanmay/ai-agents-zero-to-hero/blob/main/08-agent-runtime-and-harness/example.py"
click node_multi_agent "https://github.com/tradertanmay/ai-agents-zero-to-hero/blob/main/09-multi-agent-systems/example.py"
click node_failure_recovery "https://github.com/tradertanmay/ai-agents-zero-to-hero/blob/main/10-agent-failures/example.py"
click node_evaluation "https://github.com/tradertanmay/ai-agents-zero-to-hero/blob/main/11-agent-evaluation/example.py"
click node_safety "https://github.com/tradertanmay/ai-agents-zero-to-hero/blob/main/12-agent-safety-and-verification/example.py"
click node_production "https://github.com/tradertanmay/ai-agents-zero-to-hero/blob/main/13-production-agents/example.py"
click node_coding_agent "https://github.com/tradertanmay/ai-agents-zero-to-hero/blob/main/14-coding-agents/example.py"
click node_persistent_agent "https://github.com/tradertanmay/ai-agents-zero-to-hero/blob/main/applied-agent-systems/persistent-agent/example.py"
click node_research_agent "https://github.com/tradertanmay/ai-agents-zero-to-hero/blob/main/applied-agent-systems/research-agent/example.py"
click node_self_improvement "https://github.com/tradertanmay/ai-agents-zero-to-hero/blob/main/15-self-improving-agents/example.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_agent_concepts,node_agent_loop,node_tool_use,node_first_agent toneBlue
class node_state_memory,node_planning,node_context,node_runtime,node_multi_agent toneAmber
class node_failure_recovery,node_evaluation,node_safety,node_production toneMint
class node_coding_agent,node_persistent_agent,node_research_agent toneRose
class node_self_improvement,node_learner toneIndigo
```

## Components

### Agent Fundamentals

- [Agent Concepts](https://github.com/tradertanmay/ai-agents-zero-to-hero/blob/main/01-what-is-an-agent/example.py): `01-what-is-an-agent/example.py`
- [Observe Decide Act](https://github.com/tradertanmay/ai-agents-zero-to-hero/blob/main/02-agent-loop/example.py): `02-agent-loop/example.py`
- [Tools and Calling](https://github.com/tradertanmay/ai-agents-zero-to-hero/blob/main/03-tools-and-function-calling/example.py): `03-tools-and-function-calling/example.py`
- [First Agent](https://github.com/tradertanmay/ai-agents-zero-to-hero/blob/main/04-build-your-first-agent/example.py): `04-build-your-first-agent/example.py`

### Agent Design

- [State and Memory](https://github.com/tradertanmay/ai-agents-zero-to-hero/blob/main/05-state-and-memory/example.py): `05-state-and-memory/example.py`
- [Planning and Reasoning](https://github.com/tradertanmay/ai-agents-zero-to-hero/blob/main/06-planning-and-reasoning/example.py): `06-planning-and-reasoning/example.py`
- [Context Engineering](https://github.com/tradertanmay/ai-agents-zero-to-hero/blob/main/07-context-engineering/example.py): `07-context-engineering/example.py`
- [Runtime and Harness](https://github.com/tradertanmay/ai-agents-zero-to-hero/blob/main/08-agent-runtime-and-harness/example.py): `08-agent-runtime-and-harness/example.py`
- [Multi-Agent Systems](https://github.com/tradertanmay/ai-agents-zero-to-hero/blob/main/09-multi-agent-systems/example.py): `09-multi-agent-systems/example.py`

### Reliable Agents

- [Failure Recovery](https://github.com/tradertanmay/ai-agents-zero-to-hero/blob/main/10-agent-failures/example.py): `10-agent-failures/example.py`
- [Agent Evaluation](https://github.com/tradertanmay/ai-agents-zero-to-hero/blob/main/11-agent-evaluation/example.py): `11-agent-evaluation/example.py`
- [Safety and Verification](https://github.com/tradertanmay/ai-agents-zero-to-hero/blob/main/12-agent-safety-and-verification/example.py): `12-agent-safety-and-verification/example.py`
- [Production Agents](https://github.com/tradertanmay/ai-agents-zero-to-hero/blob/main/13-production-agents/example.py): `13-production-agents/example.py`

### Applied Systems

- [Coding Agent](https://github.com/tradertanmay/ai-agents-zero-to-hero/blob/main/14-coding-agents/example.py): `14-coding-agents/example.py`
- [Persistent Agent](https://github.com/tradertanmay/ai-agents-zero-to-hero/blob/main/applied-agent-systems/persistent-agent/example.py): `applied-agent-systems/persistent-agent/example.py`
- [Research Agent](https://github.com/tradertanmay/ai-agents-zero-to-hero/blob/main/applied-agent-systems/research-agent/example.py): `applied-agent-systems/research-agent/example.py`

### Agent Improvement

- [Self-Improving Agents](https://github.com/tradertanmay/ai-agents-zero-to-hero/blob/main/15-self-improving-agents/example.py): `15-self-improving-agents/example.py`

### Other components

- **Learner**

## Connections

- Learner → Agent Concepts: starts with (evidence: `README.md`)
- Learner → Observe Decide Act: builds from (evidence: `README.md`)
- Learner → Tools and Calling: builds from (evidence: `README.md`)
- Learner → First Agent: builds from (evidence: `README.md`)
- Runtime and Harness → Observe Decide Act: controls (evidence: `README.md`)
- Runtime and Harness → State and Memory: uses (evidence: `README.md`)
- Runtime and Harness → Tools and Calling: executes (evidence: `README.md`)
- Agent Concepts → Multi-Agent Systems: distinguishes from (evidence: `README.md`)
