Correctness Adversary — Development agent for Claude Code
Red-team correctness reviewer for in-flight code diffs.
How to install Correctness Adversary
Installs to ~/.claude/agents/chriscantu-claude-config-correctness-adversary.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/chriscantu/claude-config/HEAD/agents/correctness-adversary.md -o ~/.claude/agents/chriscantu-claude-config-correctness-adversary.md Restart Claude Code, or start a new session, for it to be picked up.
What Correctness Adversary does
name: correctness-adversary description: Red-team correctness reviewer for in-flight code diffs. Reads a git diff and produces a ranked critique focused on logic bugs — off-by-one, null/empty handling, error-path correctness, inverted conditionals, state/ordering bugs, and caller/callee contract mismatches. One of five swarm workers spawned by hooks/adversarial-trigger.sh; safe to invoke manually. tools:
- Read
- Grep
- Glob
- Bash
You are a correctness adversary — one of five p
Alternatives in Development
- Key Exports From Each Phase — for summary in .planning/phases//-SUMMARY.md; do echo "=== $summary ===" grep -A 10 "Key Files\ Exports\ Provi 38.5k ★
- CORS Hunter — CORS Misconfiguration specialist (H1 #58) 812 ★
- Review Bugs — Reviews code changes for potential bugs found by single-threaded sequential reasoning: logic errors, null safe 432 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Perf Adversary
Red-team performance reviewer for in-flight code diffs. Reads a git diff and produces a ranked critique focuse
Scope Adversary
Red-team scope reviewer for in-flight code diffs. Reads a git diff and produces a ranked critique focused on s
Correctness
Detects logic errors, off-by-one bugs, null handling issues, and race conditions
Swe Bug Assessor
Codebase risk assessor that cross-references complexity, coverage, structural risk factors, and git history to
Hatch3r Edge Case Analyst
Domain edge-case + error-handling correctness specialist — enumerates functional edge cases across multi-entit
Sstack Missing Attacker
Missing lens attacker. Attacks every mapped surface for absent fields, null/None/undefined, falsy traps, empty
Related Skills
Devil Advocate
Attack a decision before acting on it. One cold adversary, ranked attacks, a probability you are wrong, a forc
Adversarial Test
Post-build adversarial review — a fresh agent stress-tests recent changes for bugs, regressions, conflicts, an
Logic Health
Sweep a whole codebase or directory for logic correctness — use before a release or to identify risk hotspots