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.
git clone --depth 1 https://github.com/MadeByTokens/bon-cop-bad-copWrote 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/commands/madebytokens/bon-cop-bad-cop/cancel-tdd)<a href="https://agentmods.dev/commands/madebytokens/bon-cop-bad-cop/cancel-tdd"><img src="https://agentmods.dev/badge/commands/madebytokens/bon-cop-bad-cop/cancel-tdd/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/commands/madebytokens/bon-cop-bad-cop/cancel-tdd"><img src="https://agentmods.dev/badge/commands/madebytokens/bon-cop-bad-cop/cancel-tdd.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.00006 | $0.00344 |
| Opus 5 | $0.00003 | $0.00172 |
| Sonnet 5 | $0.00001 | $0.00069 |
| Haiku 4.5 | $0.00001 | $0.00034 |
Grade C, and why
cancel-tdd scanned grade C with 1 finding 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 11d 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.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
You can review it or delete it manually (rm -rf .tdd-working). This is a copy
100% identical to cancel-tdd — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
What it actually says
/cancel-tdd Command
When the user runs /cancel-tdd, follow these instructions:
Step 1: Check for Active Loop
Try to read .tdd-working/state.json:
-
If file doesn't exist:
- Display: "No TDD loop state found. Use
/tdd-loopto start a new loop." - STOP.
- Display: "No TDD loop state found. Use
-
If file exists but
active: false:- Display: "TDD loop is not active. It was already completed or cancelled."
- Display the stopped reason if available: "Reason: "
- STOP.
Step 2: Cancel the Loop
Update .tdd-working/state.json by setting:
active: falsecompletedAt:stoppedReason: "cancelled_by_user"
Keep all other fields unchanged (preserve history, files, etc.).
Step 3: Report Cancellation
Display:
🛑 **TDD Loop Cancelled**
Completed: <iteration> iteration(s)
Generated Files:
Tests (<count of testFilePaths>):
<list each test file path>
Implementation (<count of implFilePaths>):
<list each impl file path>
Last Phase: <phase>
Last Verdict: <lastVerdict or "None">
Working directory preserved at: .tdd-working/
You can review it or delete it manually (rm -rf .tdd-working).
Note: Files created during the loop remain in your project. Review and modify them as needed.
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.
- 11d ago First seen · 56 lines · 6 tokens per session scan C 40d8ac3e8f00
cancel-tdd is a command published in the GitHub repository MadeByTokens/bon-cop-bad-cop (1 stars, last pushed 8mo ago), licensed MIT. It adds 6 tokens to every session and 344 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). It is 100% identical to cancel-tdd, differing in 0 lines, and is treated as a copy.
Other commands, from other repositories
prompt-evolve
Closed prompt-evolution loop: turn a lesson into a candidate agent prompt, gate it on held-out evals, promote only if it beats the baseline. SIA Meta→Target→Feedback ported to greatcto.
atdd
Start the ATDD workflow for a new feature. Optionally provide a feature description as an argument.
symfony-tdd-pest
Start a TDD workflow using Pest PHP for Symfony with RED-GREEN-REFACTOR cycle.
symfony-tdd-phpunit
Start a TDD workflow using PHPUnit for Symfony with RED-GREEN-REFACTOR cycle.
bugfix
TDD-driven bugfix workflow: tester writes failing test (RED) → developer fixes (GREEN) → developer refactors (REFACTOR) → reviewer validates. Accepts issue number, description, or both. Auto-creates PR unless --no-pr flag is passed.
partition-dev
Derive test cases from Z specification using TTF testing tactics.