7runs is an open-source CLI that runs your AI agent N times against a golden test suite and reports what one run can never tell you: pass rate with an honest confidence interval, flakiness, and whether your last change made things worse.
Pass rate against a golden set — measured, not vibes. Deterministic matchers plus an LLM judge for the fuzzy parts.
Same input, N runs. Agents are non-deterministic — one run proves nothing. Flakiness is a first-class metric here, not a footnote.
Compare any two runs. Regressions beyond statistical noise turn your CI red. Noise doesn't.
name: pr-review-inspector
adapter:
type: claude-agent
agent: .claude/agents/security-inspector.md
defaults:
reps: 7
timeout_s: 180
cases:
- id: sql-injection-obvious
label: positive
input:
prompt: "Review this diff for security issues:"
files: [fixtures/diff-sqli.patch]
checks:
- regex: "VERDICT:\\s*ISSUE_FOUND"
- llm_rubric: "Finding names the vulnerable parameter."
- id: clean-diff-no-false-positive
label: negative
input:
prompt: "Review this diff for security issues:"
files: [fixtures/diff-clean.patch]
checks:
- regex: "VERDICT:\\s*CLEAN"
Every case runs N times (default 7). Stable-pass, stable-fail, or flaky — the flaky ones are where agents burn you in production.
Every llm_rubric check is judged twice. If the judges disagree, the result is disputed — counted against you and listed separately. Raw judge output is stored for audit.
The unit under test is the whole agent — multi-turn, tool-using, black box. First-class adapter for Claude Code / Claude Agent SDK, plus a shell adapter for anything you can invoke from a command line.
No telemetry. No database. No network calls except to the model APIs you configured. Runs live in .7runs/ on your filesystem; API keys live in env vars, never on disk.
7runs initScaffolds config and an example suite you can edit.
7runs run suite.yamlExecutes every case × N reps with a concurrency pool. Wrong answers are never retried — that would corrupt the statistics.
7runs report latestSelf-contained HTML + JSON. Add --ci --baseline in CI to fail builds on real regressions.
No hosted dashboard (yet). No prompt auto-tuning. No step-level assertions on intermediate tool calls — transcripts are recorded when available, but checks target final output only. If you ship agents to production and want to shape what gets built next, we're looking for a handful of design partners. Say hello on X.