PocketFlow

The-Pocket/PocketFlow

Pocket Flow: 100-line LLM framework. Let Agents build Agents!

11k
Stars
1.2k
Forks
71
Open issues
97
Watchers
Python MITLast pushed Mar 27, 2026

Pocket Flow: 100-line LLM framework. Let Agents build Agents!

Categories

Tags

Similar tools

Install

pip install PocketFlow

README

Pocket Flow – 100-line minimalist LLM framework

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:

Why Pocket Flow?

Current LLM frameworks are bloated... You only need 100 lines for LLM Framework!

AbstractionApp-Specific WrappersVendor-Specific WrappersLinesSize
LangChainAgent, ChainMany
(e.g., QA, Summarization)
Many
(e.g., OpenAI, Pinecone, etc.)
405K+166MB
CrewAIAgent, ChainMany
(e.g., FileReadTool, SerperDevTool)
Many
(e.g., OpenAI, Anthropic, Pinecone, etc.)
18K+173MB
S