Study how production AI agents like Claude Code are structured internally by reading the analysis PDF reports
Use the minimal Python teaching agent to understand the core agent loop before writing your own
Swap a real LLM API call into the fake model stub to extend the teaching agent with actual AI responses
Learn the tool discovery and skill-calling pattern for AI agents from a deliberately simple working example
The PDF reports are written in Chinese, the teaching agent uses a fake model stub rather than a real LLM connection.
AI Agent Deep Dive is a repository containing written research reports that analyze the source code of AI agent systems in depth. The main deliverable is a series of PDF documents that walk through how specific agents are built under the hood, including an analysis of Claude Code and a separate deep-dive on the Hermes Agent. The reports are written in Chinese and targeted at developers who want to understand the internals of production-grade AI agents, not just use them as black boxes. Alongside the PDF reports, the repository also includes a small teaching project: a minimal Python AI agent built for learning purposes. The goal of this teaching agent is to show, in as few lines of code as possible, what the core structure of an AI agent looks like. It covers the main agent loop, a skills discovery mechanism that lets the agent find and call tools, and a command-line interface. The code deliberately avoids engineering complexity so the structure stays readable. The current teaching implementation uses a fake stand-in for an AI model rather than connecting to a real one. Whatever text the user types in, the fake model echoes back a test response. This design makes it straightforward to later swap in a real model API call without rewriting the rest of the agent. Instructions in the README walk through installing dependencies with Poetry and running the agent from the command line. The repository is framed as educational material. It does not provide the original source code of the agents it analyzes, only the analysis documents themselves.
← tvytlx on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.