resources

Prompt Optimisation & Supporting Tools

Automated Prompt Optimisation

Automated prompt optimisation uses algorithms (evolutionary, feedback-driven, gradient-based, or evaluation-loops) to systematically refine prompts for LLMs, reducing manual engineering and improving task accuracy/performance.

https://www.awesomepython.org/?q=auto-prompting

agent-lightning (Microsoft)

Repo: github.com/microsoft/agent-lightning

Description: Framework to “train” agents by optimizing prompts (APO) and other components with minimal/near-zero code changes, and works across many agent stacks. (GitHub)

FAQ


dspy (StanfordNLP)

Repo: github.com/stanfordnlp/dspy

Description: A declarative framework for building modular LM “programs” that can be compiled/optimized into better prompts (and sometimes learned parameters) for tasks like classification, RAG, and agents. (GitHub)

FAQ


gepa (gepa-ai)

Repo: github.com/gepa-ai/gepa

Description: “Genetic-Pareto” optimization for systems made of text components (prompts/specs/code snippets), using reflective edits guided by execution + evaluation traces against any metric. (GitHub)

FAQ

Resources

Videos


promptfoo

Repo: github.com/promptfoo/promptfoo

Description: Prompt/model evaluation toolkit (plus red teaming) to test prompts, compare providers/models side-by-side, and automate checks in CI/CD. (GitHub)

FAQ


AdalFlow (SylphAI)

Repo: github.com/SylphAI-Inc/AdalFlow

Description: A PyTorch-like SDK for building LLM workflows with “auto-differentiative” prompt optimization (zero-shot + few-shot) so you can train prompts against a dataset/metric. (GitHub)

FAQ


promptomatix (SalesforceAIResearch)

Repo: github.com/SalesforceAIResearch/promptomatix

Description: Framework to automate prompt creation/optimization from natural-language task descriptions; supports multiple optimization paths (including a DSPy-powered compiler per the paper). (GitHub)

FAQ


PromptWizard (Microsoft)

Repo: github.com/microsoft/PromptWizard

Description: Discrete prompt optimization that “self-evolves” by generating, critiquing, and refining both instructions and in-context examples via iterative feedback. (GitHub)

FAQ


AutoPrompt (Eladlev)

Repo: github.com/Eladlev/AutoPrompt

Description: Prompt optimization pipeline aimed at real-world use: auto-generates prompts tailored to intent and iteratively “calibrates” them using challenging edge cases. (GitHub)

FAQ


prompt-ops (Meta Llama)

Repo: github.com/meta-llama/prompt-ops

Description: Open-source prompt optimization centered on PDO (Prompt Duel Optimizer): a label-free method using dueling bandits + Thompson sampling to pick better prompts via pairwise comparisons. (GitHub)

FAQ


sammo (Microsoft)

Repo: github.com/microsoft/sammo

Description: Structure-aware multi-objective metaprompt optimization: treats prompts as structured “programs” and searches over transformations (e.g., add/remove/replace components) to improve outcomes. (GitHub)

FAQ


automatic_prompt_engineer (keirp)

Repo: github.com/keirp/automatic_prompt_engineer

Description: Research code for APE (“Large Language Models Are Human-Level Prompt Engineers”): generates many instruction candidates with an LLM and selects the best via a score function. (GitHub)

FAQ


prompt-optimizer (vaibkumr)

Repo: github.com/vaibkumr/prompt-optimizer

Description: Prompt compression tooling: minimizes token complexity to reduce API cost/compute while tracking token reduction and semantic similarity; supports “protected tags” to preserve key parts. (GitHub)

FAQ