Flagship project
IntentOpt
Intent-preserving prompt optimization, evaluated against examples.
IntentOpt is a Python command-line tool and Claude Code plugin for improving a single prompt while keeping its constraints, literals and intended task. It generates candidate rewrites, runs them against scenarios, and returns your original when the configured checks cannot support a change. It is a development build, not a stable release and not a claim of state-of-the-art performance.
The project is presented as IntentOpt. The Python package, executable and local state folder are still named autoimprover for compatibility.
How it works
Measured by running the prompt, not by grading its wording.
A task model runs the original and each rewrite on test scenarios, either your examples or ones the tool writes. A separate judge checks the outputs without seeing candidate rewrite text. With reference examples, it can infer missing rules and score agreement with expected outputs. Without them, outputs are compared in both answer orders, and a scenario counts only when both orders agree, so a judge that favors a position produces ties, not wins.
| --time | Tier | What runs | Held-out check |
|---|---|---|---|
| 15 to 24 s | Quick | The intent contract and one rewrite side by side, then a contract check. No scenario is scored. | No |
| 25 to 59 s | Fast | 2 to 4 scenarios with up to 3 rewrites, scored by a pairwise judge. Noise is measured by comparing the original with itself. | No |
| 1 to 9 min | Checked | The fast stages with up to 6 rewrites, then the winner and the original on held-out scenarios on the model you will use. | Yes, on the configured check |
| 10 min and up | Deep | A GEPA search (reflective prompt evolution) whose result must pass the configured held-out check. | Yes, on the configured check |
Try it
Inspect the plan first. It costs nothing.
Requires Python 3.12+ and uv. The dry run makes no model calls and writes nothing.
# from a checkout of the repository
git clone https://github.com/ItsUkrainianCat/intentopt.git && cd intentopt
uv run --frozen autoimprover --dry "Summarize meeting notes in five bullet points."
# live run with your own examples (uses your Claude subscription)
uv run --frozen autoimprover --file prompt.txt --examples examples.jsonl --time 2mInside Claude Code
The repository is also a Claude Code plugin that adds /improve and its alias /optimize. A result appears in the prompt box as a draft; the plugin sends nothing for you.
claude plugin marketplace add ItsUkrainianCat/intentopt
claude plugin install autoimprover@intentoptNeeds Claude Code 2.1.287 or later. The repository documents a live check of the plugin on 2026-10-05; parts of the result pane are verified only by running it.
Evidence / pilot observation
What the first live experiment showed, and what it cannot show.
IntentOpt's research record reports one live experiment on three synthetic policy tasks. It is the strongest result we have, and it is also small, tuned-on, and unpublished at the artifact level. The tool helped on two tasks and kept the original prompt on the third, where a naive rewrite scored higher.
Author-reported pilot / hidden examples passed
34 of 48 versus 23 of 48 for the original prompts
| Task (of 16) | Original | Naive rewrite | IntentOpt |
|---|---|---|---|
| Priority | 8 | 12 | 15 |
| Refund | 8 | 4 | 12 |
| EscalationIntentOpt kept the original prompt; the naive rewrite scored higher. | 7 | 12 | 7 |
From IntentOpt's development record (work package 24, 2026-10-07). One run, three synthetic policy tasks, 16 hidden examples each. The tasks were also used while the tool was being tuned, so they are not an untouched test set. Raw run artifacts are not published, and later changes to example splitting were not part of this run. Treat it as a pilot observation, not a benchmark result or a claim of state-of-the-art performance. Full record and limitations
Limits
What not to conclude.
- The pilot covers three synthetic policy tasks. It says nothing about writing, coding or science prompts.
- The contract check is model-mediated and can miss changes in meaning. Human review is still needed.
- Fast and quick runs are not verified on held-out scenarios. The verified label records a configured check, not a guarantee.
- Live runs send prompts, examples and replies to the configured model backend. Use data you are allowed to share.
- Live runs need the claude CLI and consume subscription usage. Another backend is a roadmap item.
Research roadmap
The next work is reproducible evaluation, not a bigger claim.
Each milestone is complete only when its evidence can be inspected. These are proposed milestones, not funded commitments or promised dates.
01Reproduce the current reference pipeline
Done when: Public sanitized run artifacts, recomputable scores, per-task outcomes and run-to-run variation
02Expand evaluation coverage
Done when: Versioned dataset, documented split policy, reference review and leakage audit
03Compare methods fairly
Done when: Original, one-call rewrite and gated optimizer under declared budgets, with ablations
04Audit intent preservation
Done when: Human review rubric, anonymized decisions and a measured violation rate
05Test live operational behavior
Done when: Sanitized smoke-test records for checked and deep tiers, resume, and the Claude Code plugin
06Improve backend portability
Done when: Compatibility tests and a limited live evaluation on a second backend
07Prepare a stable release
Done when: Passing checks, release notes and reproducible install instructions
Financial support could fund repeated model evaluations, human review and artifact preparation. See how partnerships work.
Read the source of record