Improve a prompt, policy, or configuration. A support assistant's system prompt is one example. Save the champion, its score, a working set, untouched holdout cases, must-pass checks, and [budget]. Each round, change one thing based on a recorded failure. Promote the challenger only if it beats the champion on holdouts by [margin] without weakening a must-pass check; otherwise keep the champion. Stop at the target, budget limit, or no progress. Return the winner, scores, experiment log, and remaining failures.
claude-code · codex
Use this when
Use this to tune a prompt, policy, or configuration when cheap iteration is useful but final acceptance must use fresh examples.
How it runs
Save the current champion, working set, untouched holdout cases, must-pass checks, improvement margin, budget, and experiment log.
Use a recorded failure to propose one targeted challenger and test it on the working set.
Freeze promising challengers and evaluate them on the untouched holdout cases and every must-pass check.
Promote only a meaningful, regression-free holdout win; log every result and return the champion at the stop condition.
Done when
✓ The best holdout-tested champion is returned. Every challenger is logged, and accepted changes beat the previous champion on untouched cases without weakening a must-pass check.
Why it works
Separating the working set from fresh holdout cases limits overfitting. Keeping the current best by default prevents regressions, while a fixed budget bounds the search.
Implementation note
Keep the working set and holdout cases separate: edit against the former, judge final acceptance on the latter. Choose the budget and margin before starting, and do not weaken a must-pass check after a failed challenger.
A quality-improvement workflow that defines expert scoring dimensions, fixes the lowest score, and requires fresh independent rescoring after every pass.
Bring one artifact to a verified 5 out of 5 on every dimension of an expert scorecard. Name the governing expert perspective and define five to nine scored dimensions, wiring objective checks such as tests, lint, build, accessibility, performance, or security scans to any dimensions they cover. Fix only the lowest-scoring dimension each pass. Then have a fresh independent reviewer rescore the whole artifact and name what remains below 5. Never score your own work, fake a 5, pad dimensions, or weaken checks. Stop when every dimension is 5, the lowest score has not risen for two rounds, the budget is spent, blocked, or approval is required.
Before a meaningful action, build a compact current-state model: known facts, uncertainties, missing evidence, relevant systems, constraints, user goals, and granted authority. Identify the risky assumption the agent is tempted to make, then propose the smallest useful next action. Before acting, predict what should change, what should remain unchanged, what evidence will confirm success, and what would count as surprise or failure. Act only if the action is in scope and verifiable. Afterward, compare predicted and actual state, record the trace, and continue only if the model still holds, risk has not increased, and another bounded pass is justified. Stop at target state, material prediction failure, blocker, approval boundary, or no justified next action.
A product research workflow that observes target personas across the complete user journey, separates usability friction from unmet needs, and ranks evidence-backed feature suggestions.
Define two or three target-audience personas from the product positioning, asking if the positioning is unavailable. For one persona at a time, walk the full journey from landing and signup through core workflow, secondary features, limits, return visit, and offboarding using only what that persona could realistically see. Observe only. Record expected versus actual behavior, friction, confusion, delight, and comparable-product mental models. Split findings into usability friction, unmet needs, and feature suggestions tied to a specific journey moment. Stop after one pass per persona and return the personas, journey map, evidence log, ranked suggestions, and any approval boundaries before roadmap or production changes.