MIT License

项目介绍

Haozhe-Xing/agent_learning 是一个托管在 GitHub 上的开源项目,主要使用 HTML 编写,采用 MIT License 许可证,目前获得 651 个 Star、103 次 Fork。

仓库全名
Haozhe-Xing/agent_learning
开源许可证
MIT License
Star 数
651
Fork 数
103
未关闭 Issue
2

README 摘要

Learn AI Agents from Scratch A visual, bilingual, and engineering-first textbook for building reliable LLM Agents. From Function Calling, memory, planning, RAG, and context engineering to Agentic RL, multi-agent systems, evaluation, security, and production deployment. 中文说明 · Complete directory · Runnable reference agent · Contributing What is this repository? agentlearning is an open-source AI Agent textbook and…

完整内容见 GitHub 原始 README 或本页 。

常见问题

agent_learning 用什么语言开发?

主要使用 HTML 编写,采用 MIT License 许可证,目前有 651 个 Star。

agent_learning 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 agent_learning 的源码?

可以直接克隆仓库:git clone https://github.com/Haozhe-Xing/agent_learning.git,默认分支为 main;安装与运行步骤见仓库 README。

agent_learning 最近还在维护吗?

仓库最近一次更新为 2 周前,当前有 2 个未关闭 Issue;Star 数为 651,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

A systematic AI Agent development tutorial covering LLM agents, RAG, tool use, memory systems, multi-agent systems, LangChain, LangGraph, MCP, and agentic RL.|从零开始学 AI Agent 开发 | 系统、全面、实战导向的 Agent 开发教程 | 每日自动追踪 arXiv 最新论文 | Learn AI Agent Development from Scratch

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

语言占比

CSS
Dockerfile
HTML
Handlebars
JavaScript
Python
Shell

README

Agent Learning Roadmap

Learn AI Agents from Scratch

A visual, bilingual, and engineering-first textbook for building reliable LLM Agents.

From Function Calling, memory, planning, RAG, and context engineering to Agentic RL, multi-agent systems, evaluation, security, and production deployment.

Read the English book 阅读中文版

GitHub stars MIT License PRs welcome 23 chapters Bilingual

中文说明 · Complete directory · Runnable reference agent · Contributing


What is this repository?

agent_learning is an open-source AI Agent textbook and learning repository. It is designed for the gap between “I can call an LLM API” and “I can build, evaluate, secure, and deploy an Agent system.”

Instead of teaching isolated framework APIs, the book builds one connected mental model:

LLM fundamentals → tools → memory → planning → RAG → context → harness → skills → Agentic RL → multi-agent → evaluation → security → deployment

The repository includes:

  • 23 chapters across foundations, core capabilities, frameworks, multi-agent systems, production, and capstone projects.
  • 188 Markdown pages per language, maintained in English and Chinese.
  • 330+ original SVG diagrams and 5 interactive demos for architecture, state, sequence, and training flows.
  • Paper-to-practice explanations covering ReAct, Reflexion, MemGPT/Letta, GraphRAG, GRPO, MCP, A2A, and more.
  • reference-agent/, a small runnable Agent baseline with tools, memory, security gates, evaluation, an MCP server, a FastAPI service, and 16 tests.

This is not an awesome-list and not a framework manual. It is a structured path from first principles to production engineering.


Complete directory


Runnable reference agent

reference-agent/ is the shared, dependency-light implementation behind the hands-on chapters. It includes:

  • a minimal ReAct loop and tool registry;
  • offline FakeProvider and optional OpenAI provider;
  • memory, prompt-injection guardrails, and fail-closed permission checks;
  • an MCP server, FastAPI endpoints, streaming, evaluation harness, and Dockerfile;
  • 16 tests that run without an API key.
cd reference-agent
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
pytest -q

The implementation is intentionally small enough to read. It is a teaching baseline, not a claim of production completeness.


WeChat

Feel free to contact the author on WeChat.

WeChat QR code

Project principles

  1. Mechanisms before frameworks. Explain why an abstraction exists before teaching its API.
  2. Visuals must teach. Diagrams carry architecture and process information; they are not decoration.
  3. Research must lead to engineering insight. Paper notes include contribution, mechanism, use, and limitations.
  4. Production claims must be honest. Runnable code, tests, security boundaries, and known limitations are stated explicitly.
  5. Bilingual content stays aligned. Text, diagrams, navigation, and interactive demos are maintained in both languages.

Contributing

Corrections, clearer explanations, runnable examples, translation fixes, and new paper notes are welcome.

  • Found an error? Open an issue.
  • Want to improve a chapter? Edit the matching file under both src/en/ and src/zh/ when possible.
  • Adding a page? Update both SUMMARY.md files.
  • Adding a diagram? Place localized assets under src/en/svg/ and src/zh/svg/.
  • Before a PR, run ./serve.sh and verify both language builds.

Please keep claims verifiable and prefer primary sources for papers, protocols, versions, and external projects.


Roadmap

  • 23-chapter bilingual mdBook
  • Localized diagrams and interactive demos
  • Agentic RL, context engineering, harness engineering, and self-evolving Agent coverage
  • Runnable reference-agent baseline with offline tests
  • More end-to-end capstone implementations
  • Searchable diagram gallery and concept index
  • Evaluation and observability starter templates
  • More exercises, interview questions, and regression cases

Suggestions are welcome in Issues.


License

Released under the MIT License.

If this repository saves you time, consider giving it a Star.

A Star helps more engineers find a structured path through AI Agents instead of another disconnected list of links.

Read in English · 阅读中文版 · Open an issue

评论

暂无评论