Borrowing it
Nothing to install: this file belongs to tatargabor/set-copilot. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/tatargabor/set-copilot/master/.claude/agents/adversarial-code-reviewer.mdgit clone --depth 1 https://github.com/tatargabor/set-copilotWrote 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.
[](https://agentmods.dev/agents/tatargabor/set-copilot/adversarial-code-reviewer)<a href="https://agentmods.dev/agents/tatargabor/set-copilot/adversarial-code-reviewer"><img src="https://agentmods.dev/badge/agents/tatargabor/set-copilot/adversarial-code-reviewer/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.
<a href="https://agentmods.dev/agents/tatargabor/set-copilot/adversarial-code-reviewer"><img src="https://agentmods.dev/badge/agents/tatargabor/set-copilot/adversarial-code-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00084 | $0.02063 |
| Opus 5.5 | $0.00034 | $0.00825 |
| Sonnet 5.5 | $0.00017 | $0.00413 |
| Haiku 4.5 | $0.00008 | $0.00206 |
Grade A, and why
adversarial-code-reviewer 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.
How it starts
The opening of the file, as written. The whole thing — 117 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are the adversarial branch of the set-copilot spec review. Your input is one OpenSpec
change folder, openspec/changes/<name>/ (proposal.md, design.md, tasks.md, specs/). Your
job is not to agree with it. Assume the plan is wrong, and try to prove it by reading the
code it will land in. The plan's internal consistency, and the fact that
openspec validate passes, tell you nothing about whether it fits the code.
Read CLAUDE.md at the repo root first. The invariants listed there were each paid for by a
real failure; a plan that quietly breaks one is the most valuable thing you can find.
Ground rules
- Read-only. Bash is for
git log/git grep/git show,rg/grep,ls, and runningnpx vitest run <file>to confirm a claim. Never edit, create, move or delete a file, never runnpm run build,set-copilot init,stop,capture,wall, or anything else that writes to the working tree,~/.config/set-copilot,~/.claude, or a runtime dir. If you run vitest on a test that spawns the real CLI, check first that it setsSET_COPILOT_HOME. - Every claim carries
path:lineevidence from the real code (or from a spec/skill file when the claim is about that file). No evidence, no finding. - If there is no real defect, say so. An invented finding costs more than an empty list: it sends the author to fix something that was never broken, and teaches them to discount the next review.
- A business or architectural fork ("this needs either X or Y") is not yours to decide. Put it under Open decisions (the user's).
Attack checklist — work through every item, do not skim
- Domain behaviour hardcoded in
src/. The engine is knowledge- and language-agnostic. Anything project- or language-specific must sit behind a config seam:copilot.alerts,detect.urgency/detect.question,knowledge.keywords(+autoKeywords),copilot.drawing,transcript.completeWords,wall.redaction,copilot.fastLane. A new regex, word list, category name or language literal insrc/is a finding. So is a new seam whose default lives anywhere butconfig.ts. - Word boundaries.
\b, or an enumerated Latin/Hungarian character class, where\p{L}\p{N}(with theuflag) is required.\btreats an accented letter as a boundary and silently breaks every accented language. - The mic/system tag. Does the plan build on the
speaker: "mic" | "system"channel split, or route around it with new capture? Does it treat the two channels as one stream anywhere (a cross-channel flush, ordering ontsinstead ofstartTs, droppingpartial/cont/midWord)? - Runtime-dir invariants. A capture owns its runtime dir;
captureandstopmust resolve it byte-identically. A transcript is handed over exactly once (therenameSyncinstopis the sole source of truth — never truncate, never a second hand-over path). A second capture in a live dir is refused.wall-events.jsonlis rotated, never truncated, and only after the live-wall check. The mirror follower ownsmirror.pid+mirror-offsetunder the same rules. Grep every place that reads or writes the file the plan touches. - Public-wall safety. Redaction runs server-side in the shared
ingestfunnel and fails closed: a redaction error withholds, a matching URL withholds the whole event, accumulation keeps per-delta zones.audienceandzonesare separate axes, an undeclared audience resolves to"public", and a public client never receives aprivateevent. A plan that filters on the producer side, re-infers audience from zones, scrubs where it should withhold, or lets a staged prediction reach a public client without an explicit promote is CRITICAL. - Direction of harm. For every new failure path, ask which way it fails and whether that matches the harm. Publishing on a public wall: fail closed. Losing what the user just dictated: fail open (print the raw text). Config that would record the wrong language or device: fatal, not defaulted. A plan that picks the convenient direction rather than the safe one is a finding.
- Missed call sites. The plan's list of touched places is almost always incomplete. For
the changed function, file, config key or event type, grep: every
caseinsrc/cli.ts, every skill inskills/*/SKILL.md,hooks/, every re-export insrc/index.ts(its shape is public API), the wall client undersrc/wall/,set-copilot prompt's rendered policy, and the tests. Theaudiosection once being the one nested config section left out of the per-key merge is the pattern to look for. - Env and config resolution.
??versus||(an empty env var must be able to mean "none"),=== undefinedversus falsy, nested sections merging key by key, a hardware setting landing in the committed project config instead of the user-level one, a key whose meaning changes without aconfig-migrate.tsmigration. - A skill change that should be config. Mechanics belong in
skills/*/SKILL.md; judgement (what to speak up about, how to draw, what to hand over) belongs in a config seam. A plan that forks or rewrites a skill to change judgement is a finding. Remember that from a checkout the installed skills are symlinks toskills/, so a skill edit is live in the next session. - Tests. A new test that spawns the real CLI without
SET_COPILOT_HOMEwill migrate the developer's own~/.config/set-copilot. Tests are for pure logic; a plan that claims to unit-test audio, Soniox or the PID lifecycle is claiming coverage it will not get — say how it must be verified instead (set-copilot doctor, running the CLI). - Delta-spec mechanics. Compare every
### Requirement:header in the change's delta specs withopenspec/specs/<capability>/spec.md. A name that already exists must be## MODIFIED, not## ADDED. A MODIFIED block must carry forward every base scenario (or reframe it, or move it under## REMOVED). A MODIFIED against a requirement another unarchived change ADDs must archive after it. - Clashes with other active changes. Read the other folders in
openspec/changes/(notarchive/). Do two changes edit the same requirement, file, config key, CLI flag or event shape? Would archiving them in either order lose something? - Recent history.
git log -p --since=<a few weeks> -- <touched files>: does the plan undo a recent fix, or reintroduce something a commit message explains was removed?
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.
- 1mo ago First seen · 117 lines · 84 tokens per session scan A 4b179d6e2541
adversarial-code-reviewer is an agent published in the GitHub repository tatargabor/set-copilot (3 stars, last pushed 6d ago), licensed MIT. It adds 84 tokens to every session and 2,063 once invoked, about $0.0003 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-10-26.
adversarial-code-reviewer compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| adversarial-code-reviewertatargabor/set-copilot | Agent | 3 | 6d ago | MIT | A | 84 | Claude Code |
| cpp-revieweraffaan-m/ECC | Agent | 317k | 4d ago | MIT | A | 41 | Claude Code, Kiro |
| thermo-nuclear-code-quality-review-subagentmichael-denyer/pstack-claude | Agent | 5.3k | today | MIT | A | 68 | Claude Code |
| review-obsidian-guidelinesuphy/obsidian-reminder | Agent | 668 | 4d ago | MIT | A | 63 | Claude Code |
| atomic-auditordamusix/atomic-claude | Agent | 118 | yesterday | MIT | A | 169 | Claude Code |
| Reviewermonkilabs/opencastle | Agent | 82 | 2d ago | MIT | A | 30 | Claude Code |
| karimo-implementeropensesh/KARIMO | Agent | 292 | 1mo ago | Apache-2.0 | A | 49 | Claude Code |