ai-agent-deep-dive README

The project's README from github.com/tvytlx/ai-agent-deep-dive. As one markdown file: README.md.

AI Agent Deep Dive

Star History Chart

PDF 下载 / PDF Report:

Notes

Teaching Agent Code

这个仓库现在还包含一个教学用的最小 Python Agent 项目,用于演示一个 AI Agent 的核心结构应该怎么组织。

核心代码位置

这个教学项目的定位

这个最小 Agent 项目是为了教学而设计的,特点是:

如何运行最小 Agent

本项目使用 Poetry 管理依赖。

1. 安装依赖

poetry install

2. 运行最小 Agent CLI

poetry run agt "你好"

3. 查看 Skills

poetry run agt --skills-dir ./skills --list-skills

当前实现说明

当前版本是一个教学型最小实现,还没有接入真实远程模型 API。

目前内置的是一个可替换的 Fake LLM:

这样做的目的,是为了让后续接入真实模型时,只需要替换 LLM 调用层,而不需要重写整个 Agent 主体。

ai-agent-deep-dive (tvytlx/ai-agent-deep-dive)

Searching Database…

What is this?A collection of deep-dive research reports (PDFs) analyzing the internal source code of AI Agents such as ClaudeCode and Hermes Agent, plus a small teaching-oriented Python agent project added to the same repo.
Is this just a report to read, or is there actual code to run?Both: most of the repo distributes PDF analysis reports, but it now also ships a minimal, runnable Python agent (src/agt/) built with Poetry purely for teaching how an AI Agent's core structure is organized.
How do I run the teaching agent?Install the project's dependencies with Poetry, then launch the minimal Agent via its CLI entry point at src/agt/cli.py.
Do I need a real LLM API key to try the teaching agent?No. The current version is a teaching-only minimal implementation that has not been wired up to a real remote model API; it ships with a swappable Fake LLM instead.
Does the repo include the original source code that's being analyzed (e.g. ClaudeCode's own code)?No, the repository only keeps analysis and commentary material intended for learning and review; it does not include the analyzed projects' own source directories.
Which AI agents does the research actually cover?The reports cover ClaudeCode in depth (v2 and v2.1, the latter adding a chapter on its memory system) and a newer deep-dive into Hermes Agent.
What does the minimal teaching agent focus on right now?It centers on the Agent's main loop, a Fake LLM interface, Skills discovery, and a basic CLI skeleton, kept deliberately small for readability.
Why use a Fake LLM instead of a real model in the teaching project?So that wiring up a real model later only requires swapping the LLM call layer, without having to rewrite the rest of the Agent.
Is all of the research content free to download?Most PDF reports are linked directly for download in the repo, but at least one of the newest reports (on Hermes Agent) is only shared inside the author's paid Zhishi Planet (知识星球) community '矩阵之外'.
Creator
tvytlx
Size
14.4 MB
Stars
5.8K
Updated
CommitSep 16
Age
6mo
Commits · 90 Days