adversary

adversary is a Claude Code mod by bobtat that adversarial review of a PR, plan or document by an isolated reviewer that never sees the author's context, with a triage pane deciding which findings reach the author.

Updated 2026-11-28

What is adversary?

adversary is a Claude Code mod by bobtat that adversarial review of a PR, plan or document by an isolated reviewer that never sees the author's context, with a triage pane deciding which findings reach the author. It is listed under Context & memory and has 2 GitHub stars.

TypeClaude code mod
Authorbobtat
Repositorybobtat/claude-plugins
Popularity2 GitHub stars
CategoryContext & memory
SecurityHigh risk (32/100)
Rank#2,274 of 9,397 Claude Code mods; #214 in Context & memory
LicenseMIT
Last commit2026-11-28
Hooks10 events
SeesExitPlanMode calls, Read|Grep|Glob calls, every prompt, every tool call
Draws onAbovePrompt, Pane

Is adversary safe to install?

adversary scores 32/100 on the MCPMods security check: High risk. Things to review: sends data over the network; starts processes outside the sandbox; writes files or config; reads environment variables; watches every prompt or event. It passed 1 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
Sends data over the networkReview
Starts processes outside the sandboxReview
Writes files or configReview
Reads environment variablesReview
Watches every prompt or eventReview
Drives Claude (model calls, prompts)Note
Validator reported problemsNote
Has an open-source licensePass

API calls in its code

CallWhat it means
$.agent.list
$.agent.register
$.agent.spawndrives Claude
$.clock.now
$.command.register
$.env.getreads env vars
$.fs.existsreads files
$.fs.listreads files
$.fs.readreads files
$.fs.statreads files
$.fs.writewrites files
$.mcp.callcalls MCP servers
$.mcp.connect
$.process.runruns processes
$.prompt.fillwrites the prompt box
$.session.id
$.session.root
$.state.get
$.state.set
$.tool.calldrives Claude
$.tool.list
$.ui.closedraws interface
$.ui.logdraws interface
$.ui.opendraws interface
$.ui.resolvedraws interface
$.ui.toastdraws interface

How do I install adversary?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/bobtat/claude-plugins
    claude plugin validate ./claude-plugins/plugins/adversary
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add bobtat/claude-plugins && claude plugin install adversary@bobtat-plugins

Or ask Claude to set it up

Paste this into Claude Code and it installs adversary for you:

Install the "adversary" Claude Code mod from https://github.com/bobtat/claude-plugins/tree/main/plugins/adversary. Run claude plugin validate on it first and show me what it can access before you enable it.

More from bobtat/claude-plugins

This repository has 3 Claude Code mods on MCPMods.

  • cost-ledger: Tracks what Claude Code costs — session, calendar-week and calendar-month totals with the month's pace and week-over-wee (High risk)
  • subagent-tree: A live /agents-tree pane showing the session's subagents as a tree — status, how long each has run, its tool calls and s (Low risk)