Microsoft's PromptWizard has crossed 3,830 stars on GitHub, making it the most-starred dedicated prompt optimization repository. It joins Microsoft UniPrompt and Microsoft PromptKit in a growing portfolio that signals where Microsoft thinks prompt engineering tooling is heading.

Here is what PromptWizard does, how it fits Microsoft's portfolio, and why 3,830 stars matters.

What PromptWizard Does

PromptWizard (microsoft/PromptWizard) is a task-aware, agent-driven prompt optimization framework. Published at ACL Findings 2025, it takes a fundamentally different approach from tools like DSPy that optimize prompts through programmatic search.

The core mechanism is feedback-driven self-evolution:

  1. Generate. The LLM generates candidate prompts and examples.
  2. Critique. The LLM evaluates its own candidates against task performance.
  3. Refine. The LLM revises prompts and examples based on critique feedback.
  4. Synthesize. The framework combines diverse examples with chain-of-thought reasoning steps.

This cycle runs iteratively. The LLM acts as both the creator and the critic of its own prompts. The key insight is that the LLM's ability to critique and refine its own output produces better prompts than random search or manual tuning alone.

Three core components drive the optimization:

  • Instruction optimization. Stage 1 iteratively refines the task instruction through generate-critique-refine cycles.
  • Example optimization. Stage 2 sequentially optimizes instructions and in-context examples in tandem, not separately.
  • Self-generated chain-of-thought. Combines positive, negative, and synthetic examples with reasoning steps.

The framework supports three usage scenarios:

  1. Optimize prompts without examples (zero-shot optimization)
  2. Generate synthetic examples and use them to optimize prompts
  3. Optimize prompts with existing training data

The Portfolio: PromptWizard, UniPrompt, PromptKit

PromptWizard does not exist in isolation. Microsoft has been building out a prompt optimization portfolio:

PromptWizard (3,830 stars) handles automated prompt and example optimization through feedback-driven self-evolution. It optimizes both instructions and examples simultaneously. Think of it as the optimizer.

UniPrompt provides a unified prompt optimization interface. It standardizes the API surface for prompt optimization, making it easier to swap optimization methods without changing your pipeline. Think of it as the abstraction layer.

PromptKit (v0.6.0, 51 stars, 11 forks) provides 157 composable prompt components across 4 pipelines: 15 personas, 48 protocols, 21 formats, and 64 templates. It includes adversarial audit and drift detection workflows. Think of it as the component library.

The three tools cover different parts of the prompt engineering lifecycle:

  • PromptKit gives you composable building blocks
  • PromptWizard optimizes those blocks automatically
  • UniPrompt standardizes how you call and compare optimization methods

This is not accidental. Microsoft is building a full-stack prompt optimization ecosystem. The research (ACL Findings 2025) validates the approach. The tooling (PromptWizard on Azure AI Foundry Labs) provides production access. The component library (PromptKit) provides the material. The unified interface (UniPrompt) ties it together.

Why 3,830 Stars Matters

Star count is not a quality metric. But it is an adoption signal. And in the prompt optimization space, 3,830 stars is significant for three reasons:

  1. It outpaces research frameworks. DSPy (33K+ stars) has more total stars, but DSPy is a full framework with years of community building. PromptWizard's star growth rate signals that developers are adopting automated prompt optimization beyond the research community.
  1. It signals vendor commitment. Microsoft is not just publishing research. They are shipping production tooling on Azure AI Foundry Labs, maintaining active development (last push as of this article), and building a portfolio approach. This signals long-term investment, not a one-off paper.
  1. It tracks a real pain point. Manual prompt engineering is slow, inconsistent, and does not scale. Every team that has spent hours iterating on prompt wording knows this pain. PromptWizard automates the iteration cycle. The star growth reflects teams reaching for that automation.

How PromptWizard Differs From DSPy

This is the question everyone asks. Both optimize prompts. Both are open source. Both have academic publications.

The core difference is the optimization philosophy:

  • DSPy uses programmatic search over prompt candidates, often with metric-driven optimization. You define a metric, and the framework searches for prompts that maximize it.
  • PromptWizard uses the LLM itself as both generator and critic. The LLM generates candidates, evaluates them, and refines them iteratively.

DSPy is more mechanistic. PromptWizard is more LLM-native. Neither is universally better. DSPy excels when you have clear metrics and want deterministic optimization. PromptWizard excels when you want the LLM to leverage its own reasoning to improve prompts.

The practical difference for teams: PromptWizard requires fewer labeled examples and no metric function definition. You give it a task description and a base instruction, and it iterates. DSPy requires you to define what "good" looks like programmatically.

Getting Started

PromptWizard runs locally with API access to OpenAI or Azure OpenAI:

git clone https://github.com/microsoft/PromptWizard
cd PromptWizard
python -m venv venv && source venv/bin/activate
pip install -e .

Configure your API keys in .env, set your task description and base instruction in promptopt_config.yaml, and run the optimization. Expect 20-30 minutes for standard datasets.

The project page at microsoft.github.io/PromptWizard provides documentation, demos, and configuration guides.

The Bigger Picture

Prompt optimization is consolidating from fragmented research tools into vendor-supported production frameworks. Microsoft's portfolio approach (PromptWizard + UniPrompt + PromptKit) is the most visible example, but Meta's prompt-ops (with PDO) and the open-source ecosystem around DSPy show the same trend.

The field is moving from "try different prompts and see what works" to "define what you want and let the optimizer find it." PromptWizard's 3,830 stars suggest developers are ready for that shift.

Citations

Suggested Title

PromptWizard Hits 3,830 Stars: Microsoft's Prompt Optimization Portfolio Keeps Growing

Word Count

1,043

Fact-Check Notes

  • 3,830 stars: Verified via GitHub (microsoft/PromptWizard) as of search result
  • 336 forks: Verified via GitHub
  • ACL Findings 2025: Confirmed via ACL Anthology (aclanthology.org/2025.findings-acl.1025)
  • Azure AI Foundry Labs: Referenced in Microsoft Research blog post; verify current availability
  • PromptKit v0.6.0 (51 stars): From prior article research; verify current count
  • UniPrompt: From prior article; Microsoft unified optimization interface
  • Last push date: Verify current activity on GitHub