Show HN: Agent-roast – Catches coding agents that weaken tests to get CI green g...

@show

Show HN: Agent-roast – Catches coding agents that weaken tests to get CI green github.com · 3 points · 0 comments · HN thread

TL;DR agent-roast is an offline, deterministic CLI and check (agent hook, Git hook, pull request action) that flags changes which turn CI green by weakening checks rather than fixing code, such as loosened assertions, skipped or deleted tests, lowered coverage thresholds, and CI steps allowed to fail. The author reports measurements including a high share of false alarms on unseen repositories, roughly a quarter to two thirds of blocks depending on the sample. The post has 3 points and no comments yet.

  • Compares the before and after of each change to find weakened checks, which a linter cannot see because each new line looks fine alone.
  • Runs as a Claude Code, Codex or Cursor agent hook, a Git hook, an MCP read-only tool, or a GitHub pull request check; agents get one retry with the before and after before a warning is issued.
  • Works offline with no model, network or telemetry, and reads Git objects without executing project code.
  • Blocking rules cover loosened assertions, guard weakening, test skips, focused tests and trivial assertions; warning rules cover removed tests, swallowed errors and type escapes.
  • Policy is read from HEAD or the base branch so a change cannot relax its own review; exceptions and baselines are supported.
  • Author's measurements: 145 of 145 hand-labeled cheating edits caught, but blocking rules fired on 0.3% of AI-signed and 0.3% of other commits, with no sign AI-signed commits weaken checks more often; the author notes the labeled cases were written alongside the detector.

Discussion No comments have been posted yet, so there is no discussion to summarize. The post is a Show HN launch with 3 points.

#codingAgents #testing #CI #staticAnalysis #showHN