Comparison

DSPy vs PocketFlow

A like-for-like, spec-level comparison. Both entries are verified against their docs and repo.

DSPy

Declarative, programmable prompt programming from Stanford.

  • + Compiles and optimizes prompts instead of hand-writing them
  • + Strong for repeatable, measurable prompt engineering
  • − Different mental model from typical agent frameworks
  • − Smaller ecosystem of tool integrations

PocketFlow

A 100-line minimalist LLM framework, agentic-coding friendly.

  • + Tiny, zero-dependency core that fits in your head
  • + Intuitive enough for AI agents to help build apps with it
  • − You build the higher-level patterns yourself
  • − Small ecosystem of prebuilt integrations
Spec DSPy PocketFlow
Role Agent framework Agent framework
Tags agent-framework, library agent-framework, library, orchestration
License MIT MIT
Open source Yes Yes
Self-hostable Yes Yes
MCP support No No
Pricing free free
Starting price BYOK usage cost BYOK usage cost
Models byok claude, gpt, gemini, byok
Languages python python
GitHub stars 35.5k 10.9k
Last activity 2026-06-25 2026-03-27