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.
| Type | Claude code mod |
|---|---|
| Author | bobtat |
| Repository | bobtat/claude-plugins |
| Popularity | 2 GitHub stars |
| Category | Context & memory |
| Security | High risk (32/100) |
| Rank | #2,274 of 9,397 Claude Code mods; #214 in Context & memory |
| License | MIT |
| Last commit | 2026-11-28 |
| Hooks | 10 events |
| Sees | ExitPlanMode calls, Read|Grep|Glob calls, every prompt, every tool call |
| Draws on | AbovePrompt, 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.
| Check | Result |
|---|---|
| Sends data over the network | Review |
| Starts processes outside the sandbox | Review |
| Writes files or config | Review |
| Reads environment variables | Review |
| Watches every prompt or event | Review |
| Drives Claude (model calls, prompts) | Note |
| Validator reported problems | Note |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.agent.list | |
$.agent.register | |
$.agent.spawn | drives Claude |
$.clock.now | |
$.command.register | |
$.env.get | reads env vars |
$.fs.exists | reads files |
$.fs.list | reads files |
$.fs.read | reads files |
$.fs.stat | reads files |
$.fs.write | writes files |
$.mcp.call | calls MCP servers |
$.mcp.connect | |
$.process.run | runs processes |
$.prompt.fill | writes the prompt box |
$.session.id | |
$.session.root | |
$.state.get | |
$.state.set | |
$.tool.call | drives Claude |
$.tool.list | |
$.ui.close | draws interface |
$.ui.log | draws interface |
$.ui.open | draws interface |
$.ui.resolve | draws interface |
$.ui.toast | draws interface |
How do I install adversary?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- 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
- 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)