test-runner

test-runner is an agent for Claude Code from randomittin/heimdall. It costs 30 tokens per session (853 once invoked), scanned A, original, MIT.

A coding assistant for writing and running automated tests, which check that software behaves as expected.

In plain words
What is it for?
Use it to add tests, run the existing test suite, check test coverage, and test interactions between connected systems.
Why use it?
It helps catch broken code and untested parts without making you work out the project's test tools yourself.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; mentions CLAUDE.md.

Part of the hmd plugin — 7 skills, 19 commands, 16 agents, 8 hooks, 1 MCP server shipped together

Good fit Use it to add tests, run the existing test suite, check test coverage, and test interactions between connected systems.

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

Made for: Claude Code.

Or install hmd, the plugin that ships this one along with the rest of its 7 skills, 19 commands, 16 agents, 8 hooks, 1 MCP server.

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/randomittin/heimdall/test-runner/github.svg)](https://agentmods.dev/agents/randomittin/heimdall/test-runner)
Your own site
<a href="https://agentmods.dev/agents/randomittin/heimdall/test-runner"><img src="https://agentmods.dev/badge/agents/randomittin/heimdall/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/randomittin/heimdall/test-runner"><img src="https://agentmods.dev/badge/agents/randomittin/heimdall/test-runner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 853 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.00030 $0.00853
Opus 5.5 $0.00012 $0.00341
Sonnet 5.5 $0.00006 $0.00171
Haiku 4.5 $0.00003 $0.00085

Measured 8d ago against content hash 9617c83ab08c, 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 8d 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.

agents/test-runner.md · 77 lines

How it starts

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

Test Runner Agent

You are the test-runner agent for Heimdall. You maintain the test bench and ensure code quality through comprehensive testing.

Your Responsibilities

  1. Write tests for new and existing code
  2. Run tests at the scope your spawn names (your own file(s) by default; the full suite only as THE final sweep) and report results
  3. Maintain coverage — flag untested code paths
  4. Integration tests for cross-system interactions

Test Framework Discovery

Detect the project's test framework automatically (check in order, use the first match):

  1. package.json → read scripts.test for the runner (jest, vitest, mocha, playwright, etc.)
  2. pytest.ini / pyproject.toml / setup.cfg → Python pytest
  3. Cargo.toml → cargo test
  4. go.mod → go test ./...
  5. Makefile → check for test target
  6. tox.ini → Python tox

If multiple match, prefer the one with existing test files. If none match, ask the orchestrator.

Testing Protocol

  1. Discover test framework: Use the detection logic above
  2. Read existing tests: Understand the project's testing patterns and conventions
  3. Write tests: Follow existing patterns exactly
  4. Run tests — test once, at the end (CLAUDE.md "When the full gate runs"): scope = what your spawn prompt names. Default: ONLY the test file(s) you wrote or edited, ONCE, after all are written — no neighbouring suites, no re-run of an unchanged tree. The FULL suite runs only when the prompt says it is THE final sweep (the orchestrator's one run on the frozen tree, immediately before the landing commit / push / demo / checkpoint): run it once, edit nothing meanwhile, and report. A failure plausibly caused by machine load gets ONE solo re-run, then it is real — report it, don't loop.
  5. Report results: Clear summary of pass/fail/skip counts, naming the scope that ran (own file(s) vs full sweep)

Skills to Use

  • superpowers:test-driven-development — follow TDD when writing new tests
  • pr-review-toolkit:pr-test-analyzer — analyze test coverage gaps in PRs
  • superpowers:verification-before-completion — verify everything passes before marking done

Read the full file on GitHub · 77 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. 8d ago Changed 9617c83ab08c
  2. 1mo ago Changed 197820c1793f
  3. 1mo ago First seen · 77 lines · 30 tokens per session scan A 3be2ff3bf072

Subscribe to this mod's changes

test-runner is an agent published in the GitHub repository randomittin/heimdall (5 stars, last pushed 4d ago), licensed MIT. It adds 30 tokens to every session and 853 once invoked, about $0.0001 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-31.

Related

Other agents, from other repositories

tester

Use this agent when you need to validate code quality through testing, including running unit and integration tests, analyzing test coverage, validating error handling, checking performance requirements, or verifying build processes. This agent should be called after implementing new features or making significant…

opencue/cuecards · 349 tokens

test-generator

Generates comprehensive test suites using TDD patterns. Use when writing tests, improving coverage, or implementing test-first development.

travisjneuman/.claude · 27 tokens

pr-test-analyzer

Use this agent when you need to review a pull request for test coverage quality and completeness. This agent should be invoked after a PR is created or updated to ensure tests adequately cover new functionality and edge cases. Typical triggers include the user asking whether tests on a freshly-created PR are thorough…

fuxicodex/Fuxi · 101 tokens

debugger

Root-cause debugging: reproduce, confirm the cause with evidence, apply a minimal fix and prove it with a regression test. Use for bugs, flaky tests or errors of unknown cause.

KevinZai/commander · 40 tokens

qa-engineer

Adversarial QA in an isolated worktree: breaking-case tests, coverage delta and reproducible bug reports. Use to test a feature, close coverage gaps or verify a fix.

KevinZai/commander · 40 tokens

test-engineer

Writes characterization, contract, and equivalence tests that pin down legacy behavior so transformation can be proven correct. Use before any rewrite.

fuxicodex/Fuxi · 30 tokens