PocketFlow  by The-Pocket

Minimalist LLM framework for agentic coding

Created 1 year ago
9,434 stars

Top 5.4% 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

2 weeks ago

Responsiveness

1 day

Pull Requests (30d)
4
Issues (30d)
3
Star History
272 stars in the last 30 days

Explore Similar Projects

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

2.8%
14k
AI agents transform ideas into production-ready code
Created 8 months ago
Updated 4 days ago
Feedback? Help us improve.