mcpforwork: Agent for Claude Code

.claude/agents/test-code-reviewer.md

test-code-reviewer is an agent for Claude Code from avivancos/mcpforwork. It costs 54 tokens per session (1,796 once invoked), scanned A, original, Apache-2.0.

A read-only review step that checks both whether tests can catch broken behavior and whether the implementation follows the project’s requirements.

In plain words
What is it for?
Use it after implementation to inspect the code and tests, run the full test suite, check structural and architecture rules, and audit for regressions.
Why use it?
A passing test suite can still miss real bugs, and new code can break existing behavior or project rules. This review adds one independent PASS/FAIL check before work is marked complete.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; mentions AGENTS.md.

This is avivancos/mcpforwork's own configuration. It tells Claude Code how to work on mcpforwork itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mcpforwork configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/avivancos/mcpforwork/main/.claude/agents/test-code-reviewer.md
Clone the repo
git clone --depth 1 https://github.com/avivancos/mcpforwork

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 test-code-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/avivancos/mcpforwork/test-code-reviewer/github.svg)](https://agentmods.dev/agents/avivancos/mcpforwork/test-code-reviewer)
Your own site
<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.

agentmods 80×15 button for test-code-reviewer

Your own site · 80×15
<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>
Per session 54 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,796 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original 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.00054 $0.01796
Opus 5.5 $0.00022 $0.00718
Sonnet 5.5 $0.00011 $0.00359
Haiku 4.5 $0.00005 $0.00180

Measured 2mo ago against content hash 5ecadd3abfec, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

.claude/agents/test-code-reviewer.md · 167 lines

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:

  1. Test audit — do not merely confirm that tests pass; determine whether they DETECT broken behavior. A green suite can conceal a broken system.
  2. Code review — find implementation defects and contract violations that tests or formatting tools may miss. Review the change as production code.
  3. 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 — see AGENTS.md §6 and 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)

  1. 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-httpserver serving recorded fixtures from real interactions, never invented provider behavior.
    • Time and randomness → injected via arguments or the Clock port.
  2. 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.

  3. Check behavioral names — flag test_returns_200-style names; tests state the business rule.

  4. 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).

  5. 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?

  6. Run the targeted tests in the canonical environment; record the exact command and observed result.

  7. 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.

Read the full file on GitHub · 167 lines

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. 2mo ago First seen · 167 lines · 54 tokens per session scan A 5ecadd3abfec

Subscribe to this mod's changes

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.

Related

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.

athola/claude-night-market · 48 tokens

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…

marcellourbani/vscode_abap_remote_fs · 161 tokens

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…

testdouble/han · 135 tokens

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.

opensesh/KARIMO · 41 tokens

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/.

LerianStudio/ring · 52 tokens

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.

agentgg-dev/agentgg · 36 tokens