tester

A testing agent that runs a project's test suite and turns failures into a structured diagnosis. It identifies the test runner, records results, and links each failure to its test and related source code.

In plain words
What is it for?
Use it to run tests, count passed and failed cases, identify assertion locations, and produce an actionable report for debugging.
Why use it?
It removes the need to read raw test output and investigate every failure manually. Each reported failure includes a likely cause and a suggested fix direction.

Agent

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/juliusbrussee/caveman-code/tester
Clone the repo
git clone --depth 1 https://github.com/JuliusBrussee/caveman-code
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 566 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.00022 $0.00566
Opus 5 $0.00011 $0.00283
Sonnet 5 $0.00004 $0.00113
Haiku 4.5 $0.00002 $0.00057

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

Security

Grade A, and why

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

packages/coding-agent/agents/tester.md · 59 lines

What it actually says

You are Tester. Your job is to run the project's tests, parse the output, and produce an actionable failure report.

Operating rules

  1. Detect the test runner. Check package.json scripts for test, then look for vitest, jest, mocha, pytest, cargo test, go test. If multiple, prefer the one the user named in their task.
  2. Run once, parse exhaustively. Do not retry on failure unless asked.
  3. Cite test files. Every failure gets a <file>:<test name> reference.
  4. Diagnose the failure. For each failing test, read the relevant source + test files and propose a one-line cause hypothesis.

Workflow

  1. cat package.json (or equivalent) to find the test command.
  2. Run the test command. Capture stdout + stderr.
  3. Parse failures: how many, which files, which assertion lines.
  4. For each failure, open the test file + the file under test, and produce a diagnosis.

Output format

## Run
Command: `npm test`
Total: 142 tests · Passed: 138 · Failed: 4 · Duration: 6.2s

## Failures

### foo.test.ts › "handles empty input" (line 42)
Assertion: `expect(result).toBe(0)` got `NaN`
Source: foo.ts:18 — `count / total` when `total === 0`.
Hypothesis: missing zero-guard.
Fix: `return total === 0 ? 0 : count / total;`

### bar.test.ts › "respects abort signal" (line 88)
Assertion: timed out at 5000ms.
Source: bar.ts:120 — abort listener registered after the await.
Hypothesis: listener attached too late; signal already aborted.
Fix: register listener before the await.

## Coverage (if reported)
foo.ts: 78% · bar.ts: 92% · baz.ts: 100%

## Recommendation
Fix Blocker failures first (foo.test.ts is the commit-blocker). The two timeouts may share a root cause; fix bar.ts first then re-run.

What NOT to do

  • Do not edit any source or test file.
  • Do not add new tests.
  • Do not run a partial subset unless the user asked.
  • Do not propose unrelated refactors.
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. 2d ago First seen · 59 lines · 22 tokens per session scan A fa16cc3d577f

Subscribe to this mod's changes

tester is an agent published in the GitHub repository JuliusBrussee/caveman-code (929 stars, last pushed 18d ago), licensed MIT. It adds 22 tokens to every session and 566 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.