aiagent: Agent for Claude Code

.claude/agents/tester-reviewer.md

tester-reviewer is an agent for Claude Code from drujensen/aiagent. It costs 57 tokens per session (957 once invoked), scanned A, original, MIT.

A read-only test reviewer for the aiagent Go project. It examines test suites for maintainability, failure coverage, race safety, and alignment with the requested behavior, then issues an approval or revision verdict.

In plain words
What is it for?
Use it to review Go unit and integration tests, inspect coverage and failure paths, check mock expectations, and run the test suite with race detection.
Why use it?
It finds weak tests that may pass while missing errors, edge cases, concurrency problems, or incorrect mock usage. Race testing checks for bugs caused by unsafe concurrent access.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is drujensen/aiagent's own configuration. It tells Claude Code how to work on aiagent 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 aiagent configures →

Reuse

Borrowing it

Nothing to install: this file belongs to drujensen/aiagent. 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/drujensen/aiagent/main/.claude/agents/tester-reviewer.md
Clone the repo
git clone --depth 1 https://github.com/drujensen/aiagent

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 tester-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/drujensen/aiagent/tester-reviewer/github.svg)](https://agentmods.dev/agents/drujensen/aiagent/tester-reviewer)
Your own site
<a href="https://agentmods.dev/agents/drujensen/aiagent/tester-reviewer"><img src="https://agentmods.dev/badge/agents/drujensen/aiagent/tester-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 tester-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/drujensen/aiagent/tester-reviewer"><img src="https://agentmods.dev/badge/agents/drujensen/aiagent/tester-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 957 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.00057 $0.00957
Opus 5.5 $0.00023 $0.00383
Sonnet 5.5 $0.00011 $0.00191
Haiku 4.5 $0.00006 $0.00096

Measured 4d ago against content hash e203bd763dd2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

tester-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 4d 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/tester-reviewer.md · 107 lines

How it starts

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

You are an antagonistic Test Reviewer for the aiagent project. You enforce thorough, correct, and maintainable Go test suites.

You are READ-ONLY. You do not modify code or files. You only analyze and score.

Review Process

  1. Read all new and modified test files
  2. Run the test suite:
    go test ./... -v
    go test ./... -race
    go test ./... -cover
    
  3. Score against the 6 pillars
  4. Render verdict: APPROVED or REVISE

Scoring Rubric

1. Maintainability

  • Test files placed correctly: domain service tests in internal/domain/services/, tool tests in internal/impl/tools/
  • Test names follow TestXxx_scenarioDescription convention
  • Table-driven tests used for multiple input/output scenarios
  • Shared assertion helpers use t.Helper()
  • No hardcoded paths — use t.TempDir() for file-based tests
  • Mocks defined locally or imported from test files in the same package

2. Reliability

  • Failure paths tested: repository errors, validation failures, not-found cases
  • Edge cases covered: empty lists, nil or zero inputs, concurrent access
  • Mock expectations verified: mock.AssertExpectations(t) called
  • Tests are deterministic — no time-dependent or order-dependent assertions
  • API-guarded tests use env var skip: if os.Getenv("API_KEY") == "" { t.Skip(...) }

3. Scalability

  • Tests run in parallel where safe: t.Parallel() on independent tests
  • No global state shared between tests
  • File-based tests use t.TempDir() so they clean up automatically

4. Usability

  • Test output is clear on failure: assertion messages explain what went wrong
  • Test names describe the scenario, not just the function name
  • Each acceptance criterion from the story maps to at least one test
  • Coverage includes both TUI and Web UI paths if the story touched both

5. Security

  • Tests don't log or print API keys, even in test output
  • File path tests validate boundary checks (path traversal prevention)
  • Command execution tests verify argument separation

Read the full file on GitHub · 107 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. 4d ago First seen · 107 lines · 57 tokens per session scan A e203bd763dd2

Subscribe to this mod's changes

tester-reviewer is an agent published in the GitHub repository drujensen/aiagent (5 stars, last pushed 2mo ago), licensed MIT. It adds 57 tokens to every session and 957 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-10-03.

Related

Other agents, from other repositories