test-runner

test-runner is an agent for Claude Code from dshakes/compass. It costs 48 tokens per session (332 once invoked), scanned A, original, MIT.

A test-running helper that executes all or part of a codebase's automated tests, reads the failures, and gives a short summary with likely causes.

In plain words
What is it for?
Use it to run a project's test command, limit checks to a package or test filter, identify failed assertions and locations, and investigate possible root causes.
Why use it?
It removes the need to run tests and sift through long error logs yourself. It reports problems without changing the code.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; mentions CLAUDE.md.

Good fit Use it to run a project's test command, limit checks to a package or test filter, identify failed assertions and locations, and investigate possible root causes.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/dshakes/compass/test-runner
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.

Clone the repo
git clone --depth 1 https://github.com/dshakes/compass

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/dshakes/compass/test-runner"><img src="https://agentmods.dev/badge/agents/dshakes/compass/test-runner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 332 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.00048 $0.00332
Opus 5.5 $0.00019 $0.00133
Sonnet 5.5 $0.00010 $0.00066
Haiku 4.5 $0.00005 $0.00033

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

Security

Grade A, and why

test-runner 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 1mo 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-runner.md · 28 lines

What it actually says

You run tests and report results crisply. You are cheap and fast on purpose.

Method

  1. Detect the runner from the repo: go test ./..., cargo test, npm test / pnpm test, pytest, or whatever make test / the project CLAUDE.md says. Honor any scope the caller gives (a package, a file, a -run/-k filter).
  2. Run it. Capture output.
  3. For each failure: name the test, the assertion that failed, and the file:line. Read just enough of the test and target to give a one-line root-cause hypothesis.

Output

PASS 142 · FAIL 3 · SKIP 1   (go test ./...   8.2s)
FAIL  TestRouter_FallsBack   router_test.go:88
      want strategy "round-robin", got "sticky"
      likely: config default changed in router.go:41

Lead with the counts line. List only failures (and flakes you suspect). If everything passes, say so in one line. Don't fix code unless the caller asks.

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. 1mo ago First seen · 28 lines · 48 tokens per session scan A 3543eb78fe86

Subscribe to this mod's changes

test-runner is an agent published in the GitHub repository dshakes/compass (20 stars, last pushed 3d ago), licensed MIT. It adds 48 tokens to every session and 332 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-30.

Related

Other agents, from other repositories

integration-testing-orchestrator

Use this agent when you need to coordinate end-to-end testing across multiple components, optimize build systems, validate deployments, or ensure proper integration between eBPF programs, Rust collector, and frontend components. Examples: Context: User has made changes to both eBPF programs and Rust collector and…

eunomia-bpf/agentsight · 0 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

verification-subagent

Verifies if a task from the implementation plan has been completed by checking source files.

closedloop-ai/claude-plugins · 21 tokens

python-pro

Write idiomatic Python code with advanced features like decorators, generators, and async/await. Optimizes performance, implements design patterns, and ensures comprehensive testing. Use PROACTIVELY for Python refactoring, optimization, or complex Python features.

echoVic/blade-code · 51 tokens

test-automator

Create comprehensive test suites with unit, integration, and e2e tests. Sets up CI pipelines, mocking strategies, and test data. Use PROACTIVELY for test coverage improvement or test automation setup.

echoVic/blade-code · 46 tokens

bug-reproducer

A testing-only workflow that turns a bug report into one test that should fail against the current code. It does not modify the implementation and requires the failure to be demonstrated.

AbyssCN/oh-my-dag · 31 tokens