DSPy

Programmatic prompts: define the task, optimise the instructions.

Free tier Open source; model costs are yours Verified 2026-11-25 codingpromptsoptimisationframework

Use it for

Pipelines where prompt wording is tuned against a metric

Skip it if

One-off prompts — the optimisation needs data and a metric

A framework that treats prompts as parameters: you define modules and a metric, and it optimises the instructions against examples. The idea is valuable and the precondition is strict — you need a dataset and a check, which most teams do not have when they start.

Related tools

All tools

3 alternatives overlap with this one. Compare them →

Skills that work with it

All skills