Show HN: AI Agents: Zero to Hero – Learn AI Agents from Scratch in Pure Python Tanmay Sah released "AI Agents: Zero to Hero," a source-available educational repository that teaches AI agent internals in pure Python with no API key, no framework, and no dependencies, requiring Python 3.11+. The curriculum runs from a chatbot-versus-workflow-versus-agent comparison through a pure Python Observe-Decide-Act loop to a complete multi-step agent, and frames an agent system as a composite of a model policy, an execution control loop, state management, and tools interacting with an environment. A publicly accessible, source-available educational framework by Tanmay Sah. Everyone is talking about AI agents. But what actually makes something an agent? Is ChatGPT an agent? Is a deterministic workflow an agent? What happens between an LLM deciding to call a tool and that tool actually executing? Where does memory live? Who controls the loop? Who decides when the agent stops? And what happens when an agent makes the wrong change? This repository answers those questions from first principles . No magic. No framework-first abstractions. What about AI agents confuses you? Have a question or a concept you want demystified? Check out QUESTIONS.md https://github.com/tradertanmay/ai-agents-zero-to-hero/blob/main/QUESTIONS.md or submit a question via GitHub Issues https://github.com/tradertanmay/ai-agents-zero-to-hero/issues/new?template=question.md . Questions from the community directly shape upcoming modules in this series - New to agents? Start here → 01 — What Is an Agent? https://github.com/tradertanmay/ai-agents-zero-to-hero/blob/main/01-what-is-an-agent/README.md - Want to build one from scratch? - Want to understand what frameworks hide? Clone and run the complete agent loop immediately with Python 3.11+: git clone https://github.com/tradertanmay/ai-agents-zero-to-hero.git cd ai-agents-zero-to-hero 1. Compare Chatbot vs Workflow vs Agent python3 01-what-is-an-agent/example.py 2. Run the pure Python Observe-Decide-Act loop python3 02-agent-loop/example.py 3. Run your first complete multi-step agent python3 04-build-your-first-agent/example.py No API key. No framework. No dependencies. Just Python. A practical, progressive, code-first curriculum designed to take you from: "I understand LLMs and APIs, but I don't really understand what people mean by an AI agent." to: "I understand how agents work internally and can build, debug, evaluate, and reason about production agent systems." This repository is built for everyone who wants to understand and build AI agents — whether you are a software engineer, technical lead, researcher, product builder, student, or curious developer. It is especially designed for you if you: - Want to move beyond prompt engineering and understand how autonomous agent systems actually work - Know basic Python or can follow readable standard code - Have used ChatGPT or called LLM APIs, but want to see the underlying machinery behind tools, memory, and loops - Hear industry buzzwords like ReAct, Function Calling, Memory, Agent Harness, Multi-Agent, MCP and want a crystal-clear, framework-independent mental model A common beginner assumption is: In reality, a base LLM inference call does not itself maintain persistent application state across turns. An Agent System is a composite computational system comprising a model policy, an execution control loop, state management, and tools, which observes and acts upon an external Environment . flowchart TD subgraph AgentSystem "AGENT SYSTEM" M "Model / Policy Decision Engine " R "Runtime / Control Loop Supervisor " S "State & Memory" T "Tools & Actions" R <-- M R <-- S R <-- T end AgentSystem <-- |Act / Observe| E "ENVIRONMENT