Skip to content
PyRank
  • Search
  • PyPI
  • GitHub
  • Insights
  • Compare
  • Advisories
  • Ecosystem
  • About

Prompt Optimization Python Packages

Python packages with the GitHub topic prompt-optimization. Sorted by monthly downloads, with stars and forks.
gepa-ai
gepa

Optimize prompts, code, and more with AI-powered Reflective Optimization

11.3M 8K 639
ThinkFlowLab
agentdescent

Gradient descent, but the parameters are agents — a parallel, asynchronous framework for self-evolving agents (skills, prompts, harnesses). Diffs are the gradients; the aggregator is the optimizer.

55K 218 29
zou-group
textgrad

TextGrad: Automatic ''Differentiation'' via Text -- using large language models to backpropagate textual gradients. Published in Nature.

7K 4K 296
daglar-dragomirov
tribes

TRIBES: inference-time answer selection for optimized DSPy programs (GEPA, MIPROv2, SIMBA)

3K 0 0
edsml-jz2321
dsh-evokit

Measured self-improvement for AI systems: paired experiments, noise-aware gates, holdout confirmation. A DeepSeek Harness plugin.

3K 2 0
WecoAI
weco

Production-Grade Autoresearch. Ideal for agent harness engineering, prompt engineering, ML model development, GPU kernels, and other optimizable code.

3K 127 19
memtylabs
memty

User-owned, local-first memory for AI assistants: one private vault for Claude, ChatGPT, Gemini, Perplexity, Cursor, and any MCP client

3K 4 2
RiteshNipane
promptpump

Enhance your prompt from a one-line idea into a production-grade coding prompt, using your own codebase and a local LLM.

2K 2 0
JarJarBeatyourattitude
evalt

Budget-bounded LLM routing that finds the cheapest model and prompt meeting your accuracy target.

2K 0 0
sshah03
shrewd

Turn repeated LLM classification calls into a small, fast, local model for one fixed task.

1K 4 1
PromptPotter
promptpotter

LLM-driven evolution of prompts and pipelines. Evolves the prompt and the pipeline's parameters together against your labeled data, cuts losing candidates early, and shows every measurement behind the winner. Open source.

1K 7 0
nachollorca
promptuna-server

An evaluation and optimization harness for functions that use Language Models.

1K 0 1
nachollorca
promptuna-cli

An evaluation and optimization harness for functions that use Language Models.

1K 0 1
Davidham3
eyas

Train sharp-eyed prompts for multimodal models. A performance-first framework for automatic prompt optimization (APO) across text, image and video tasks.

1K 1 0
baranylcn
strop-cli

Command-line tool that improves LLM prompts by testing them against your own data and keeping a revision only when the measured results get better.

1K 1 1
edvardgrishin27
nativeprompt

Проверяет промпты и файлы инструкций (CLAUDE.md, AGENTS.md, скиллы) по правилам вашей модели: Claude Fable 5.2, Opus 5.5, Sonnet 5.5, Haiku 5.5, GPT-6 и 6.1, Codex, Gemini CLI. Советует уровень усилий. Каждый совет со ссылкой на документацию вендора. Без API-ключей и зависимостей, офлайн.

1K 130 13
sutro-sh
jev-align

Build and optimize AI Functions with pluggable evaluators and GEPA

978 324 26
JacobHuang91
llm-prompt-refiner

🚀 Lightweight Python library for building production LLM applications with smart context management and automatic token optimization. Save 10-20% on API costs while fitting RAG docs, chat history, and prompts into your token budget.

930 40 3
mjbommar
logillm

LogiLLM - Zero-dependency enterprise alternative to dspy

929 2 0
quanghona
aap-core

Agent design pattern common package

899 0 0
microsoft
trace-opt

End-to-end Generative Optimization for AI Agents

700 766 65
synth-laboratories
synth-optimizers

Public Synth optimizer tooling with a Rust GEPA core.

663 9 0
maximerivest
functai

Typed functions whose body a language model writes: run them on tables, measure how often they're right, make them better. Python, TypeScript, R and Julia.

625 91 5
fjjjuv
prompt-flamegraph

Lightweight, zero-dependency Python package to profile LLM prompt tokens with interactive flamegraphs, waste detection, prompt diffs and HTML/SVG/Markdown/terminal exports.

561 1 0
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology