PocketFlow  by The-Pocket

Minimalist LLM framework for agentic coding

Created 1 year ago
10,087 stars

Top 5.0% on SourcePulse

GitHubView on GitHub
Project Summary

Pocket Flow is a minimalist LLM framework designed for rapid development of agentic applications, targeting developers who need a lightweight and dependency-free solution. It enables complex patterns like multi-agent systems, workflows, and RAG within a remarkably small codebase, facilitating "agentic coding" where AI agents assist in building other agents.

How It Works

The core of Pocket Flow is its abstraction of LLM frameworks into a "Graph" concept, implemented in just 100 lines of code. This minimalist approach allows for easy implementation of common LLM design patterns such as agents, workflows, and RAG. The framework emphasizes zero bloat, zero dependencies, and zero vendor lock-in, making it highly portable and adaptable.

Quick Start & Requirements

  • Install via pip install pocketflow or by copying the source code.
  • No non-default prerequisites are listed.
  • Documentation and tutorials are available via provided links.

Highlighted Details

  • Minimalist design: 100 lines of code, ~56KB size.
  • Supports multiple LLM patterns: Agents, Workflows, RAG, Map-Reduce, etc.
  • Cross-language support: Python, TypeScript, Java, C++, Go versions available.
  • Agentic Coding paradigm: AI agents assist in building LLM applications.

Maintenance & Community

  • Active community engagement via Discord.
  • Multiple language ports suggest broader development interest.

Licensing & Compatibility

  • The README does not explicitly state a license. This requires clarification for commercial use or closed-source integration.

Limitations & Caveats

The absence of an explicitly stated license is a significant caveat for adoption, especially in commercial contexts. The "dummy" difficulty rating for many basic tutorials might not accurately reflect the learning curve for complex patterns.

Health Check
Last Commit

1 week ago

Responsiveness

1 day

Pull Requests (30d)
2
Issues (30d)
2
Star History
428 stars in the last 30 days

Explore Similar Projects

Starred by Eric Zhu Eric Zhu(Coauthor of AutoGen; Research Scientist at Microsoft Research), Elvis Saravia Elvis Saravia(Founder of DAIR.AI), and
2 more.

deepagents by langchain-ai

2.0%
10k
Framework for building advanced LLM agents
Created 7 months ago
Updated 1 day ago
Starred by Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems") and Elvis Saravia Elvis Saravia(Founder of DAIR.AI).

DeepCode by HKUDS

0.7%
15k
AI agents transform ideas into production-ready code
Created 9 months ago
Updated 1 week ago
Feedback? Help us improve.