Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By 2233adminv0.1.0MIT
GAN-inspired adversarial quality loop for AI coding agents. Hard fitness gates, LLM adversary profiles, and self-calibrating evaluators.
Claude hands work to one, or you mention it with @.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
adversarial, harness, quality-loop, code-review, claude-code, gan-inspired, evaluator, fitness
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
The first GAN-inspired adversarial quality loop for AI coding agents.
╭─────────────── adversarial-harness ───────────────────────╮
│ Task: "Add rate limiting to /api/users" │
│ Profile: strict │ Iterations: 4/5 │
│ │
│ Fitness: ✓ tests ✓ types ✓ lint │
│ Adversary: FAIL → FAIL → FAIL → PASS │
│ │
│ Issues caught & fixed: │
│ R1: [CRITICAL] missing rate limit on DELETE endpoint │
│ R2: [HIGH] race condition in counter increment │
│ R3: [HIGH] no Retry-After header in 429 response │
│ │
│ 3 bugs caught before production. 0 tokens wasted on lint. │
╰───────────────────────────────────────────────────────────╯
AI coding agents write code that looks correct. Tests pass. Linter is clean. The agent says "Done!" — and you ship it.
Then it breaks in production.
Why? Because LLMs evaluating their own work are systematically lenient. They confidently praise mediocre output. They skip edge cases. They don't think like an attacker.
adversarial-harness separates generation from evaluation — inspired by how GANs pit a generator against a discriminator:
┌─────────────┐
│ You write │
│ code │
└──────┬──────┘
│
┌──────▼──────┐
│ LAYER 1 │ Hard fitness: tests, types, lint
│ Fitness ⚡ │ Failed? Fix it. No LLM tokens wasted.
└──────┬──────┘
│ all pass
┌──────▼──────┐
│ LAYER 2 │ Independent LLM with fresh context
│ Adversary 🗡 │ Tries to BREAK your code
└──────┬──────┘
│
┌────────┼────────┐
│ │ │
┌───▼──┐ ┌──▼───┐ ┌──▼───┐
│ PASS │ │ FAIL │ │ MAX │
│ ✓ │ │ fix │ │ iter │
└──────┘ │ ↩ │ └──────┘
└──────┘
loops back ↑
Layer 1 (Fitness) catches the obvious stuff — broken tests, type errors, lint violations. It's free (no LLM tokens). Code that can't pass basic checks never reaches the expensive evaluator.
Layer 2 (Adversary) is an independent LLM agent with a fresh context and no sunk-cost bias. It loads an Adversary Profile — a specialized lens that determines what to look for. It doesn't want to approve your code. It wants to break it.
# Install
claude plugin add github.com/2233admin/adversarial-harness
# Use
/adversarial "Add rate limiting to /api/users"
That's it. Two commands. Zero config. Hooks auto-register.
The adversary's personality is configurable. Each profile is a specialized evaluation lens:
| Profile | Personality | Focus | Best For |
|---|---|---|---|
| 🔒 strict | Security paranoid | Injection, auth bypass, secrets, IDOR | Auth, payment, API endpoints |
| 🔍 pedantic | Code quality perfectionist | Naming, SOLID, DRY, API design | Refactors, public libraries |
| 💥 chaos | Chaos engineer | Race conditions, extreme inputs, partial failure | Infrastructure, distributed |
| 🎓 mentor | Senior engineer | Correctness + explains WHY | Learning, general tasks |
# Auto-select based on task keywords
/adversarial "Add JWT authentication" # → strict (detected "auth")
# Or force a profile
/adversarial --profile chaos "Refactor the queue worker"
Custom profiles: Drop a .md file in ~/.adversarial-harness/profiles/ and it's available as --profile <name>.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Generated from the plugin's indexed repository (2233admin/adversarial-harness) — no native marketplace selected
npx claudepluginhub p/2233admin-adversarial-harnessPlugins from other owners that cover similar ground