adversary

adversary is an agent for Claude Code from ariaxhan/kernel-claude. It costs 16 tokens per session (2,685 once invoked), scanned A, original, MIT.

A skeptical code-review agent that assumes software may be broken and looks for edge cases using the project's stated success criteria and prior failures.

In plain words
What is it for?
Use it to challenge implementations, investigate bugs, test unusual inputs, and check whether claimed fixes meet their agreed requirements.
Why use it?
It helps catch defects that ordinary testing or a builder's own review may miss, while requiring evidence before treating a problem as blocking.

Agent for Claude Code

Written for Claude Code: PreToolUse hook event. Also seen: names the AskUserQuestion tool.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 scripts/adjudicate.py findings.json --text --strict.

Part of the kernel plugin — 27 skills, 10 agents, 4 hooks shipped together

Good fit Use it to challenge implementations, investigate bugs, test unusual inputs, and check whether claimed fixes meet their agreed requirements.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/ariaxhan/kernel-claude
agentmods
npx agentmods add agents/ariaxhan/kernel-claude/adversary

Made for: Claude Code.

Or install kernel, the plugin that ships this one along with the rest of its 27 skills, 10 agents, 4 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for adversary

README.md
[![agentmods](https://agentmods.dev/badge/agents/ariaxhan/kernel-claude/adversary/github.svg)](https://agentmods.dev/agents/ariaxhan/kernel-claude/adversary)
Your own site
<a href="https://agentmods.dev/agents/ariaxhan/kernel-claude/adversary"><img src="https://agentmods.dev/badge/agents/ariaxhan/kernel-claude/adversary/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for adversary

Your own site · 80×15
<a href="https://agentmods.dev/agents/ariaxhan/kernel-claude/adversary"><img src="https://agentmods.dev/badge/agents/ariaxhan/kernel-claude/adversary.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,685 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00016 $0.02685
Opus 5.5 $0.00006 $0.01074
Sonnet 5.5 $0.00003 $0.00537
Haiku 4.5 $0.00002 $0.00268

Measured 1mo ago against content hash 73396d82783b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

adversary scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/adversary.md · 240 lines

How it starts

The opening of the file, as written. The whole thing — 240 lines — stays where its author put it; the contents beside it link to each section on GitHub.

<on_start> agentdb inject-context adversary </on_start>

<skill_load> Load: skills/tearitapart/SKILL.md, skills/debug/SKILL.md Reference: skills/quality/reference/quality-research.md </skill_load>

<startup_reads>

  • Recent failures from AgentDB

  • Surgeon's checkpoint (what they claim)

  • Contract (success criteria)

  • The acceptance record: claims, declared invariants, and tradeoffs already consciously accepted. Blind to the builder's REASONING, never blind to the acceptance record. Withholding it does not buy independence, it buys a reviewer with amnesia who relitigates settled questions for free. Reopening a settled entry takes new evidence of a named kind (a new failing input, a changed dependency, a missed requirement, a disproven assumption), never a rephrasing.

  • The acceptance profile (schemas/kernel.acceptance-profile.v1.schema.json): the structured context this artifact is judged against. Its blocks_at map decides the blocking threshold per dimension, so the same finding blocks in one context and quarantines in another. Read the dimensions, not the stage label: the label is descriptive and adjudication ignores it, because a demo handling real people's data still requires production-grade privacy. If you received the profile, you are the invariant axis and cannot be the only verifier: an outcome-shaped pass that never sees the profile must also run (EXP-RTP1 #206: bounded arm 0/20 on an off-contract defect).

  • Any acceptance record for this commit (schemas/kernel.acceptance.v1.schema.json). If one exists, the commit is FROZEN. Raising a settled concern again is not a finding. Reopening takes one of: new_failing_input, changed_dependency, missed_requirement, disproven_assumption, profile_changed, owner_promotion. Disagreeing with a previous reviewer is not on that list and never will be. </startup_reads>

Read the full file on GitHub · 240 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +3 lines 73396d82783b
  2. 1mo ago First seen · 237 lines · 16 tokens per session scan A ab55e409f53b

Subscribe to this mod's changes

adversary is an agent published in the GitHub repository ariaxhan/kernel-claude (14 stars, last pushed yesterday), licensed MIT. It adds 16 tokens to every session and 2,685 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

resolver

Implements a planned change — edits files, runs commands, makes tests pass. The only agent with write authority. Use it to execute a planner's plan or apply a reviewer's confirmed fix, never to decide scope on its own.

mycelium-hq/ai-brain-starter · 49 tokens

reviewer

Reviews a change for correctness, security, and convention adherence. Use AFTER a resolver edit and BEFORE merge. Read-only by construction — it reports findings, it does not "fix while reviewing" (which hides the bug behind a silent edit).

mycelium-hq/ai-brain-starter · 51 tokens

Vitruvius

Architecture reviewer. Evaluates system design decisions, architectural patterns, scalability, technical debt, and technology choices at the macro level. Use before committing to a system design, when something feels structurally wrong, or after a major sprint to audit what accumulated. Reports honesty ledger on…

wrg32786/aigent-os · 61 tokens

principal-engineer

Principal Engineer. Architecture guardian. Enforces SOLID + Clean Architecture. Reviews all PRs.

sandeep84397/agent-brain · 23 tokens

reviewer

The independent review pass on a diff or PR — ONE holistic pass over the full change (code + tests + docs together), findings ranked Blocking/Important/Minor. Delegated by the lead after the implementer's self-review, as the second pass of the repo's two-pass review discipline. Runs on Opus.

LH8PPL/core-memory-kit · 66 tokens

reviewer

Independent review of code it did not write: security, regressions, edge cases. Reports findings, never fixes them.

navid-kianfar/claude-memory-mcp · 27 tokens