Repository navigation
promptcheckup 1.0.0
The first public release of promptcheckup: know whether a prompt change actually made your agent better.
pip install promptcheckupHighlights
-
A statistical gate:
- a paired 95% t confidence interval with an exact Student t quantile;
- at least 20 cases;
- three verdicts: better, worse, or not sure yet;
- a skew guard that refuses "better" when a few large losses hide among small gains.
-
Paired replay. Every case runs through both prompts back to back, so shared noise cancels. Outputs are cached, calls are capped, and errors are reported, never dropped.
-
promptcheckup gatecompares the prompts in a pull request with its base branch, and a workflow template comments the report on the pull request. -
promptcheckup checkup, the weekly check-up:- drift against last week's snapshot, including after a prompt change, so an unreviewed merge is caught;
- failure patterns;
- one small proposed edit that must pass the gate.
It never merges.
-
promptcheckup evolve: repeated proposals, learned on one fixed set of cases and gated on held-out cases at a stricter confidence for every extra round. It never merges. -
A trial ledger reports how many variants were tried on the same cases and how many false "better" verdicts that many trials would produce by chance.
-
promptcheckup doctorchecks a project's wiring in seconds, including whether the agent really uses the prompts it is given. -
promptcheckup.testing:assert_better,assert_not_worseandassert_no_lookaheadfor an existing test suite. -
Judge mode: pairwise, order-swapped comparisons with a self-check against the old prompt on every run, and protection against data that tries to inject instructions.
-
Agents in any language: a Python function or any command speaking JSON over stdin and stdout, with
@recordto capture real cases and redaction before anything is stored or sent.
Evidence
- In the gate benchmark, comparing prompts run on different weeks picked the worse prompt 41.3% of the time; paired replay picked it 0% of the time.
- In a simulated year of weekly check-ups:
- a silent provider regression was flagged in 87.5% of incident weeks;
- an unreviewed prompt regression was flagged in 98.5%;
- quiet weeks raised about one false alarm per year.
- In the trading example, a win count favoured the new policy 26 to 13, but the gate said "not sure yet". Across all 2,085 ticker-days its true edge is indistinguishable from zero.
Every number is reproducible from the repository, and a test checks the README against the committed results. See the changelog for the full list.