็ฆป็บฟ่ตๆ ยท 01-ai-agent-handbook/en/README.html
The most comprehensive AI Agent development guide โ from zero to production
10+ frameworks ยท 18+ chapters ยท 9 runnable examples ยท Beginner-friendly
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โญ
| Language | Link |
|---|---|
| ๐จ๐ณ ็ฎไฝไธญๆ (Simplified Chinese) | README ไธญๆ็ |
| ๐บ๐ธ English | This page |
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ
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 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Complete beginners? Start here โ 00-quickstart.md
Build your first AI Agent in 10 minutes with just one Python file!
| 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? |
| 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 |
| 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 | Content |
|---|---|
| A | Framework Comparison Matrix |
| B | Error Troubleshooting Handbook |
| C | Learning Resources & Community |
| ๐ | Glossary: 80+ Terms Explained |
| 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 |
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
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
Ch.0 Quickstart โ Ch.1 Fundamentals โ Ch.7 Dify โ Ch.12 Ollama โ Ch.18 Selection
Ch.0 โ Ch.2 ReAct from scratch โ Ch.3 LangGraph โ Ch.4 CrewAI โ Ch.11 MCP โ Ch.17 Project
Ch.3 โ Ch.13 Patterns โ Ch.14 Memory โ Ch.16 Observability โ Ch.17 Full-stack
We welcome PRs! Both Chinese and English improvements are appreciated.
git checkout -b feature/AmazingFeature)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.