Comparison

DSPy vs Letta

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

Letta

Stateful agents with long-term memory (formerly MemGPT).

  • + First-class long-term memory and stateful agents
  • + Lets agents persist and self-edit context
  • − Narrower focus than general orchestration frameworks
  • − Memory model adds complexity
Spec DSPy Letta
Role Agent framework Agent framework
Tags agent-framework, library agent-framework, library, multi-agent
License MIT Apache-2.0
Open source Yes Yes
Self-hostable Yes Yes
MCP support No Yes
Pricing free freemium
Starting price BYOK usage cost Self-host free
Models byok claude, gpt, gemini, byok
Languages python python
GitHub stars 35.5k 23.5k
Last activity 2026-06-25 2026-06-26