luochang212/dive-into-langgraph
About
LangGraph 1.0 Tutorial
Learning & EducationMeasured star growth
- in 24h
- +1
- in 7 days
- +3
- in 15 days
- +5
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
docs/README-en.md
Original
Dive into LangGraph
中文 | English
📢 News
✨ 2026-03-02 Update
This tutorial has been converted into an Agent Skill. Now you don't need to learn this tutorial manually — just install this Skill for your Claude Code, and you can write high-quality LangChain and LangGraph code. See details: SKILL.md
Install this Skill using npx (dive-into-langgraph):
npx skills \
add https://github.com/luochang212/dive-into-langgraph \
--skill dive-into-langgraph
1. Introduction
In mid-October 2025, LangGraph released version 1.0. The team announced this as a stable release and expects the interfaces not to change significantly, so now is a great time to learn it.
This is an open-source ebook project designed to help Agent developers quickly master the LangGraph framework. LangGraph is an open-source agent framework developed by the LangChain team. It's powerful — memory, MCP, guardrails, state management, and multi-agent capabilities are all built in. LangGraph is typically used together with LangChain: LangChain provides the building blocks and tools, while LangGraph focuses on workflow orchestration and state management. Therefore, both libraries need to be learned. To help you ramp up quickly, this tutorial extracts the most important features from both libraries and organizes them into 14 chapters.
2. Installation
uv sync
To install the latest compatible stable releases, run uv sync --upgrade from the project directory. The tutorial's LangGraph CLI requires prerelease OpenTelemetry dependencies.
Dependency list
The main dependencies are declared in pyproject.toml; uv.lock is the source of truth for exact versions:
pydantic
python-dotenv
rank-bm25
langchain[mcp,openai]
langchain-text-splitters
langchain-tavily
langgraph
langgraph-cli[inmem]
langgraph-checkpoint-sqlite
langgraph-checkpoint-redis
langmem
ipynbname
fastmcp
beautifulsoup4
requests
scikit-learn
supervisor
jieba
ddgs
deepagents
Code quality and Git hooks
Install the repository's pre-commit hook after the first checkout:
uv run pre-commit install
The hook checks repository-wide Ruff formatting and linting before every commit without rewriting files. Run the same checks used by CI manually with:
uv run pre-commit run --all-files
3. Contents
Quick overview of the tutorial:
| # | Chapter | Main Content |
|---|---|---|
| 1 | Quickstart | Create your first ReAct Agent |
| 2 | State Graph | Create workflows using StateGraph |
| 3 | Middleware | Implement four features with custom middleware: budget control, message truncation, sensitive word filtering, PII detection |
| 4 | Human-in-the-Loop | Implement human-in-the-loop using built-in HITL middleware |
| 5 | Memory | Learn how to create short-term and long-term memory |
| 6 | Context Engineering | Manage context using State, Store, Runtime |
| 7 | MCP Server | How to create MCP Server and integrate with LangGraph |
| 8 | Supervisor Pattern | Implement a tool-calling supervisor, with a brief introduction to langgraph-supervisor |
| 9 | Parallelization | How to implement concurrency: node concurrency, @task decorator, Map-reduce, Sub-graphs |
| 10 | RAG | Implement RAG: Vector Retrieval, Keyword Retrieval, Hybrid Retrieval |
| 11 | Web Search | Implement web search functionality: DashScope, Tavily, DDGS, and Exa MCP |
| 12 | Deep Agents | Brief introduction to Deep Agents |
| 13 | Gradio APP | Build a streaming chat agent app with Gradio |
| 14 | Appendix: Debug UI | Introduction to the debug UI provided by langgraph-cli |
[!NOTE]
Commitment: This tutorial is written entirely against LangGraph v1.0, with no residual content from v0.6.
4. Debug UI
langgraph-cli provides a debugging UI that can be launched quickly.
langgraph dev
See details: Appendix: Debug Page
5. Hands-on Project
Chapter 13 open-sources an Agent application implemented with Gradio + LangChain. The effect is shown below. You can add more features to this application and customize your own Agent.

See: /app
6. Further Reading
Official Documentation:
Official Tutorials:
7. How to Contribute
We welcome any form of contribution!
- 🐛 Report bugs — please open an Issue
- 💡 Suggest features — share your ideas
- 📝 Improve content — help enhance the tutorial
- 🔧 Optimize code — submit a Pull Request
8. Star History
9. License
This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Explore related projects
Loading…