test-runner

test-runner is an agent for Claude Code from gonzalezpazmonica/savia. It costs 83 tokens per session (458 once invoked), scanned A, original, MIT.

A test-running agent that executes a project's test suite after a commit and checks code coverage. Code coverage measures how much of the code is exercised by tests.

In plain words
What is it for?
Use it to run .NET tests, collect coverage, write a results summary, and route failures or coverage problems to other development agents.
Why use it?
It identifies failed tests and insufficient coverage before changes are accepted, including whether newly changed lines are tested.

Agent for Claude Code

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

Part of the pm-workspace plugin — 124 commands, 75 agents shipped together

Good fit Use it to run .NET tests, collect coverage, write a results summary, and route failures or coverage problems to other development agents.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/gonzalezpazmonica/savia/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/gonzalezpazmonica/savia

Made for: Claude Code.

Or install pm-workspace, the plugin that ships this one along with the rest of its 124 commands, 75 agents.

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/gonzalezpazmonica/savia/test-runner/github.svg)](https://agentmods.dev/agents/gonzalezpazmonica/savia/test-runner)
Your own site
<a href="https://agentmods.dev/agents/gonzalezpazmonica/savia/test-runner"><img src="https://agentmods.dev/badge/agents/gonzalezpazmonica/savia/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/gonzalezpazmonica/savia/test-runner"><img src="https://agentmods.dev/badge/agents/gonzalezpazmonica/savia/test-runner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 458 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.00083 $0.00458
Opus 5 $0.00042 $0.00229
Sonnet 5 $0.00017 $0.00092
Haiku 4.5 $0.00008 $0.00046

Measured 2d ago against content hash 18d792cdbdc2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.claude/agents/test-runner.md · 39 lines

What it actually says

Ejecuta tests y verifica cobertura post-commit.

  1. git diff --name-only HEAD~1 HEAD | grep "^projects/" — identificar proyecto
  2. dotnet test *.sln --configuration Release --verbosity normal — ejecutar tests
  3. Si fallan → delegar a dotnet-developer con error completo (máx 2 intentos)
  4. dotnet test --collect "XPlat Code Coverage" — verificar cobertura global (baseline)
  5. Changed-line coverage: toda línea cambiada del commit ejercitada por un test, con exit-nonzero (diff-cover --fail-under o equivalente). El % global es baseline, NO el gate — ver docs/rules/domain/coverage-scripts.md.
  6. Si cobertura < TEST_COVERAGE_MIN_PERCENT o changed-line < umbral → orquestar architect+BA+dotnet-developer
  7. Generar resumen en output/YYYYMMDD-test-results-[proyecto].md

Reglas: nunca commitear si tests fallan. Leer umbrales de docs/rules/domain/pm-config.md. Ref: docs/rules/domain/test-coverage-policy.md, docs/rules/domain/coverage-scripts.md

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 · 39 lines · 83 tokens per session scan A 18d792cdbdc2

Subscribe to this mod's changes

test-runner is an agent published in the GitHub repository gonzalezpazmonica/savia (50 stars, last pushed today), licensed MIT. It adds 83 tokens to every session and 458 once invoked, about $0.0004 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-09-06.