Technology · Agentic → Frameworks · Open Source · wiki:deep
DSPy (Stanford) is a declarative framework for programming language-model pipelines as composable modules with signatures, and for optimizing those pipelines with teleprompters against metrics. It treats prompt quality as an optimization problem rather than folklore. In an agentic OS, DSPy is valuable wherever you can define a metric (faithfulness, task success, latency budget) and want systematic improvement of extractors, routers, or proposal writers.
In this catalog it is the Frameworks option when you need to compose multi-step agent loops and tool handoffs. Keep DSPy on the observe/propose side of the loop: useful signals and drafts, with human or policy authority still required before anything irreversible runs.
DSPy programs LM pipelines as modules with signatures, then optimizes prompts/weights against metrics (teleprompters) instead of hand-tuning strings.
Related: mirascope · topics/32-eval-harnesses · topics/12-central-nervous-system
Claims below are backed by science sources on disk.
Primary / product role
DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelines · MODERATE
“We introduce DSPy, a programming model that abstracts LM pipelines as text transformation graphs, i.e. imperative computation graphs where LMs are invoked through declarative modules.”
Docs or contrast
stanfordnlp/dspy repository · MODERATE
“DSPy is a framework for programming—not prompting—language models.”
Additional source
When DSPy vs LangGraph (cross-source) · MODERATE
“DSPy is often a better fit when the primary goal is metric-guided prompt or program optimization.”
9 tags · 38 out · 39 in · 3 artifacts · 1 gaps · 21 corpus docs
map_edge · 13
tech_features · 1
tech_quote · 6
tech_readme · 1