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.
Birfy
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.

16K 185 18
zou-group
textgrad

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

11K 4K 293
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.

4K 1 0
WecoAI
weco

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

3K 117 16
sutro-sh
jev-align

Build calibrated AI Functions from human feedback using Jev and GEPA.

2K 307 24
novaleolin
evalfloor

EvalFloor: is your LLM eval improvement real? Trying k prompt variants and keeping the best scores points on noise alone — this computes how many.

2K 1 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.

2K 88 5
sshah03
shrewd

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

2K 3 0
edvardgrishin27
nativeprompt

Переписывает промпт под правила модели, где вы работаете (Claude Opus 5.5, Fable 5.1, GPT-6 Astra/Sol/Luna, Codex), и подсказывает, на каком уровне усилий её запускать. Каждый совет со ссылкой на официальную документацию. Без API-ключей, без зависимостей, офлайн.

2K 128 13
JarJarBeatyourattitude
evalt

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

1K 0 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
synth-laboratories
synth-optimizers

GEPA and GELO optimizer runbooks, SDKs, and hosted optimizer surfaces for Synth.

1K 9 0
hibou04-ops
omegaprompt

The overfit gate for your prompts: re-test the winning prompt on held-out examples it never tuned on, and block the ship if it doesn't generalize. Sits on top of promptfoo/DSPy. CLI + MCP + CI.

900 1 0
vrraj
axiolex

Shared tool discovery and execution for AI clients and applications across MCP, A2A, and internal tools—intent-ranked Top-K retrieval with centrally managed provider and tool changes

733 0 0
mjbommar
logillm

LogiLLM - Zero-dependency enterprise alternative to dspy

575 2 0
05satyam
instructvault

Git-native prompt linting, testing, versioning, and CI—without a hosted prompt registry.

573 5 4
microsoft
trace-opt

End-to-end Generative Optimization for AI Agents

536 763 63
SuperagenticAI
dspy-code

Claude Code for DSPy: Comprehensive CLI to Optimize Your DSPy Code. our AI-Powered DSPy Development Assistant

522 77 8
hxaxd
kochab

A minimal reference implementation of the agent-to-data loop, turning agent evaluations, real-world traces, and human feedback back into training data.

436 0 0
SuperBruceJia
promptcraft

PromptCraft is a prompt perturbation toolkit from the character, word, and sentence levels for prompt robustness analysis. PyPI Package: pypi.org/project/promptcraft

424 23 2
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.

421 40 3
rrahimi-uci
ace-playbook

ACE — Agentic Context Engineering: evolving, self-improving context playbooks for LLM agents. Faithful ICLR 2026 implementation with OpenAI Agents SDK support.

333 3 0
arjun988
tuneprompt

PromptForge scores LLM prompts across seven quality dimensions, then rewrites weak prompts into clear, intent-preserving instructions

227 32 2
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology