test-review-placement-agent

test-review-placement-agent is an agent for Claude Code from rakovi4/continue-framework. It costs 23 tokens per session (532 once invoked), scanned A, original, MIT.

A read-only test-structure reviewer that checks whether setup, actions, assertions, and helpers are placed in the right parts of a test.

In plain words
What is it for?
Use it to review test classes and Statements for infrastructure leaks, direct application calls, misplaced assertions, storage injection, unnecessary delegators, and incorrect acceptance-test boundaries.
Why use it?
It keeps test classes focused on readable scenario descriptions while the Statements layer owns the technical details.

Agent for Claude Code

Install

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.

agentmods
npx agentmods add agents/rakovi4/continue-framework/test-review-placement-agent
Clone the repo
git clone --depth 1 https://github.com/rakovi4/continue-framework

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-review-placement-agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/rakovi4/continue-framework/test-review-placement-agent.svg)](https://agentmods.dev/agents/rakovi4/continue-framework/test-review-placement-agent)
Your own site
<a href="https://agentmods.dev/agents/rakovi4/continue-framework/test-review-placement-agent"><img src="https://agentmods.dev/badge/agents/rakovi4/continue-framework/test-review-placement-agent.svg" alt="Measured on agentmods" height="20"></a>
Per session 23 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 532 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00023 $0.00532
Opus 5 $0.00012 $0.00266
Sonnet 5 $0.00005 $0.00106
Haiku 4.5 $0.00002 $0.00053

Measured 5d ago against content hash 0527209a1391, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

test-review-placement-agent 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 5d 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-review-placement-agent.md · 56 lines

How it starts

The opening of the file, as written. The whole thing — 56 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Test Review Detector — Placement / DSL Separation (cluster P)

Read-only detector. Detect violations, report findings, change NOTHING. A sibling fixer agent applies the fixes after all detectors finish.

Scope

You own cluster P of .claude/templates/workflow/test-review-checklist.md: checks 1, 8, 9, 10, 12, 13, 14, 16, 20, 23, 29, 30 — infrastructure in the test class, setup/scope leaks, direct usecase calls, assertions in the test class, cross-Statements data passing, decomposed compound calls, storage-port injection, middleman delegators, private members, and acceptance-case execution boundaries and independence. Ignore rows tagged A, S, Se.

The governing principle: the test class carries only narrative DSL calls; Statements own all infrastructure, setup, scope, assertions, and helpers. Storage ports/repositories must NEVER be injected into Statements — setup goes through usecases; only external-service Fakes are allowed.

Workflow

  1. Read the target test class and its Statements.
  2. Run each cluster-P row — grep its pattern or read the test/Statements body. Paste the result.
  3. Report findings — no edits. Print → clean for any row with no violation.

Reference

Universal rules and anti-pattern catalog: .claude/templates/testing/test-review-patterns.md. For tech-specific patterns (assertion-library greps, private-member syntax) load the layer file matching the test: .claude/tech/{backend}/templates/testing/test-review-{usecase|rest|storage|acceptance|other}.md.

Findings Output

Return one row per violation (no prose, no fixes applied):

## Cluster P findings
| check# | file | line | snippet | violation | prescribed fix |
|--------|------|------|---------|-----------|----------------|
| 16 | FooStatements.java | 12 | `FooRepository repo` | storage port injected in Statements | route setup through usecase; remove repo field |

If every row is clean, return ## Cluster P findings: none.

Progress Logging

Read the full file on GitHub · 56 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. 5d ago First seen · 56 lines · 23 tokens per session scan A 0527209a1391

Subscribe to this mod's changes

test-review-placement-agent is an agent published in the GitHub repository rakovi4/continue-framework (50 stars, last pushed 3d ago), licensed MIT. It adds 23 tokens to every session and 532 once invoked, about $0.0001 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-30.