MCPcopy
hub / github.com/datawhalechina/hello-agents

github.com/datawhalechina/hello-agents @V1.0.2 sqlite

repository ↗ · DeepWiki ↗ · release V1.0.2 ↗
2,497 symbols 9,123 edges 360 files 1,901 documented · 76%
README

English | 中文

alt text

Hello-Agents

🤖 "Building Agent Systems from Scratch"

datawhalechina%2Fhello-agents | Trendshift

From foundational theory to practical applications, master the design and implementation of agent systems

GitHub stars GitHub forks Language GitHub Project Online Reading


🎯 Project Introduction

  If 2024 was the year of the "Battle of a Hundred Models," then 2025 has undoubtedly ushered in the "Year of Agents." The focus of technology is shifting from training larger foundation models to building smarter agent applications. However, systematic, practice-oriented tutorials are extremely scarce. For this reason, we launched the Hello-Agents project, hoping to provide the community with a comprehensive guide to building agent systems from scratch, balancing theory and practice.

  Hello-Agents is a systematic agent learning tutorial from the Datawhale community. Today, agent development is mainly divided into two schools: one is software engineering-oriented agents like Dify, Coze, and n8n, which are essentially process-driven software development with LLMs serving as data processing backends; the other is AI-native agents, truly AI-driven agents. This tutorial aims to lead you to deeply understand and build the latter—truly AI Native Agents. The tutorial will guide you through the surface of frameworks, starting from the core principles of agents, delving into their core architecture, understanding their classic paradigms, and ultimately building your own multi-agent applications. We believe that the best way to learn is through hands-on practice. We hope this tutorial can be your starting point for exploring the world of agents, transforming you from a "user" of large language models to a "builder" of agent systems.

📚 Quick Start

Online Reading

🌐 Click here to start reading online - No download required, learn anytime, anywhere

📖 Cookbook

Local Reading

If you wish to read locally or contribute content, please refer to the learning guide below.

✨ What Will You Gain?

  • 📖 Datawhale Open Source & Free - Learn all project content completely free, grow with the community
  • 🔍 Understand Core Principles - Deeply understand agent concepts, history, and classic paradigms
  • 🏗️ Hands-on Implementation - Master popular low-code platforms and agent code frameworks
  • 🛠️ Self-developed Framework HelloAgents - Build your own agent framework from scratch based on OpenAI native API
  • ⚙️ Master Advanced Skills - Step-by-step implementation of context engineering, Memory, protocols, evaluation, and other systematic technologies
  • 🤝 Model Training - Master Agentic RL, from SFT to GRPO full-process practical LLM training
  • 🚀 Drive Real Cases - Practical development of intelligent travel assistants, cyber towns, and other comprehensive projects
  • 📖 Job Interviews - Learn agent-related interview questions for job hunting

📖 Content Navigation

Chapter Key Content Status
Preface Project origin, background, and reader suggestions
Part 1: Agent and Language Model Fundamentals
Chapter 1: Introduction to Agents Agent definition, types, paradigms, and applications
Chapter 2: History of Agents Evolution from symbolism to LLM-driven agents
Chapter 3: Large Language Model Fundamentals Transformer, prompts, mainstream LLMs and their limitations
Part 2: Building Your LLM Agent
Chapter 4: Classic Agent Paradigm Construction Hands-on implementation of ReAct, Plan-and-Solve, Reflection
Chapter 5: Low-Code Platform Agent Development Understanding Coze, Dify, n8n and other low-code agent platforms
Chapter 6: Framework Development Practice AutoGen, AgentScope, LangGraph and other mainstream framework applications
Chapter 7: Building Your Agent Framework Building an agent framework from scratch
Part 3: Advanced Knowledge Extension
Chapter 8: Memory and Retrieval Memory systems, RAG, storage
Chapter 9: Context Engineering "Contextual understanding" for continuous interaction
Chapter 10: Agent Communication Protocols MCP, A2A, ANP and other protocol analysis
Chapter 11: Agentic-RL Practical LLM training from SFT to GRPO
Chapter 12: Agent Performance Evaluation Core metrics, benchmarks, and evaluation frameworks
Part 4: Comprehensive Case Studies
Chapter 13: Intelligent Travel Assistant Real-world applications of MCP and multi-agent collaboration
Chapter 14: Automated Deep Research Agent DeepResearch Agent reproduction and analysis
Chapter 15: Building a Cyber Town Combining agents with games, simulating social dynamics
Part 5: Capstone Project and Future Outlook
Chapter 16: Capstone Project Build your own complete multi-agent application

Community Contributions

  We welcome everyone to contribute their unique insights and practical summaries from learning Hello-Agents or Agent-related technologies to the community selection in the form of PRs. If the content is independent of the main text, you can also submit it to Extra-Chapter! Looking forward to your first contribution!

Community Selection Content Summary
00-Co-creation Capstone Projects Community co-creation capstone projects
01-Agent Interview Questions Summary Agent position-related interview questions
01-Agent Interview Answers Answers to related interview questions
02-Context Engineering Content Supplement Context engineering content extension
03-Dify Agent Creation Step-by-Step Tutorial Dify Agent Creation Step-by-Step Tutorial
04-Hello-agents Course Common Questions Datawhale Course Common Questions
05-Agent Skills vs MCP Comparison Agent Skills vs MCP Technical Comparison
06-GUI Agent Overview and Hands-on Practice GUI Agent concepts and practical tutorials
07-Environment Configuration Environment Configuration

