hello-agents
Chinese-language tutorial that teaches how AI agents work and how to build one from scratch.
- Stars
- 88,017 stars
- Forks
- 11k forks
- Last push
- 13 days ago
- Activity
- Active
# Get the course and its code$ git clone https://github.com/datawhalechina/hello-agents.gitCommands from the project's README. Run them after installing (see below).
Overview
Understand hello-agents in 60 seconds
- What it does
- Hello-Agents is a free, open course from the Datawhale community on building AI agents from scratch. Its 16 chapters go from what an agent is, through classic patterns like ReAct, to memory, protocols, training and full projects.
- The problem it solves
- Agent tutorials are scattered and often stop at using a low-code tool. Hello-Agents teaches the ideas underneath, has you build your own agent framework on the OpenAI API, and finishes with real case studies.
- Why choose it
- Choose it for a structured, theory-plus-practice path through agents with runnable code for every chapter. It is a course, not a library you install in production.
- Who should use it
- Developers and students with some programming experience
- Engineers moving from low-code agent tools to code
- Learners preparing for agent-related job interviews
- Readers of Chinese or English (both editions exist)
- Setup difficulty
You'll need:
- A web browser to read online
- Git and Python to run the chapter code
- An LLM API key for the hands-on chapters
How hello-agents works
The course has five parts. Part 1 covers agent basics, history and language model fundamentals. Part 2 is hands-on: implementing ReAct, Plan-and-Solve and Reflection, trying low-code platforms like Coze, Dify and n8n, using frameworks such as AutoGen, AgentScope and LangGraph, and building your own framework.
Part 3 extends that framework with memory and retrieval, context engineering, communication protocols (MCP, A2A, ANP), agentic reinforcement learning from SFT to GRPO, and evaluation. Part 4 builds a travel assistant, a deep research agent and a simulated cyber town, and Part 5 is a capstone project.
You can read it online, download a free PDF from the releases page, or clone the repository. All supporting code is in the code folder, and the authors strongly recommend running and debugging it yourself. Community extra chapters cover interview questions, Agent Skills, GUI and web agents.
Features
Key features
16 chapters
From agent fundamentals to a capstone multi-agent app.
Build your own framework
Write an agent framework from scratch on the OpenAI API.
Classic paradigms
Hands-on ReAct, Plan-and-Solve and Reflection.
Protocols
MCP, A2A and ANP explained.
Agentic RL
Train an LLM from SFT to GRPO.
Real projects
Travel assistant, deep research agent and cyber town.
Strengths
- Free, complete and structured
- Theory paired with runnable code
- Covers recent topics like MCP and context engineering
- Large community with extra chapters
Limitations
- Written primarily in Chinese; the English edition is a translation
- Licensed CC BY-NC-SA 4.0, so no commercial reuse of the content
- Hands-on chapters need an LLM API key, which may cost money
Practical use cases
Learn agents properly
Work through the chapters in order with the code.
Interview prep
Use the extra chapter of agent interview questions and answers.
Team study group
Follow the five parts as a syllabus.
Installation
Install hello-agents
Commands come from Hello-Agents's README. AIRepoHub hasn't run them yet. Steps are as of Nov 25, 2026; projects change often, so if a command doesn't work, check the project's latest README. View source
Prerequisites
- Git
- Python
Supported systems
- Windows
- macOS
- Linux
- 1
Open the online book
datawhalechina.github.io/hello-agents, no download needed.
- 1
Clone the repository
Shellgit clone https://github.com/datawhalechina/hello-agents.gitcd hello-agents - 2
Open the code folder
It holds the supporting code for every chapter.
- 1
Download the PDF
From the repository's latest GitHub release.
Configuration and API keys
| Setting | What it's for |
|---|
First run
- 1
Read the Preface and Chapter 1: Introduction to Agents
hello-agents's documentation doesn't include sample output, so we don't show any. Expect the results in your terminal.
Your first project
Start the Hello-Agents course
Set up the course and begin the hands-on part.
Before you start
- The repository cloned
- Python and an LLM API key
- 1
Read Chapters 1 to 3
Agent concepts, history and language model basics.
- 2
Open Chapter 4
Implement ReAct, Plan-and-Solve and Reflection.
- 3
Run the chapter code
Use the matching folder under code and debug it yourself, as the authors recommend.
What to expect
A working ReAct-style agent you wrote and ran yourself.
Next steps
- Build your own framework in Chapter 7
- Add memory and retrieval in Chapter 8
- Try the capstone in Chapter 16
Costs and requirements
What it costs to run
- License
- CC BY-NC-SA 4.0. Free to read and share non-commercially with attribution.Free
- Course
- Free, online or as PDF.Free
- LLM API
- Hands-on chapters call a model API, billed by the provider.Depends
Troubleshooting
Common setup issues
Online site is slow in mainland China
Use the domestic mirror at hello-agents.datawhale.cc.
Not sure where to start
Read the How to Learn section; Part 2 is where hands-on work begins.
Environment setup problems
See the Environment Configuration extra chapter (Extra07).
Alternatives
Similar AI repositories
dify
langgenius
Visual workspace for building agentic workflows and RAG pipelines, self-hosted or in the cloud.
graphify
Graphify-Labs
Agent skill that turns a codebase and its docs into a searchable knowledge graph for Claude Code, Cursor, Codex and Gemini CLI.
PaddleOCR
PaddlePaddle
OCR toolkit that reads text from PDFs and images and turns documents into structured data for AI.
crawl4ai
unclecode
Open-source web crawler that extracts clean data from websites for AI agents and language models.