PyRank
  • Insights
  • PyPI
  • GitHub
  • Search
  • Compare
  • Advisories
  • Ecosystem
  • About

Prompt Optimization Python Packages

Python packages with the GitHub topic prompt-optimization. Sorted by relevance, with stars and monthly downloads.
zou-group
textgrad

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

82K 4K 296
SuperagenticAI
dspy-code

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

17K 76 6
synth-laboratories
synth-optimizers

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

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

3K 1 0
kayumuzzaman
promptune

Local-first CLI that rewrites rough prompts into precise ones before they hit your AI — rule-based, local, or cloud. MIT.

1K 0 0
microsoft
trace-opt

End-to-end Generative Optimization for AI Agents

1K 745 59
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.

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

1K 1 0
05satyam
instructvault

Git-first prompt registry + CI evals + lightweight runtime SDK (ivault).

1K 4 0
AthiraSPillai
aiterate

AI artifact lifecycle management for prompts and agent skills: optimize, evaluate, version, trace, and promote changes from raw data and policies.

886 1 0
tokmacher
tok-protocol

tok is an invisible bridge

828 0 0
kaustav1996
autoresearch-prompt-manager

Autonomous prompt management with versioning, A/B experiments, metrics, and LLM-driven optimization. Built on agno.

496 1 0
SuperBruceJia
promptcraft

PromptCraft: A Prompt Perturbation Toolkit for Prompt Robustness Analysis

484 24 2
immu4989
dspy-security-bench

Measure how DSPy prompt optimization affects the prompt-injection robustness of agentic LLM programs, using AgentDojo's attack suite.

442 4 0
kaustav1996
marketing-agent-example

Example marketing content agent demonstrating the full prompt-manager stack

396 1 0
kaustav1996
autoresearcher-shonku

Autonomous prompt management with versioning, A/B experiments, metrics, and LLM-driven optimization. Built on agno.

392 1 0
JacobHuang91
prompt-groomer

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

285 37 3
yotambraun
flowprompt-ai

Type-safe prompt management with automatic optimization for LLMs. DSPy-style optimization, A/B testing, multimodal support, and more.

284 6 0
JarvisPei
scope-optimizer

SCOPE: Self-evolving Context Optimization via Prompt Evolution - A framework for automatic prompt optimization

271 78 6
tiramisu-sh
evolvers

Evolvable AI programs: define a function + criteria, let an LLM iteratively improve it

241 0 0
kaustav1996
shonku

Build, publish, and run AI agents as PyPI packages — wraps agno

199 1 0
Lancer59
promptfoundry

Runtime prompt control and versioning for production apps

196 0 0
kmrsandeep1998
toonprompt

Universal prompt optimization wrapper for coding CLIs that compresses structured context into Toon-style blocks.

168 1 0
synaptiai
siare

Self-Improving Agentic RAG Engine - Evolve multi-agent RAG pipelines using Quality-Diversity optimization

160 1 0
    • Data from PyPI, GitHub, ClickHouse, and BigQuery