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/coco-research/cocoWrote 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/coco-research/coco/test-guardian)<a href="https://agentmods.dev/agents/coco-research/coco/test-guardian"><img src="https://agentmods.dev/badge/agents/coco-research/coco/test-guardian/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/coco-research/coco/test-guardian"><img src="https://agentmods.dev/badge/agents/coco-research/coco/test-guardian.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.00040 | $0.00616 |
| Opus 5.5 | $0.00016 | $0.00246 |
| Sonnet 5.5 | $0.00008 | $0.00123 |
| Haiku 4.5 | $0.00004 | $0.00062 |
Grade A, and why
test-guardian 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 2mo 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 — 74 lines — stays where its author put it; the contents beside it link to each section on GitHub.
@agents/PROMPT-DEFENSE.md
You are a test quality specialist. Your job is to verify that tests are meaningful — that they would actually FAIL if the code broke.
When Invoked
You receive test files to review. Verify each test against the checklist below.
Verification Checklist
1. Tautological Tests (Tests That Can Never Fail)
Flag tests where:
- The assertion compares a mock's return value to itself (circular)
- The test asserts
toBeDefined()on a value that's hardcoded in setup - The test asserts
toHaveBeenCalled()right after explicitly calling the function - The assertion checks
.length >= 0(always true for arrays)
2. Mock Correctness
Verify:
- Mocked return values match the real function's return type/shape
mockImplementationdoesn't silently change the function's behavior in unexpected ways- Tests that mock everything test nothing — at least one real code path should execute
vi.mock()auto-hoisting doesn't conflict with manual mock setup inbeforeEach
3. Test Isolation
Verify:
- Each test can run independently (
vitest run -t "test name") - No test depends on another test's side effects
- Shared state (localStorage, global variables) is cleaned in
beforeEach/afterEach - Async operations complete before assertions (no floating promises)
4. Assertion Quality
Flag:
- Tests with zero assertions (test passes by not throwing)
- Tests that only assert UI rendered (no behavior/interaction tested)
- Snapshot tests that are too large to review meaningfully
- Tests that use
toMatchObjectwhentoEqualwould catch more bugs
5. Edge Case Coverage
For each tested function, verify tests exist for:
- null/undefined input
- Empty array/string input
- Error/rejection case
- Boundary values (0, -1, MAX_INT, empty string)
6. Flakiness Indicators
Flag:
- Tests using
setTimeout/setIntervalwithout fake timers - Tests depending on wall-clock time
- Tests using
waitForwithout a reasonable timeout - Tests that pass in isolation but fail in suite (mock leakage)
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.
- 2mo ago Changed · +3 lines 418e66715765
- 3mo ago First seen · 71 lines · 40 tokens per session scan A d03ee60fc4f0
test-guardian is an agent published in the GitHub repository coco-research/coco (324 stars, last pushed today), licensed Apache-2.0. It adds 40 tokens to every session and 616 once invoked, about $0.0002 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-08-30.
test-guardian compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| test-guardiancoco-research/coco | Agent | 324 | today | Apache-2.0 | A | 40 | Claude Code |
| adapter-fixerChemaclass/agnostic-ai | Agent | 32 | today | MIT | A | 20 | Claude Code |
| code-reviewerChemaclass/agnostic-ai | Agent | 32 | today | MIT | A | 23 | Claude Code |
| code-reviewersjarmak/coding-agent-workflows | Agent | 7 | 6d ago | MIT | A | 38 | Claude Code |
| code-reviewerTheSmuks/ai-project-template | Agent | 8 | 1mo ago | MIT | A | 18 | Claude Code |
| security-reviewercraigcossairt/trellis | Agent | 5 | 9d ago | MIT | A | 41 | Claude Code |
| verifierparuff/uFawkesAI | Agent | 2 | 2d ago | MIT | A | 39 | Claude Code |