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.
npx agentmods add agents/avivancos/mcpforwork/test-code-reviewergit clone --depth 1 https://github.com/avivancos/mcpforworkWhat 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 | $0.00054 | $0.01796 |
| Opus 5 | $0.00027 | $0.00898 |
| Sonnet 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 2d 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.
- 2d 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 1mo ago), licensed Apache-2.0. It adds 54 tokens to every session and 1,796 once invoked, about $0.0003 per session on Opus 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
Demonstrate
Agent for demonstrating VS Code features.
playwright-test-generator
Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.
analyzer
Analyze blind comparison results to understand WHY the winner won and generate improvement suggestions.
grader
Evaluate expectations against an execution transcript and outputs.
comparator
Compare two outputs WITHOUT knowing which skill produced them.
.NET-Notebook-Migration-Agent
Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.