What is Promptcheckup?
Promptcheckup is an open-source command-line tool for testing whether a change to an AI agent’s prompt improves its results. It runs old and new prompts on the same cases, then reports whether the change appears better, worse, or inconclusive. Developers can connect a Python function or a program that reads JSON on standard input and writes JSON on standard output, and run checks locally or in CI. It supports Python 3.11 and later and has no dependencies beyond the Python standard library.
Promptcheckup Features:
Paired Prompt Replay: Runs both prompt versions back to back on the same cases, giving each run its own copy of the input.
Confidence-Based Verdict: Calculates a 95% confidence interval for the average per-case score difference and reports better, worse, or not sure yet.
Scoring Options: Accepts a custom scoring function or written criteria for a model judge to compare pairs of answers.
Judge Self-Check: Checks a model judge against old-prompt answers compared with themselves, and shows how often its verdict changes when answer order is reversed.
CI Gate: Compares the working tree with a Git reference and returns distinct exit codes for better, worse, inconclusive, or error results.
Drift Checkups: Compares current answers with a saved snapshot, groups failing cases, and proposes a prompt edit tested against held-out cases.
Setup and Tests: Creates a starter configuration, example cases, and GitHub workflow templates, and includes checks for setup and time-series lookahead.
Promptcheckup Benefits:
Fairer Comparisons: Testing both prompts on the same inputs reduces the risk of mistaking changes in traffic, model behavior, or other conditions for a prompt improvement.
Fewer Guesswork Decisions: An inconclusive verdict gives teams a reason to gather more evidence instead of treating a small or uncertain score difference as a win.
Catch Hidden Losses: The check can flag a few large regressions that might be obscured by many smaller gains in an overall average.
Review Before Merge: A failing CI gate can stop a prompt regression from passing unnoticed, while proposed edits remain available for human review.
Find Silent Changes: Regular comparisons with a saved baseline help teams investigate quality shifts even when nobody has changed the prompt.
Use Cases:
Prompt Pull Requests: Run a gate when a developer changes an agent prompt, so reviewers can see whether it improves results before merging.
Weekly Quality Checks: Compare an agent’s current answers with a saved snapshot to investigate possible model or provider changes.
Support Bot Tuning: Use a set of support cases to test whether a revised response prompt produces better answers than the existing version.
Trading Agent Tests: Score outputs using a custom measure such as next-day profit and loss when evaluating a prompt change for a trading agent.
Time-Series Safety: Check whether an agent making time-based decisions uses information from later rows that would not have been available at decision time.

