LLM Framework
10.6k 2026-05-06
The-Pocket/PocketFlow
A minimalist, 100-line LLM framework designed for building AI agents and workflows with zero bloat and maximum expressiveness.
Core Features
Extremely lightweight with only 100 lines of code and zero dependencies.
Supports advanced LLM patterns like Agents, Multi-Agents, Workflows, and RAG.
Enables 'Agentic Coding' for 10x productivity by letting AI agents build other agents.
Offers multi-language versions including Typescript, Java, C++, Go, Rust, and PHP.
Quick Start
pip install pocketflowDetailed Introduction
Pocket Flow is a groundbreaking minimalist LLM framework that challenges the complexity of existing solutions by offering a powerful, yet incredibly compact, 100-line codebase. It empowers developers to rapidly build sophisticated AI agents and workflows without the overhead of extensive dependencies or vendor lock-in. By focusing on core functionalities and promoting 'Agentic Coding,' Pocket Flow significantly boosts productivity, allowing AI to assist in the creation of AI, making it an ideal choice for lean, efficient, and highly expressive LLM application development across various programming languages.