{"data":{"slug":"the-pocket-pocketflow","name":"PocketFlow","tagline":"100-line minimalist LLM framework","github_url":"https://github.com/The-Pocket/PocketFlow","owner":"The-Pocket","repo":"PocketFlow","owner_avatar_url":"https://avatars.githubusercontent.com/u/193350244?v=4","primary_language":"Python","stars":11178,"forks":1212,"topics":["agentic-ai","agentic-framework","agentic-workflow","agents","ai-framework","ai-frameworks","aiagent","aiagents","artificial-intelligence","flow-based-programming","flow-engineering","large-language-model","large-language-models","llm-agent","llm-framework","pocket-flow","pocketflow","retrieval-augmented-generation","workflow","workflow-orchestration"],"archived":false,"github_pushed_at":"2026-07-26T16:13:20+00:00","maintenance_label":"Steady","stars_delta_30d":70,"url":"https://www.graphcanon.com/tools/the-pocket-pocketflow","markdown_url":"https://www.graphcanon.com/tools/the-pocket-pocketflow.md","api_url":"https://www.graphcanon.com/api/graphcanon/tools/the-pocket-pocketflow","graph_url":"https://www.graphcanon.com/api/graphcanon/graph?tool=the-pocket-pocketflow","description":"Pocket Flow: 100-line LLM framework. Let Agents build Agents!","homepage_url":"https://the-pocket.github.io/PocketFlow/","license":"MIT","open_issues":75,"watchers":105,"ai_summary":"Pocket Flow is a lightweight, 100-line LLM framework that supports multi-agents, workflow, and RAG, enabling agentic coding and AI agent development.","readme_excerpt":"<div align=\"center\">\n  <img src=\"https://github.com/The-Pocket/.github/raw/main/assets/title.png\" alt=\"Pocket Flow – 100-line minimalist LLM framework\" width=\"600\"/>\n</div>\n\n\n\nEnglish | [中文](https://github.com/The-Pocket/PocketFlow/blob/main/cookbook/pocketflow-batch/translations/README_CHINESE.md) | [Español](https://github.com/The-Pocket/PocketFlow/blob/main/cookbook/pocketflow-batch/translations/README_SPANISH.md) | [日本語](https://github.com/The-Pocket/PocketFlow/blob/main/cookbook/pocketflow-batch/translations/README_JAPANESE.md) | [Deutsch](https://github.com/The-Pocket/PocketFlow/blob/main/cookbook/pocketflow-batch/translations/README_GERMAN.md) | [Русский](https://github.com/The-Pocket/PocketFlow/blob/main/cookbook/pocketflow-batch/translations/README_RUSSIAN.md) | [Português](https://github.com/The-Pocket/PocketFlow/blob/main/cookbook/pocketflow-batch/translations/README_PORTUGUESE.md) | [Français](https://github.com/The-Pocket/PocketFlow/blob/main/cookbook/pocketflow-batch/translations/README_FRENCH.md) | [한국어](https://github.com/The-Pocket/PocketFlow/blob/main/cookbook/pocketflow-batch/translations/README_KOREAN.md)\n\n\n\n <a href=\"https://discord.gg/hUHHE9Sa6T\">\n    <img src=\"https://img.shields.io/discord/1346833819172601907?logo=discord&style=flat\">\n</a>\n\nPocket Flow is a [100-line](https://github.com/The-Pocket/PocketFlow/blob/main/pocketflow/__init__.py) minimalist LLM framework\n\n- **Lightweight**: Just 100 lines. Zero bloat, zero dependencies, zero vendor lock-in.\n  \n- **Expressive**: Everything you love—([Multi-](https://the-pocket.github.io/PocketFlow/design_pattern/multi_agent.html))[Agents](https://the-pocket.github.io/PocketFlow/design_pattern/agent.html), [Workflow](https://the-pocket.github.io/PocketFlow/design_pattern/workflow.html), [RAG](https://the-pocket.github.io/PocketFlow/design_pattern/rag.html), and more.\n\n- **[Agentic Coding](https://zacharyhuang.substack.com/p/agentic-coding-the-most-fun-way-to)**: Let AI Agents (e.g., Cursor AI) build Agents—10x productivity boost!\n\nGet started with Pocket Flow:\n- To install, ```pip install pocketflow```or just copy the [source code](https://github.com/The-Pocket/PocketFlow/blob/main/pocketflow/__init__.py) (only 100 lines).\n- To learn more, check out the [video tutorial](https://youtu.be/0Zr3NwcvpA0) and [documentation](https://the-pocket.github.io/PocketFlow/)\n- 🎉 Join our [Discord](https://discord.gg/hUHHE9Sa6T) to connect with other developers building with Pocket Flow!\n- 🎉 Pocket Flow now has [Typescript](https://github.com/The-Pocket/PocketFlow-Typescript), [Java](https://github.com/The-Pocket/PocketFlow-Java), [C++](https://github.com/The-Pocket/PocketFlow-CPP), [Go](https://github.com/The-Pocket/PocketFlow-Go), [Rust](https://github.com/The-Pocket/PocketFlow-Rust) and [PHP](https://github.com/The-Pocket/PocketFlow-PHP) versions!\n\n## Why Pocket Flow?\n\nCurrent LLM frameworks are bloated... You only need 100 lines for LLM Framework!\n\n<div align=\"center\">\n  <img src=\"https://github.com/The-Pocket/.github/raw/main/assets/meme.jpg\" width=\"400\"/>\n\n\n  |                | **Abstraction**          | **App-Specific Wrappers**                                      | **Vendor-Specific Wrappers**                                    | **Lines**       | **Size**    |\n|----------------|:-----------------------------: |:-----------------------------------------------------------:|:------------------------------------------------------------:|:---------------:|:----------------------------:|\n| LangChain  | Agent, Chain               | Many <br><sup><sub>(e.g., QA, Summarization)</sub></sup>              | Many <br><sup><sub>(e.g., OpenAI, Pinecone, etc.)</sub></sup>                   | 405K          | +166MB                     |\n| CrewAI     | Agent, Chain            | Many <br><sup><sub>(e.g., FileReadTool, SerperDevTool)</sub></sup>         | Many <br><sup><sub>(e.g., OpenAI, Anthropic, Pinecone, etc.)</sub></sup>        | 18K           | +173MB                     |\n| S","github_created_at":"2024-12-24T02:43:30+00:00","created_at":"2026-07-07T17:33:57.681675+00:00","updated_at":"2026-09-20T04:33:40.085485+00:00","categories":[{"slug":"ai-agents","name":"AI Agents","url":"https://www.graphcanon.com/categories/ai-agents","markdown_url":"https://www.graphcanon.com/categories/ai-agents.md","api_url":"https://www.graphcanon.com/api/graphcanon/categories/ai-agents"},{"slug":"llm-frameworks","name":"LLM Frameworks","url":"https://www.graphcanon.com/categories/llm-frameworks","markdown_url":"https://www.graphcanon.com/categories/llm-frameworks.md","api_url":"https://www.graphcanon.com/api/graphcanon/categories/llm-frameworks"}],"tags":[{"slug":"agentic-ai","name":"agentic-ai"},{"slug":"agentic-framework","name":"agentic-framework"},{"slug":"agents","name":"agents"},{"slug":"ai-framework","name":"ai-framework"},{"slug":"flow-based-programming","name":"flow-based-programming"},{"slug":"large-language-model","name":"large-language-model"},{"slug":"llm-agent","name":"llm-agent"},{"slug":"retrieval-augmented-generation","name":"retrieval-augmented generation"}],"trust":{"provenance":{"is_fork":false,"github_id":907624056,"owner_type":"Organization","methodology":"github_public_v1","parent_repo":null,"near_duplicate_slugs":[]},"computed_at":"2026-09-18T08:49:33.654Z","maintenance":{"label":"Steady","score":60,"methodology":"github_public_v1","releases_90d":0,"days_since_push":53,"last_release_at":"2025-03-25T14:01:44Z","stars_delta_30d":70,"open_issues_delta_30d":2},"security_summary":{"status":"no_lockfile","scanner":null,"low_count":0,"high_count":0,"last_scan_at":"2026-09-18T08:49:35.839Z","medium_count":0,"scan_profile":"none","critical_count":0}},"capability_facts":{"scan":{"source":"repo_scan","observed_at":"2026-09-18T08:49:32.547Z"},"languages":{"value":["python"],"source":"github.language","observed_at":"2026-09-18T08:49:32.547Z"},"license_spdx":{"value":"MIT","source":"github.license","observed_at":"2026-09-18T08:49:32.547Z"}},"decision_facts":{"hosting":null,"pricing":null,"requirements":null,"constraints":null,"when_to_use":["When you need a lightweight framework with minimal dependencies for developing AI agents and workflows.","If you are looking for a tool that supports agentic coding, allowing AI agents to build other agents, potentially boosting productivity.","For projects that require a small footprint and easy integration without vendor lock-in."],"when_not_to_use":["If your project requires extensive features and integrations that go beyond the minimalist design of PocketFlow.","When you need a more comprehensive framework with a larger codebase to support complex functionalities not covered by PocketFlow.","If you are working in a language other than Python, as PocketFlow's primary implementation is in Python, although other language versions are available."],"source":"enrich:decision_facts","observed_at":"2026-09-18T11:25:44.350Z"},"constraint_facets":null,"decision_summary":[{"label":"Adopt for","value":"PocketFlow is a minimalist LLM framework, designed for agentic coding and AI agent development, with support for multi-agents, workflow, and RAG, all in just 100 lines of Python code."}]}}