AI PR review CLI

Agent Diff Sentinel

A tiny open-source CLI that scans AI-assisted git diffs for risky files, missing tests, secrets, dependency drift, and oversized changes before a PR lands.

$ git diff main...HEAD | agent-diff-sentinel
Agent Diff Sentinel: 38/100 Grade D
2 files, +4/-0
Touched areas: auth, dependencies, security

[HIGH] Secret-looking value added
  File: src/auth/session.ts
  Action: Move value to env and rotate it.

[MEDIUM] No tests changed
  Action: Add tests or manual verification.

Risky area detection

Flags auth, billing, database, CI, security, and dependency changes so reviewers know where to look first.

Review receipts

Outputs text, JSON, or Markdown reports with evidence and a concrete next action for each finding.

CI friendly

Use --fail-on high to block obviously risky AI-assisted diffs while keeping normal review fast.