bad-cop

bad-cop is an agent for Claude Code from MikahNiehaus/ClaudeBoost. It costs 220 tokens per session (19,484 once invoked), scanned B, original, no licence file.

An adversarial testing agent that tries to break code which has already passed its existing tests and checks it against the complete request.

In plain words
What is it for?
Use it for hostile quality checks, regression hunting, temporary debugging logs, and testing whether a change really satisfies a ticket.
Why use it?
It looks for cases ordinary tests missed by writing additional tests, observing real behavior, and checking the implementation against the full requirements.

Agent for Claude Code

Written for Claude Code: hooks in frontmatter. Also seen: model in frontmatter.

Good fit Use it for hostile quality checks, regression hunting, temporary debugging logs, and testing whether a change really satisfies a ticket.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/mikahniehaus/claudeboost/bad-cop
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/MikahNiehaus/ClaudeBoost

Made for: Claude Code.

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 bad-cop

README.md
[![agentmods](https://agentmods.dev/badge/agents/mikahniehaus/claudeboost/bad-cop/github.svg)](https://agentmods.dev/agents/mikahniehaus/claudeboost/bad-cop)
Your own site
<a href="https://agentmods.dev/agents/mikahniehaus/claudeboost/bad-cop"><img src="https://agentmods.dev/badge/agents/mikahniehaus/claudeboost/bad-cop/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 bad-cop

Your own site · 80×15
<a href="https://agentmods.dev/agents/mikahniehaus/claudeboost/bad-cop"><img src="https://agentmods.dev/badge/agents/mikahniehaus/claudeboost/bad-cop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 220 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 19,484 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown 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.00220 $0.19484
Opus 5.5 $0.00088 $0.07794
Sonnet 5.5 $0.00044 $0.03897
Haiku 4.5 $0.00022 $0.01948

Measured 8d ago against content hash da2dee44df74, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

bad-cop scanned grade B with 2 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 8d 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.

Sends data to an external URLmediumData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

curl -s -X POST http://127.0.0.1:8613/stackoverflow-search -H "Content-Type: application/json" -d '{"query":"..."}'

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s -X POST http://127.0.0.1:8613/stackoverflow-search -H "Content-Type: application/json" -d '{"query":"..."}'
clean-rag/portable/agents/bad-cop.md · 1,432 lines

The source is not reproduced here

A licence we could not identify

The repository carries a LICENSE file, but it is custom or dual enough that GitHub cannot name it and neither can this catalogue. Unknown terms are not permission, so the body is not copied here. Read the licence at the source and decide for yourself.

Read it on GitHub

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. 8d ago First seen · 1,432 lines · 220 tokens per session scan B da2dee44df74

Subscribe to this mod's changes

bad-cop is an agent published in the GitHub repository MikahNiehaus/ClaudeBoost (9 stars, last pushed yesterday), with no licence file. It adds 220 tokens to every session and 19,484 once invoked, about $0.0009 per session on Opus 5.5. A static security scan graded it B with 2 findings (sends data to an external url, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-02.

Related

Other agents, from other repositories

quality-fixer

Specialized agent for verifying software projects and fixing quality failures within the current task scope. Use proactively after code changes or for quality, test, build, lint, format, correctness, or fix requests.

shinpr/claude-code-workflows · 44 tokens

mb-debugger

Systematic-debugging specialist for memory-bank. Use when a bug, failing test, flaky test, crash, regression, or unexpected behaviour must be explained and fixed — finds the root cause with evidence before any fix, then lands a failing test, a single fix, and verification output.

fockus/skill-memory-bank · 61 tokens

SWE

Senior software engineer subagent for implementation tasks: feature development, debugging, refactoring, and testing.

archubbuck/workspace-architect · 23 tokens

runtime-observer

Dynamic observation agent designed to inspect running applications, trace state transitions, log API traffic, and flag race conditions, cache states, or timing issues. Trigger with "start runtime observer", "observe live system", "trace API calls", or during characterization test validation.

richfrem/agent-plugins-skills · 56 tokens

debugger

Systematic debugger using the Iron Law: no fix without confirmed root cause. Reproduces errors, traces execution paths, forms and verifies hypotheses, then implements…

KevinZai/commander · 35 tokens

canary-test-healer

Diagnose and fix a consistently-failing test. Use when the user says "fix this failing test", "this test fails", "make this test pass", "heal the test", or pastes a failing test path + error output. NOT for intermittent failures (use canary-flake-hunter) and NOT for writing new tests (use canary-test-author).

bop-clocktower/canary · 80 tokens