Skip to content
@The-Pocket

The Pocket

100 Lines Let Agents build Agent
  • 🧙 AI systems—where multiple AI components work together to solve complex tasks—are crucial for enterprise automation.

  • 🌈 We envision a future of Agentic Coding: Humans design, while AI Agents code.

  • 🫠 Yet, current AI Agents are overwhelmed by large, complex frameworks.

  • 🔮 Introducing Pocket Flow: a minimal, 100-line framework supporting core AI patterns—batched workflows, multi-agent orchestration, and retrieval-augmented generation—so AI Agents can build on it with ease.

✨ Below are examples of LLM projects built with Pocket Flow:

App Name Difficulty Topics Human Design Agent Code
Danganronpa Simulator
Forget the Turing test. Danganronpa, the ultimate AI experiment!
★★★
Advanced
Workflow
Agent
Design Doc Flow Code
Codebase Knowledge Builder
Life's too short to stare at others' code in confusion
★★☆
Medium
Workflow Design Doc Flow Code
Build Cursor with Cursor
We'll reach the singularity soon ...
★★★
Advanced
Agent Design Doc Flow Code
Ask AI Paul Graham
Ask AI Paul Graham, in case you don't get in
★★☆
Medium
RAG
Map Reduce
TTS
Design Doc Flow Code
Youtube Summarizer
Explain YouTube Videos to you like you're 5
★☆☆
Beginner
Map Reduce Design Doc Flow Code
Cold Opener Generator
Instant icebreakers that turn cold leads hot
★☆☆
Beginner
Map Reduce
Web Search
Design Doc Flow Code

Pocket Flow is initially Python-based, but we now have Typescript, Java, C++ and Go versions. We appreciate help from the open source community's efforts to maintain and document these versions!

Pinned Loading

  1. PocketFlow PocketFlow Public

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

    Python 5.2k 559

  2. PocketFlow-Template-Python PocketFlow-Template-Python Public template

    Pocket Flow Project Template: Agentic Coding for Python

    Python 225 75

  3. PocketFlow-Tutorial-Codebase-Knowledge PocketFlow-Tutorial-Codebase-Knowledge Public

    Pocket Flow: Codebase to Tutorial

    Python 9.2k 953

  4. PocketFlow-Tutorial-Cursor PocketFlow-Tutorial-Cursor Public

    Pocket Flow Tutorial Project: Build Cursor with Cursor

    Python 159 46

  5. PocketFlow-Tutorial-Youtube-Made-Simple PocketFlow-Tutorial-Youtube-Made-Simple Public

    Pocket Flow Tutorial Project: Explain Youtube Video To Me Like I'm 5

    Jupyter Notebook 86 26

  6. PocketFlow-Tutorial-AI-Paul-Graham PocketFlow-Tutorial-AI-Paul-Graham Public

    Pocket Flow Tutorial Project: AI Paul Graham, just in case you don't get in...

    Python 48 10

Repositories

Showing 10 of 16 repositories
  • PocketFlow Public

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

    The-Pocket/PocketFlow’s past year of commit activity
    Python 5,156 MIT 559 35 2 Updated May 27, 2025
  • PocketFlow-Template-Python Public template

    Pocket Flow Project Template: Agentic Coding for Python

    The-Pocket/PocketFlow-Template-Python’s past year of commit activity
    Python 225 74 1 0 Updated May 26, 2025
  • PocketFlow-Tutorial-Codebase-Knowledge Public

    Pocket Flow: Codebase to Tutorial

    The-Pocket/PocketFlow-Tutorial-Codebase-Knowledge’s past year of commit activity
    Python 9,176 MIT 953 36 14 Updated May 23, 2025
  • PocketFlow-Template-Typescript Public template

    Pocket Flow Project Template: Agentic Coding for Typescript

    The-Pocket/PocketFlow-Template-Typescript’s past year of commit activity
    JavaScript 13 13 0 0 Updated May 20, 2025
  • PocketFlow-Go Public

    Pocket Flow: A minimalist LLM framework. Let Agents build Agents!

    The-Pocket/PocketFlow-Go’s past year of commit activity
    Go 19 MIT 8 0 0 Updated May 14, 2025
  • PocketFlow-Tutorial-Danganronpa-Simulator Public

    Danganronpa Simulator: Play Among Us-like Game with AI Agents

    The-Pocket/PocketFlow-Tutorial-Danganronpa-Simulator’s past year of commit activity
    Python 19 MIT 6 3 0 Updated May 11, 2025
  • .github Public
    The-Pocket/.github’s past year of commit activity
    1 2 0 0 Updated May 10, 2025
  • PocketFlow-Rust Public

    Pocket Flow: A minimalist LLM framework. Let Agents build Agents!

    The-Pocket/PocketFlow-Rust’s past year of commit activity
    Rust 10 1 0 0 Updated May 7, 2025
  • PocketFlow-Tutorial-Youtube-Made-Simple Public

    Pocket Flow Tutorial Project: Explain Youtube Video To Me Like I'm 5

    The-Pocket/PocketFlow-Tutorial-Youtube-Made-Simple’s past year of commit activity
    Jupyter Notebook 86 MIT 26 0 0 Updated Apr 17, 2025
  • PocketFlow-CPP Public

    Pocket Flow: A minimalist LLM framework. Let Agents build Agents!

    The-Pocket/PocketFlow-CPP’s past year of commit activity
    C++ 8 MIT 4 0 0 Updated Apr 12, 2025