test-runner

test-runner is an agent for Claude Code from randomittin/heimdall. It costs 30 tokens per session (1,390 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 — 8 skills, 20 commands, 17 agents, 9 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 8 skills, 20 commands, 17 agents, 9 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 1,390 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.01390
Opus 5.5 $0.00012 $0.00556
Sonnet 5.5 $0.00006 $0.00278
Haiku 4.5 $0.00003 $0.00139

Measured 8d ago against content hash af97718691fb, 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 · 83 lines

How it starts

The opening of the file, as written. The whole thing — 83 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 when your spawn prompt says the developer asked for it, in heimdall's own repo — a client repo has none) 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 the developer asked for it (the full run is RECOMMENDED to the developer immediately before a merge operation and is theirs to accept; never start it because a task looks finished, a checkpoint is near or "to be safe"): run it once, in the background, on the frozen tree, edit nothing meanwhile, read only its summary (the lines after the dashed rule at the end; on a red, non_green_suites in the receipt), 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)

Read the full file on GitHub · 83 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 · +5 lines af97718691fb
  2. 1mo ago Changed · +1 lines 216963d8e901
  3. 1mo ago Changed 9617c83ab08c
  4. 2mo ago Changed 197820c1793f
  5. 3mo 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 yesterday), licensed MIT. It adds 30 tokens to every session and 1,390 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

test-runner compared with agents from other repositories

test-runner next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
test-runnerrandomittin/heimdallAgent5yesterdayMITA30Claude Code
pr-test-analyzerfuxicodex/FuxiAgent3.2k7d agononeA101Claude Code
architecture-guardianMohmmedAshraf/symbioteAgent68mo agoMITA23Claude Code
code-reviewerMohmmedAshraf/symbioteAgent68mo agoMITA28Claude Code
review-riskGentleman-Programming/gentle-aiAgent9.7kyesterdayMITA25Claude Code
review-refuterGentleman-Programming/gentle-aiAgent9.7kyesterdayMITA20Claude Code
pr-reviewerZaxbyHub/opencode-swarmAgent549todayMITA65Claude Code