Technology · Agentic → Workflow Orchestration · Open Source · wiki:deep

PocketFlow

PocketFlow is a minimalist graph library for composing LLM tasks as nodes — intentionally tiny orchestration core with little framework weight. Good for teaching/prototyping graph ideas or embedding a small graph inside a worker. Not a Temporal replacement for cross-service durability. Pocket Flow: 100-line LLM framework. Let Agents build Agents! English | 中文 | Español | 日本語 | Deutsch | Русский | Português | Français | 한국어 - Lightweight: Just 100 lines. Zero bloat, zero dependencies, zero vendor lock-in. - Expressive: Everything you love—(Multi-)Agents, Workflow, RAG, and more. - Agentic Coding: Let AI Agents (e.g., Cursor AI) build Agents—10x productivity boost! Get started with Pocket Flow: - To install, pip install pocketflowor just copy the source code (only 100 lines). - To learn more, check out the video tutorial and documentation - 🎉 Join our Discord to.

Why it matters here

In this catalog it is the Workflow Orchestration option when you need to run durable multi-step jobs with retries and state. Keep PocketFlow on the observe/propose side of the loop: useful signals and drafts, with human or policy authority still required before anything irreversible runs.

How it works

Workflows are coded or declared; the engine persists state, retries activities, and wakes on signals/timers until completion.

  1. Declare the workflow/graph and activity boundaries.
  2. Configure durable state / event history storage.
  3. Run a failing activity and confirm retry/resume behavior.
  4. Expose signals/timers the agent host will use in production.

Related: langgraph · burr · topics/01-architecture · topics/12-central-nervous-system

Flow

When to reach for it

  • Use when: PocketFlow is a minimalist graph library for composing LLM tasks as nodes — intentionally tiny orchestration core with little framework weight matches the bottleneck and you specifically need to run durable multi-step jobs with retries and state.
  • Skip when: another pack already covers the need with less ops surface, or PocketFlow would become a second place people retype truth.
  • Prefer instead: compare LangGraph, Burr before locking the cell.

Limits

  • Ops: confirm license, hosting, and release cadence for PocketFlow (The-Pocket/PocketFlow) before relying on it in a live corridor.
  • Integration: bad credentials, scopes, or schema drift produce empty retrievals or runaway tool/model spend without an obvious UI alarm.
  • Scope: Workflow Orchestration components support agents; they are not the company ledger or the approval authority.

What we checked

Claims below are backed by science sources on disk.

Primary / product role

PocketFlow documentation · MODERATE

“The agent engineering platform.”

Docs or contrast

LangGraph contrast · MODERATE

“PocketFlow is a minimalist graph library for composing LLM tasks as nodes — intentionally tiny orchestration core with little framework weight.”

Additional source

The-Pocket/PocketFlow · MODERATE

“For developing, debugging, and deploying AI agents and LLM applications, see LangSmith.”
Research inventory

9 tags · 19 out · 20 in · 3 artifacts · 1 gaps · 20 corpus docs

Catalog tags

landscape.layer
Agentic
landscape.subcategory
Workflow Orchestration
license_tag
Open Source
maps.dm
absent
maps.features
11
one_liner
Workflow Orchestration
review.depth
science
slug
pocketflow
title
PocketFlow

Artifacts

  • dm_map · absent
  • features_map · present · technologies/pocketflow/features.md
  • readme · present · technologies/pocketflow/README.md

Out · alternative_to

Out · maps_to

In · alternative_to

In · in_stack

In · maps_to

Corpus tags

category
Agentic → Workflow Orchestration
dedication
open-source
feature
closed-execution-loop
os-execution
pulse-event-automation
r2-12-central-nervous-system
r2-37-sleep-orchestration
temporal-coherence
triggers-channel-coverage
workflow-orchestration
wt-control-flow
wt-runtime
wt-triggering
kind
map_edge
tech_features
tech_quote
tech_readme
needs_deepen
false
quality
ok
slug
pocketflow
source_id
langgraph-contrast
pocketflow-docs
pocketflow-github
technology
pocketflow

Corpus documents (20)

map_edge · 11

  • pocketflow → closed-execution-loop
  • pocketflow → os-execution
  • pocketflow → pulse-event-automation
  • pocketflow → r2-12-central-nervous-system
  • pocketflow → r2-37-sleep-orchestration
  • pocketflow → temporal-coherence
  • pocketflow → triggers-channel-coverage
  • pocketflow → workflow-orchestration
  • … +3 more

tech_features · 1

  • PocketFlow · features

tech_quote · 7

  • PocketFlow · langgraph-contrast
  • PocketFlow · langgraph-contrast
  • PocketFlow · langgraph-contrast
  • PocketFlow · pocketflow-docs
  • PocketFlow · pocketflow-docs
  • PocketFlow · pocketflow-github
  • PocketFlow · pocketflow-github

tech_readme · 1

  • PocketFlow