{"data":{"slug":"the-pocket-pocketflow","name":"PocketFlow","tagline":"Minimalist 100-line LLM framework enabling Agent creation and workflow orchestration.","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":11108,"forks":1210,"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":"Active","stars_delta_30d":120,"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":73,"watchers":99,"ai_summary":"PocketFlow is a lightweight, agentic AI coding platform designed for efficient agent development and deployment. It supports multi-agent systems, workflows, and RAG (Retrieval-Augmented Generation) with minimal dependencies.","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-08-17T06:01:56.21507+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":"agents","name":"agents"},{"slug":"flow-based-programming","name":"flow-based-programming"},{"slug":"llm-framework","name":"llm-framework"},{"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-08-17T06:01:55.408Z","maintenance":{"label":"Active","score":82,"methodology":"github_public_v1","releases_90d":0,"days_since_push":21,"last_release_at":"2025-03-25T14:01:44Z","stars_delta_30d":120,"open_issues_delta_30d":2},"security_summary":{"status":"no_lockfile","scanner":null,"low_count":0,"high_count":0,"last_scan_at":"2026-07-11T11:02:18.814Z","medium_count":0,"scan_profile":"none","critical_count":0}},"capability_facts":{"scan":{"source":"repo_scan","observed_at":"2026-08-17T06:01:55.876Z"},"languages":{"value":["python"],"source":"github.language","observed_at":"2026-08-17T06:01:55.876Z"},"license_spdx":{"value":"MIT","source":"github.license","observed_at":"2026-08-17T06:01:55.876Z"}},"decision_facts":{"hosting":{"model":"unknown","summary":"No specific cloud or hosting requirements mentioned. Its lightweight nature makes it versatile across various deployment environments from local development to cloud-based systems."},"pricing":{"model":"freemium","summary":"Free and open-source, with no direct costs for the core framework but might require additional investment in complementary services or support for larger projects."},"requirements":null,"constraints":{"hosting_model":"unknown","pricing_model":"freemium"},"when_to_use":["- When you need a lightweight solution (<100 lines) that minimizes dependencies and avoids vendor lock-in for developing LLM-based agents.","- If you are working on projects where simplicity and quick prototyping are key, such as in academic research or proof-of-concept development."],"when_not_to_use":["- Avoid if your project requires complex feature integration that typically demands a larger codebase with more extensive dependencies.","- Not suitable for large-scale enterprise applications requiring robust, vendor-supported solutions with comprehensive documentation and support frameworks."],"source":"enrich:decision_facts","observed_at":"2026-07-11T15:40:45.334Z"},"constraint_facets":{"hosting_model":"unknown","pricing_model":"freemium"},"decision_summary":[{"label":"Hosting","value":"unknown - No specific cloud or hosting requirements mentioned. Its lightweight nature makes it versatile across various deployment environments from local development to cloud-based systems."},{"label":"Pricing","value":"freemium - Free and open-source, with no direct costs for the core framework but might require additional investment in complementary services or support for larger projects."},{"label":"Adopt for","value":"PocketFlow is a minimalist 100-line Python framework designed for efficient AI agent development and deployment, offering support for multi-agent systems, workflows, and RAG with very low dependency requirements."},{"label":"License detail","value":"MIT License, allowing for broad usage rights with minimal restrictions."}]}}