PocketFlow
StaleDescription
PocketFlow is a minimalist 100-line LLM framework that lets Agents build Agents, enabling complex AI agent workflows through a clean abstraction layer.
Key Features
- Only 100 lines of code, zero dependencies, zero vendor lock-in — ultra lightweight
- Graph-based abstraction supporting Agent, Multi-Agent, Workflow, and RAG design patterns
- Supports Agentic Coding — let AI agents like Cursor build agents for 10x productivity
- Available in Python, TypeScript, Java, C++, Go, Rust, and PHP
- Rich cookbook examples: Chat, Structured Output, Streaming, Guardrail, and more
- Install via pip or copy the 100-line source directly — minimal onboarding friction
Use Cases
Categories
Quick Start
Install via pip install pocketflow, or copy the 100-line pocketflow/__init__.py directly from GitHub. Build Chat, RAG, and Agent apps quickly using cookbook examples. Docs at the-pocket.github.io/PocketFlow.