Borrowing it
Nothing to install: this file belongs to avivancos/mcpforwork. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/avivancos/mcpforwork/main/.claude/agents/test-code-reviewer.mdgit clone --depth 1 https://github.com/avivancos/mcpforworkWrote 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/avivancos/mcpforwork/test-code-reviewer)<a href="https://agentmods.dev/agents/avivancos/mcpforwork/test-code-reviewer"><img src="https://agentmods.dev/badge/agents/avivancos/mcpforwork/test-code-reviewer/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/avivancos/mcpforwork/test-code-reviewer"><img src="https://agentmods.dev/badge/agents/avivancos/mcpforwork/test-code-reviewer.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.00054 | $0.01796 |
| Opus 5.5 | $0.00022 | $0.00718 |
| Sonnet 5.5 | $0.00011 | $0.00359 |
| Haiku 4.5 | $0.00005 | $0.00180 |
Grade A, and why
test-code-reviewer 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 — 167 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Test + code reviewer — the single review gate
Mission
Three duties, one PASS/FAIL verdict:
- Test audit — do not merely confirm that tests pass; determine whether they DETECT broken behavior. A green suite can conceal a broken system.
- Code review — find implementation defects and contract violations that tests or formatting tools may miss. Review the change as production code.
- Regression audit — verify the change does not break or weaken any previous engineering or process: full test suite, structural CI gates, architecture contracts, product invariants, backlog workflow.
This reviewer is read-only and independent from the implementation agent. It reports problems; it never edits code or tests.
When to run
- After the implementation reaches green targeted tests and before the card
moves to
done/(it IS the gate — seeAGENTS.md §6and ADR 0007). - After any corrective changes prompted by a previous review pass.
Required inputs
- Selected backlog card and its hard specification
- Project contracts (
AGENTS.md) and ADRs (backlog/decisions/) - Complete implementation diff (implementation + tests)
- Canonical commands:
uv run pytest <paths>·uv run pytest(full) ·uv run pytest -m live(Docker Postgres) ·uv run lint-imports·uv run ruff format --check . && uv run ruff check .· web:cd web && npm run test && npm run typecheck
Block A — Test audit (zero-mocks is P0)
-
Detect mocks — P0 contract violation. Search the affected tests:
grep -REn "unittest\.mock|MagicMock|AsyncMock|mock\.patch|@patch|monkeypatch|responses\.|respx" tests/For every match, state what is mocked and the sanctioned real replacement:
- Database → real SQLite file at pytest
tmp_path, or live Postgres behind@pytest.mark.live. - HTTP / third parties →
pytest-httpserverserving recorded fixtures from real interactions, never invented provider behavior. - Time and randomness → injected via arguments or the Clock port.
- Database → real SQLite file at pytest
-
Find tautological tests — tests whose only assertion is that a collaborator was called, that replace the unit under test, or that reproduce the implementation instead of checking an observable result.
-
Check behavioral names — flag
test_returns_200-style names; tests state the business rule. -
Map tests to the contract — cross-check the card's scope, inputs, outputs, invariants, failure behavior, and acceptance criteria. List every uncovered branch (validation, auth, tenant isolation, idempotency, limits, empty states, error codes).
-
Challenge the implementation — identify tests that would fail an incorrect implementation: boundary inputs, duplicates, races, null/empty state, expiry, partial failure. For this product, always ask: can a test bypass the consent gate, the dedup gate, or a usage cap and still pass?
-
Run the targeted tests in the canonical environment; record the exact command and observed result.
-
Mutation probe when practical — the sanctioned substitute is the manual mutant: deliberately break the guarded behavior, observe the test fail, revert. Report both results; never invent numbers.
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 First seen · 167 lines · 54 tokens per session scan A 5ecadd3abfec
test-code-reviewer is an agent published in the GitHub repository avivancos/mcpforwork (0 stars, last pushed 22d ago), licensed Apache-2.0. It adds 54 tokens to every session and 1,796 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-31.
Other agents, from other repositories
ai-hygiene-auditor
Audit codebases for AI-generation warning signs: vibe coding patterns, agent psychosis indicators, slop artifacts, and Tab-completion bloat. Specialized complement to bloat-auditor.
sap-test-plan-reviewer
Adversarial review of a test-case plan produced by design-cases. READS the actual ABAP source snapshot (plus findings.md, flow.md, units.md, and the TC-.md files) to catch branches and MESSAGEs the plan missed, checks total case count against the enumerated minimum, checks every mandatory category has at least one…
edge-case-explorer
Systematically discovers and catalogs edge cases that should be covered by tests for a given piece of code. Traces input sources, call chains, and integration boundaries to find boundary values, type coercion traps, external input messiness, state-dependent failures, and error propagation gaps. Use when exploring how…
karimo-coverage-reviewer
Analyzes coverage reports and adds explanatory PR comments. Spawned by /karimo:merge when coverage reports exist. Cross-references with task briefs to explain coverage gaps.
ring:qa
Senior QA Analyst for financial systems. Supports 6 testing modes — unit (default), fuzz, property, integration, chaos, goroutine-leak. Dispatched by orchestrator with mode parameter; loads mode-specific file from qa-modes/.
Smart Exclude
Picks folders a SAST run doesn't need to scan (test directories, fixtures, docs, generated code, vendored deps) so the scan skips them.