PocketFlow
PocketFlow is a minimalist LLM framework whose core is just 100 lines of Python with no dependencies. Its premise is that the essential abstraction behind LLM frameworks is a graph: nodes that do work and the flow between them. On top of that abstraction you can implement agents, multi-agent systems, workflows, RAG and other patterns yourself, without vendor-specific or app-specific wrappers.
It suits developers who want to understand and fully control their agent logic, educators and learners who want to see how LLM applications work under the hood, and anyone frustrated by heavy frameworks and their dependency trees. The project also promotes "agentic coding": because the framework is so small, coding agents such as Cursor can read it entirely and build PocketFlow applications for you. Ports exist for TypeScript, Java, C++, Go and other languages, and the documentation includes design patterns and a large cookbook of examples.
Getting started: `pip install pocketflow`, or simply copy the single 100-line source file into your project. Follow the documentation's design patterns to build an agent or workflow from nodes and flows.
Features
Why choose it
Trade-offs
Maintenance check
- Last commit
- 2026-07-26
- Commits, last 90 days
- 0
- Releases, last 90 days
- 0
- Latest release
- v0.0.0 (2025-03-25)
- Open issues
- 76
- Recent issues with at least one comment
- 14/25
Oldest week on the left; the latest four weeks are orange. Source: GitHub commit activity.
Status rule: archived on GitHub = Archived; last commit within 90 days = Active; 91 to 365 days = Slowing; older = Stale. All figures come from the GitHub API on the date shown.
Most discussed open issues
- #12 请问支持流式返回吗11 comments · 2025-03-20
- #2 Feature Requests11 comments · 2025-01-05
- #74 如何优雅的结束Flow10 comments · 2025-06-11
- #119 Proposal: Create a Rust Template Repository for PocketFlow9 comments · 2025-11-05
- #54 provide exec_res_list for batchflow?8 comments · 2025-05-09
Issue titles are quoted from GitHub. Open the link to check whether a problem still applies to the version you use.
Compatibility
Quick start
Use cases
Alternatives
Comments
No comments yet. Be the first!