rea-ci-tests-audit
MOmorluto/rea486k8,943 new stars in the last 7 days
Regression check for coding agents: shows how the agent behaved before and after each harness update, model switch, or week in the user's own Claude Code or Codex history, and finds the point where it changed. Use when the user says the agent's quality dropped or it got worse, dumber, lazier, or degraded since an update or since they upgraded; asks whether a new Claude Code or Codex version or model made it worse than the old one; wants to know which release, version, or week it regressed in; or wants numbers to report a regression, such as reads before edits, interruptions, and corrections per version. Runs locally and reads transcripts only; nothing goes over the network.
When a coding agent seems worse after an update, the user's own session history can show whether it changed and when. This skill splits the user's Claude Code or Codex sessions by harness version, model, or week, measures the same behavior in each (reads before the first edit, reads per edit, edits to files not read first, interrupts, corrections, failed tool calls, output, cost), and places the change at the update, or within the span of versions, where the numbers moved, along with anything else that changed at the same point. It reads local transcripts, prints counts and rates, never prints prompt text, and sends nothing anywhere.
session-waste-report.runaway-guard.harness-test-drive.claim-check.rules-to-guards.Tell the user this when they ask what the check looks at:
~/.claude/projects/, Codex under ~/.codex/sessions/), only those changed within the window. Prompt text is read on this machine only to spot corrections such as "no, that's wrong".--out or --svg, which write the one file named.<skill-dir> means the folder that holds this SKILL.md (Claude Code shows it as the skill's base directory). Keep the quotes around the script path in every command: skill folders can sit under paths with spaces.
Run the default check. Pick the harness the user asks about (claude-code by default, or codex) and run:
python3 "<skill-dir>/scripts/regress.py" --harness claude-code
It reads the last 90 days and splits by harness version. Match the flags to the question:
| The user says | Add |
|---|---|
| "since the last Codex update" | --harness codex |
| "since I switched to the new model" | --by model |
| "worse these past few weeks" | --by week |
| "in my api repo" | --project <that folder> |
| "since the spring" | --since 180d |
It takes a few seconds per thousand sessions and exits 0 even when it finds nothing. Done when the output starts with a bold headline, or you have told the user the exact error.
Answer the user's own question first. If the user named an update or a time such as last week, find it in the By version table first. If it was not tested, lead with that (for example: 2.1.280 had 7 sessions, and the test needs 20 on each side), then give the headline as background, not as the answer. The notes list every update that was not tested, with its sessions.
Then read the headline. It is one of these kinds:
2.1.270, your agent reads 41% less before it edits...", or "After an update between Claude Code 2.1.260 and 2.1.270, ..." when the test had to borrow neighboring versions. The change lies somewhere in that span; say the span, not one version. Go to step 3.--since 180d, when the history goes back that far), a split by time (--by week), and last a lower bar (--min-sessions 12, the floor). A lower bar tests more updates, but each test can only catch larger changes.Done when the user's own update or time is answered, or you know which kind of headline it is.
Follow each confounder. A confounder is anything else that changed at the same update and could explain the numbers. The section "What else changed at the same point" lists them, and the headline ends with "but ... changed at the same point" or "both sides were in use at the same time" when they exist. For each line:
--by model and see whether the change follows the model instead.--by version.--project argument the line prints. Copy the --project argument exactly as printed, quotes included.Done when each confounder line has a rerun result or a one-sentence explanation for the user.
Offer the chart when something is flagged and the user wants to see it or share it:
python3 "<skill-dir>/scripts/regress.py" --harness claude-code --svg regression.svg
It writes one small line chart per flagged number to the path given, and nothing else. Done when you have given the user the path, or the user declined.
Report in the shape below.
--json prints the same result for a program: headline, totals, thresholds, slices, tests (every comparison, flagged or not), flagged, stand_outs, confounders, untested, left_out, and notes.Open references/metrics.md to explain what a number measures and why it matters, and references/statistics.md when the user asks how sure the result is or why a visible change was not flagged.
--project <path> or --by model.--json for the data and --svg for the chart.session-waste-report.An example of the shape (the numbers are invented):
After Claude Code
2.1.270, your agent reads 41% less before it edits and gets interrupted twice as often.
Where What changed Before After Change Sessions after 2.1.270Reads before the first edit (session median) 5 3 -41% 34, 29 after 2.1.270Interrupts per 100 turns (session mean) 4.1 8.3 +102% 34, 29 Nothing else changed at that update: same model, same projects. Next: read the
2.1.270entry in the Claude Code changelog, and if it matches, file it with--jsonand--svg.
When nothing was flagged, say what was compared (versions, sessions, turns) and that small histories cannot show small changes; quote no percentages as findings.
Quote versions, models, and paths exactly as the report prints them, inside inline code: it shows the home folder as ~, and it has already made any text taken from transcripts safe to display.
scripts/regress.py: the check. Flags: --harness, --by version|model|week, --since 90d, --project, --min-turns 30, --min-sessions 20 (at least 12), --svg <path>, --json, --out <path>, --fail-on worse|any (exit 1 when a flagged change usually means worse, or when anything is flagged).scripts/transcripts.py, scripts/pricing.py, scripts/safe.py: the shared reader for session files, the price table, and the text cleaner that puts transcript text in the report inside inline code; several skills in this repository use them.references/metrics.md: each number's definition and why it matters, next to the method of issue #42796.references/statistics.md: the test, the thresholds, the minimum samples, how changes are placed, and the limits.MOmorluto/rea486k8,943 new stars in the last 7 days
MOmorluto/rea486k8,943 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
Block dangerous git commands like push and reset --hard before they execute.
MAmattpocock/skills337k4,978 new stars in the last 7 days