PDF Version Download

  This Hello-Agents PDF tutorial is completely open source and free. To prevent various marketing accounts from adding watermarks and selling it to multi-agent system beginners, we have pre-added a Datawhale open source logo watermark that does not affect reading in the PDF file. Please understand~

Hello-Agents PDF: https://github.com/datawhalechina/hello-agents/releases/tag/V1.0.0
Hello-Agents PDF Domestic Download: https://www.datawhale.cn/learn/summary/239

💡 How to Learn

  Welcome, future builder of intelligent systems! Before embarking on this exciting journey, please allow us to give you some clear guidance.

  This project balances theory and practice, aiming to help you systematically master the entire process of designing and developing from single agents to multi-agent systems. Therefore, it is especially suitable for AI developers, software engineers, students with some programming foundation, as well as self-learners with a strong interest in cutting-edge AI technology. Before learning this project, we hope you have basic Python programming skills and a basic conceptual understanding of large language models (for example, knowing how to call an LLM through an API). The focus of the project is on application and construction, so you do not need a deep background in algorithms or model training.

  The project is divided into five major parts, each being a solid step towards the next stage:

  • Part 1: Agent and Language Model Fundamentals (Chapters 1-3), we will start from the definition, types, and development history of agents, sorting out the ins and outs of the concept of "agents." Then, we will quickly consolidate the core knowledge of large language models, laying a solid theoretical foundation for your practical journey.

  • Part 2: Building Your LLM Agent (Chapters 4-7), this is the starting point of your hands-on practice. You will personally implement classic paradigms such as ReAct, experience the convenience of low-code platforms like Coze, and master the application of mainstream frameworks like Langgraph. Finally, we will also guide you to build your own agent framework from scratch, giving you the ability

Extension points exported contracts — how you extend this code

ImportMetaEnv (Interface)
(no doc)
code/chapter14/helloagents-deepresearch/frontend/src/env.d.ts
Location (Interface)
(no doc)
code/chapter13/helloagents-trip-planner/frontend/src/types/index.ts
ImportMeta (Interface)
(no doc)
code/chapter14/helloagents-deepresearch/frontend/src/env.d.ts
Attraction (Interface)
(no doc)
code/chapter13/helloagents-trip-planner/frontend/src/types/index.ts
ResearchRequest (Interface)
(no doc)
code/chapter14/helloagents-deepresearch/frontend/src/services/api.ts
Meal (Interface)
(no doc)
code/chapter13/helloagents-trip-planner/frontend/src/types/index.ts
ResearchStreamEvent (Interface)
(no doc)
code/chapter14/helloagents-deepresearch/frontend/src/services/api.ts
Hotel (Interface)
(no doc)
code/chapter13/helloagents-trip-planner/frontend/src/types/index.ts

Core symbols most depended-on inside this repo

get
called by 990
Co-creation-projects/Apricity-InnocoreAI/frontend/static/js/app.js
get
called by 238
code/chapter9/codebase/api_client.py
run
called by 163
code/chapter4/ReAct.py
search
called by 80
code/chapter7/my_advanced_search.py
run
called by 64
code/chapter10/09_A2A_WithAgent.py
filter
called by 53
Co-creation-projects/lll0807-CodeTutorAgent/programmer/services/problem_repository.py
load_dotenv
called by 50
Co-creation-projects/YYHDBL-HelloCodeAgentCli/code_agent/hello_code_cli.py
_add_to_history
called by 46
Co-creation-projects/Apricity-InnocoreAI/agents/base.py

Shape

Method 1,441
Function 596
Class 363
Route 82
Interface 15

Languages

Python97%
TypeScript3%

Modules by API surface

Co-creation-projects/Apricity-InnocoreAI/frontend/static/js/app.js68 symbols
Co-creation-projects/melxy1997-ColumnWriter/agents.py44 symbols
Co-creation-projects/YYHDBL-HelloCodeAgentCli/memory/types/semantic.py38 symbols
Co-creation-projects/YYHDBL-HelloCodeAgentCli/memory/rag/pipeline.py36 symbols
Co-creation-projects/YYHDBL-HelloCodeAgentCli/memory/types/perceptual.py33 symbols
Co-creation-projects/lgs-only-NovelGenerator/src/app.py32 symbols
code/chapter3/Transformer.py28 symbols
Co-creation-projects/Apricity-InnocoreAI/api/routes/tasks.py27 symbols
code/chapter15/Helloagents-AI-Town/backend/main.py26 symbols
Co-creation-projects/YYHDBL-HelloCodeAgentCli/tools/builtin/protocol_tools.py26 symbols
Co-creation-projects/Apricity-InnocoreAI/agents/validator.py26 symbols
Co-creation-projects/lh2021739-pixel-Personal_Information_Signaling_System/dimension_analysis.py25 symbols

Dependencies from manifests, versioned

@amap/amap-jsapi-loader1.0.1 · 1×
@types/node22.10.5 · 1×
@vitejs/plugin-vue5.2.1 · 1×
ant-design-vue4.2.6 · 1×
axios1.7.9 · 1×
html2canvas1.4.1 · 1×
jspdf3.0.3 · 1×
typescript5.7.3 · 1×
vite6.0.7 · 1×
vue3.5.13 · 1×
vue-router4.5.0 · 1×
vue-tsc2.2.0 · 1×

Datastores touched

innocoreDatabase · 1 repos

For agents

$ claude mcp add hello-agents \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact