microsoft/promptwizard

Task-Aware Agent-driven Prompt Optimization Framework

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 19 minutes ago
Added to GitGenius on September 17th, 2026
Created on May 30th, 2024
Open Issues & Pull Requests: 23 (+0)
GitHub issues: Enabled
Number of forks: 354
Total Stargazers: 4,010 (+0)
Total Subscribers: 29 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 12.7 hours
Mean response time: 8.7 days
90th percentile: 37.5 days
Tracked items: 28

Most active contributors

Sign in to see contributor activity.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 15
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 401 days
Stale 30+ days: 15
Stale 90+ days: 15

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

PromptWizard is a prompt optimization framework that automatically refines language model prompts through iterative self-improvement cycles.

The tool addresses the challenge of manually crafting effective prompts by implementing a feedback-driven mechanism where the language model generates, critiques, and refines both its own instructions and in-context examples. The framework operates through two sequential stages: first optimizing the prompt instructions themselves, then jointly optimizing instructions alongside synthetic examples. It generates diverse, task-aware examples and combines them with positive and negative samples to create self-generated chain-of-thought reasoning steps, enabling continuous improvement without manual intervention.

Developers should adopt this tool when they need to optimize prompts for specific tasks without extensive manual tuning. The framework supports three usage scenarios: optimizing prompts alone, generating synthetic examples to improve prompts, or leveraging existing training data for optimization. It suits projects where prompt quality directly impacts model performance and where iterative refinement through automated feedback is preferable to hand-crafted solutions. The tool requires configuration through YAML files and environment variables, with examples provided for specific datasets like GSM8k, and supports custom datasets through documented procedures.

The maintainers respond to new issues and pull requests within a day.