Developer building blocks

DSPy

A Python toolkit for building AI programs with code instead of hand-written prompts.

Coding needed
Developers only
Drafted with AIWidely usedResearch-backedMostly for developers

What it does

DSPy is a framework, a set of ready-made building blocks, for people who build software on top of language models (the AI behind chatbots). Instead of writing long, fragile instructions (prompts) by hand, you describe what you want in Python code.

DSPy then helps the AI give better answers. It includes methods that automatically improve the prompts, and even the model's internal settings, based on how well the program does.

Its makers say it works for simple sorting tasks, systems that look up documents before answering, and AI agents that take steps on their own. The name stands for Declarative Self-improving Python.

Who it's for

Python programmers and researchers who build apps or experiments on top of language models.

Can I use it without coding?

Developers only. It is a Python library, so you need to write code to use it. New to this? Start here.

Try it

Using Claude Code, Cursor or another AI coding assistant? Paste the prompt and it will walk you through the setup.New to this?

Before you install

  • Only download from the official GitHub page. Copies with similar names exist for many popular projects.
  • Plain-AyI is an independent guide and doesn't host or review the software it lists. Please check each project's official page before installing.
  • License (MIT): Very permissive: free to use, change and share, including for business.
  • More on staying safe

Where people are talking about it