Pocket Flow: 100-line LLM framework. Let Agents build Agents!
Pocket Flow: 100-line LLM framework. Let Agents build Agents!
English | 中文 | Español | 日本語 | Deutsch | Русский | Português | Français | 한국어
Pocket Flow is a 100-line minimalist LLM framework
Lightweight: Just 100 lines. Zero bloat, zero dependencies, zero vendor lock-in.
Expressive: Everything you love—(Multi-)Agents, Workflow, RAG, and more.
Agentic Coding: Let AI Agents (e.g., Cursor AI) build Agents—10x productivity boost!
Get started with Pocket Flow:
pip install pocketflowor just copy the source code (only 100 lines).Current LLM frameworks are bloated... You only need 100 lines for LLM Framework!
The 100 lines capture the core abstraction of LLM frameworks: Graph!
From there, it's easy to implement popular design patterns like (Multi-)Agents, Workflow, RAG, etc.
Want to see other tutorials for dummies? Create an issue!
Through Agentic Coding—the fastest LLM App development paradigm-where humans design and agents code!
✨ Below are examples of more complex LLM Apps:
Want to learn Agentic Coding?
Check out my YouTube for video tutorial on how some apps above are made!
Want to build your own LLM App? Read this post! Start with this template!
pocketflow-agent utils NameError: name 'search_web' is not defined
关于LLM流式输出的疑问
Is there a plan to support Checkpointers?
RLM Example Cookbook
I would like to see a tutorial for the agent to interact with a Database to extract meaningful information in natural language.
PocketFlow编排能力进一步增强的思考
help needed for ArXiv endorsement
Turn SharedData into generic for improved code intelligence / type checking
Proposal: Create a Rust Template Repository for PocketFlow
[Proposal] PocketFlow example: 100-line RAG with WFGY 16-problem debug mode