AIAny
AI Agent2024
Icon for item

PocketFlow

A 100-line LLM framework built on one graph abstraction of nodes and flows, with zero dependencies and no vendor wrappers. The tiny core composes agents, workflows, and RAG, and is small enough for a coding agent to read and extend on its own.

Introduction

Most LLM frameworks grow by bolting on a wrapper for every model, vendor, and use case until they balloon past 100K lines. PocketFlow bets on the opposite: the entire engine is roughly 100 lines expressing a single idea -- a graph of Nodes wired together by Flows -- and everything richer (agents, RAG, multi-agent systems) is a pattern you compose on top rather than a built-in module.

What Sets It Apart
  • One abstraction, not a feature catalog. Because there is only the graph, the whole framework is learnable in an afternoon; there are no provider classes or chain types to memorize as the ecosystem churns.
  • Zero dependencies, zero vendor lock-in. Nothing is pinned to a specific LLM SDK, so swapping providers or running fully offline is a change in your own node, not a framework migration.
  • Small enough to be read by an AI. The core fits in a single context window, which is the point of its "Agentic Coding" workflow: a human designs the flow and a coding agent fills in the nodes.
  • Size as evidence. Against LangChain (~405K lines) and CrewAI (~18K lines), the 100-line core is a deliberate argument that most framework bulk is incidental, not essential.
Where It Fits

In a field of heavyweight frameworks -- LangChain (~405K lines), LlamaIndex, CrewAI (~18K lines) -- PocketFlow occupies the minimalist extreme. It is closest in spirit to writing your own orchestration, but with just enough structure (the node-and-flow graph) to keep branching, retries, and multi-agent handoffs organized.

Great Fit / Look Elsewhere

Great fit if you want to understand exactly what your agent does line by line, value a dependency-free core, or are pairing with a coding agent that generates the node implementations for you. Look elsewhere if you need an out-of-the-box toolkit -- managed connectors, retrievers, observability, eval harnesses -- since PocketFlow deliberately ships primitives, not batteries, and leaves the LLM calls, parsing, and integrations for you to write.

Information

  • Websitegithub.com
  • OrganizationsThe-Pocket
  • AuthorsThe-Pocket, Zachary Huang
  • Published date2024/12/24

Categories

More Items

Turns fragile, implicit search progress into explicit, persistent, shared state for multi-agent information seeking — externalizes progress as Frontier Task, Evidence Graph, Coverage Map and Failure Memory, and uses pipeline-parallel scheduling plus a middleware harness to avoid repeated failed searches and improve utilization and throughput.

GitHub
AI Agent2026

Provides a lightweight Python harness that turns LLMs into working agents with tool-use, skills, persistent memory, permission controls and multi-agent coordination. Ships with a CLI/React TUI, 43+ built-in tools, a plugin/skill system and the ohmo personal-agent for chat gateways. Best for developers prototyping agent workflows and multi-agent experiments.

GitHub
AI Client2025

Turns Chromium into a local-first AI browser with an embedded assistant that can summarise pages, extract structured data, automate web tasks, and run scheduled agents. Built as an open-source Chromium fork with 53+ built-in browser tools, 40+ app integrations, and support for BYO AI keys or fully local models (Ollama / LM Studio).