None

็ฆป็บฟ่ต„ๆ–™ ยท 01-ai-agent-handbook/en/README.html

โ† ่ฟ”ๅ›ž็ฆป็บฟ่ต„ๆ–™

๐Ÿค– AI Agent Practical Handbook

The most comprehensive AI Agent development guide โ€” from zero to production

10+ frameworks ยท 18+ chapters ยท 9 runnable examples ยท Beginner-friendly

GitHub Stars GitHub Forks Last Commit Contributors License: MIT Python 3.10+ ๐Ÿ“– Online Docs

Frameworks covered: LangGraph 40.3Kโญ ยท CrewAI 57.5Kโญ ยท AutoGen 60.6Kโญ ยท Dify 153.3Kโญ ยท LlamaIndex 51.8Kโญ ยท OpenAI Agents 28.9Kโญ ยท Mastra 27.4Kโญ ยท Ollama 179.3Kโญ

### โญ If this handbook helps you, please hit the star โ€” it helps more developers find it! **Beginner-friendly** ยท **Zero-config Docker** ยท **10+ frameworks** ยท **Bilingual**

๐ŸŒ Language

Language Link
๐Ÿ‡จ๐Ÿ‡ณ ็ฎ€ไฝ“ไธญๆ–‡ (Simplified Chinese) README ไธญๆ–‡็‰ˆ
๐Ÿ‡บ๐Ÿ‡ธ English This page

โœจ Why This Handbook?

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  โœ… Comprehensive โ€” 18+ chapters covering all major frameworksโ”‚
โ”‚  โœ… Beginner-friendly โ€” explain like you're five (ELI5)       โ”‚
โ”‚  โœ… Hands-on โ€” every chapter has runnable code                โ”‚
โ”‚  โœ… Up-to-date โ€” tracks 2025-2026 cutting-edge tech           โ”‚
โ”‚  โœ… Bilingual โ€” Chinese & English editions                    โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿš€ Quick Start (10 minutes)

Complete beginners? Start here โ†’ 00-quickstart.md

Build your first AI Agent in 10 minutes with just one Python file!


๐Ÿ“– Table of Contents

Beginner Track

Chapter Title Level Description
Ch. 0 Quickstart: Your First Agent โญ 10-minute hands-on introduction
Ch. 1 AI Agent Fundamentals โญ What is an Agent? Core components
Ch. 2 Build a ReAct Agent from Scratch โญโญ Implement a minimal agent yourself
Ch. 7 Dify: Low-code Platform โญ Drag-and-drop AI apps, no code needed
Ch. 12 Ollama: Local LLM Deployment โญ Free, private, offline models
Ch. 18 Framework Selection Guide โญโญ Which framework fits your needs?

Intermediate Track

Chapter Title Level Description
Ch. 3 LangGraph: Graph Orchestration โญโญโญ Complex workflows & state machines
Ch. 4 CrewAI: Multi-Agent Collaboration โญโญโญ Role-based agent teams
Ch. 5 AutoGen / MAF โญโญโญ Conversation-driven multi-agent
Ch. 6 LlamaIndex RAG โญโญโญ Document retrieval & vector DBs
Ch. 8 OpenAI Agents SDK โญโญ Lightweight official framework
Ch. 9 Claude Agent SDK โญโญ Anthropic's official toolkit
Ch. 10 Mastra (TypeScript) โญโญโญ TypeScript-first agent framework
Ch. 11 MCP Protocol Guide โญโญโญ Standardized tool connection protocol
Ch. 15 Token Cost Optimization โญโญ Production cost control

Advanced Track

Chapter Title Level Description
Ch. 13 Multi-Agent Collaboration Patterns โญโญโญโญ 6 patterns + decision tree
Ch. 14 Memory & State Management โญโญโญ Mem0, vector memory, persistence
Ch. 16 Debugging & Observability โญโญโญ LangSmith, logging, tracing
Ch. 17 Full-stack Project: Research Report System โญโญโญโญ Integrate everything you've learned

Appendix

Appendix Content
A Framework Comparison Matrix
B Error Troubleshooting Handbook
C Learning Resources & Community
๐Ÿ“– Glossary: 80+ Terms Explained

๐ŸŽฏ Framework Overview

Framework Stars Language Best For
LangGraph 40.3K โญ Python/TS Complex workflows, production systems
CrewAI 57.5K โญ Python Rapid prototyping, team simulation
AutoGen (MAF) 60.6K โญ Python/.NET Multi-agent research, iterative solving
Dify 153.3K โญ Python/TS Product validation, non-technical users
LlamaIndex 51.8K โญ Python Knowledge base Q&A, document retrieval
OpenAI Agents SDK 28.9K โญ Python Fast development, OpenAI ecosystem
Claude Agent SDK 8.0K โญ Python Claude Code integration
Mastra 27.4K โญ TypeScript Frontend/fullstack developers
Ollama 179.3K โญ Go Private, offline LLM inference
MCP Protocol Multi Standardized tool connectivity

๐Ÿ“‚ Project Structure

ai-agent-handbook/
โ”œโ”€โ”€ README.md               # Chinese README
โ”œโ”€โ”€ en/                     # English edition
โ”‚   โ”œโ”€โ”€ README.md           # English README
โ”‚   โ”œโ”€โ”€ chapters/           # English chapters
โ”‚   โ”œโ”€โ”€ examples/           # English examples
โ”‚   โ””โ”€โ”€ docs/               # English docs
โ”œโ”€โ”€ chapters/               # Chinese chapters (18+)
โ”œโ”€โ”€ examples/               # Runnable examples (9)
โ”œโ”€โ”€ docs/                   # Reference docs
โ”œโ”€โ”€ appendix/               # Troubleshooting & resources
โ”œโ”€โ”€ Dockerfile              # One-command dev environment
โ”œโ”€โ”€ docker-compose.yml      # Dev + Ollama services
โ””โ”€โ”€ requirements.txt        # Python dependencies

๐Ÿณ One-Command Environment (Docker)

No Python installation needed:

# Option 1: Interactive dev environment
docker compose up -d
docker compose run dev bash

# Option 2: Just run a single example
docker build -t agent-handbook .
docker run -it --rm \
  -e OPENAI_API_KEY=your_key \
  -v $(pwd):/workspace agent-handbook \
  python examples/01-react-agent/main.py

Beginner Path (2-3 weeks)

Ch.0 Quickstart โ†’ Ch.1 Fundamentals โ†’ Ch.7 Dify โ†’ Ch.12 Ollama โ†’ Ch.18 Selection

Intermediate Path (4-6 weeks)

Ch.0 โ†’ Ch.2 ReAct from scratch โ†’ Ch.3 LangGraph โ†’ Ch.4 CrewAI โ†’ Ch.11 MCP โ†’ Ch.17 Project

Advanced Path (6-8 weeks)

Ch.3 โ†’ Ch.13 Patterns โ†’ Ch.14 Memory โ†’ Ch.16 Observability โ†’ Ch.17 Full-stack

๐Ÿค Contributing

We welcome PRs! Both Chinese and English improvements are appreciated.

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes
  4. Push to the branch
  5. Open a Pull Request

๐Ÿ“„ License

MIT License โ€” see LICENSE


In one sentence: This handbook isn't just about "using" a framework โ€” it's about understanding the essence of AI Agents, so you can excel with any framework.


**Made with โค๏ธ by the AI Agent Community** [Report Bug](https://github.com/Xwh630/ai-agent-handbook/issues) ยท [Request Feature](https://github.com/Xwh630/ai-agent-handbook/issues)