#4343rd of 242 in Agent frameworks and SDKs

dspy

Python framework for building LM programs and optimizing their prompts and weights

Stars
39.3k
License
MIT
Last commit
Nov 2026
Last release
Nov 2026
Language
Python
Stars, last 35 weeks+6,387
25 Mar 2026: 32,910 stars1 Apr 2026: 33,115 stars8 Apr 2026: 33,305 stars15 Apr 2026: 33,512 stars22 Apr 2026: 33,714 stars29 Apr 2026: 33,887 stars6 May 2026: 34,043 stars13 May 2026: 34,212 stars20 May 2026: 34,368 stars27 May 2026: 34,519 stars3 Jun 2026: 34,673 stars10 Jun 2026: 34,830 stars17 Jun 2026: 34,965 stars24 Jun 2026: 35,235 stars1 Jul 2026: 35,580 stars8 Jul 2026: 35,827 stars15 Jul 2026: 36,028 stars22 Jul 2026: 36,193 stars29 Jul 2026: 36,348 stars5 Aug 2026: 36,533 stars12 Aug 2026: 37,051 stars19 Aug 2026: 37,349 stars26 Aug 2026: 37,542 stars2 Sept 2026: 37,680 stars9 Sept 2026: 37,836 stars16 Sept 2026: 38,035 stars23 Sept 2026: 38,210 stars30 Sept 2026: 38,416 stars7 Oct 2026: 38,535 stars14 Oct 2026: 38,644 stars21 Oct 2026: 38,739 stars28 Oct 2026: 38,866 stars4 Nov 2026: 38,967 stars11 Nov 2026: 39,063 stars18 Nov 2026: 39,181 stars25 Nov 2026: 39,297 stars

32,910 on 25 Mar 202639,297 on 25 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

On Hacker NewsRead 29 Nov 2026 from Hacker News search.

Overview

DSPy lets you write LM pipelines as modular Python code instead of hand-written prompts. It includes optimizers that tune prompts and weights against a metric, covering use cases from classifiers to RAG pipelines and agent loops. LM access goes through bundled native lm15 engines, with no LiteLLM dependency.

Who it is for: Python developers building and tuning LM pipelines, RAG and agents

Strengths

  • Optimizers tune prompts and weights from code and metrics, replacing manual prompt editing
  • Compositional Python modules for classifiers, RAG pipelines and agent loops
  • Backed by published papers, including GEPA and MIPRO
  • Installs with a single pip command, MIT licensed

Weaknesses

  • README defers nearly all usage detail to the external docs site
  • LM layer moved off LiteLLM to lm15, with breaking changes to provider options
  • Custom LMs, text completions and embeddings need migration per the guide
  • Declarative module and optimizer model has a learning curve versus plain prompting

What it needs

  • Needs Python, lm15 (bundled)
  • Models: provider LMs via bundled lm15 engines

What changed

  1. 3.4.0 ↗ (opens in a new tab)Breaking

    “Breaking change: override the runtime in rlm(...) and rlm.acall(...) with the keyword-only interpreterfactory= option, supplying a zero-argument factory. Live interpreter instances and positional fac…”

From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS

Also in Agent frameworks and SDKs

See all 242
Also in Agent frameworks and SDKs
RankProjectScore
#41open-multi-agentTypeScript runtime for multi-agent teams with approval gates and offline run review7.1k starsMIT83 out of 100
#42ruby_llmRuby library for chat, tools, agents and evals across 23 LLM providers4.5k starsMIT83 out of 100
#44semantic-kernelModel-agnostic SDK for building agents and plugins in C#, Python and Java28.8k starsMIT82 out of 100
#45langchainjsTypeScript framework for building LLM apps and agents with swappable model integrations18.4k starsMIT82 out of 100
#46llmCommand-line tool and Python library for prompting local and hosted LLMs Live demo ↗ (opens in a new tab)12.9k stars+168 (+1.3%) in 30 daysApache-2.082 out of 100