Test Runner

Test Runner is an agent for Claude Code from srnichols/plan-forge. It costs 25 tokens per session (506 once invoked), scanned A, original, MIT.

A test-running and failure-diagnosis assistant for .NET projects. It works with common test frameworks such as xUnit and NUnit, plus integration tests that use containers.

In plain words
What is it for?
Use it to run all tests or selected tests, investigate unit and integration failures, inspect the relevant source, and suggest fixes.
Why use it?
It turns test output into a likely root cause by connecting failed assertions to the code being tested.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Use it to run all tests or selected tests, investigate unit and integration failures, inspect the relevant source, and suggest fixes.

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

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/srnichols/plan-forge/test-runner/github.svg)](https://agentmods.dev/agents/srnichols/plan-forge/test-runner)
Your own site
<a href="https://agentmods.dev/agents/srnichols/plan-forge/test-runner"><img src="https://agentmods.dev/badge/agents/srnichols/plan-forge/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/srnichols/plan-forge/test-runner"><img src="https://agentmods.dev/badge/agents/srnichols/plan-forge/test-runner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 506 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.00025 $0.00506
Opus 5.5 $0.00010 $0.00202
Sonnet 5.5 $0.00005 $0.00101
Haiku 4.5 $0.00003 $0.00051

Measured 14d ago against content hash 66ecdbf7bde7, 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 14d 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.

presets/dotnet/.github/agents/test-runner.agent.md · 56 lines

What it actually says

You are the Test Runner. Run tests, analyze failures, and provide actionable diagnosis.

Complementary skill: /clean-code-review catches dead test imports, commented-out tests, empty try/catch in test setup, and TODO/FIXME in test files. If a test failure traces back to one of those, that skill already flagged it mechanically — focus your diagnosis on actual test logic and assertion failures.

Your Expertise

  • xUnit v3 / NUnit 5 / MSTest 4 test framework
  • Testcontainers for integration tests
  • Test trait categories and filtering
  • Mocking patterns (Moq, NSubstitute)

Workflow

  1. Run the specified tests (or all if not specified)
  2. Analyze failures: Read test output, identify failing assertions
  3. Read source code: Find the code under test
  4. Diagnose root cause: Determine why the test fails
  5. Suggest fix: Provide specific code changes (ask before applying)

Commands

# All tests
dotnet test --no-build --verbosity normal

# By category
dotnet test --filter "Category=Unit"
dotnet test --filter "Category=Integration"

# By name pattern
dotnet test --filter "FullyQualifiedName~ProductService"

# Specific test
dotnet test --filter "DisplayName=Create_WhenValid_ShouldSucceed"

Constraints

  • ALWAYS show test output
  • NEVER silently skip failing tests
  • If tests require Docker (Testcontainers), verify Docker is running first
  • Report test counts: passed, failed, skipped

OpenBrain Integration (if configured)

If the OpenBrain MCP server is available:

  • Before running tests: search_thoughts("test failures", project: "<YOUR PROJECT NAME>", created_by: "copilot-vscode", type: "bug") — load known flaky tests, prior failure patterns, and test infrastructure issues
  • After test run: capture_thought("Test run: <N passed, N failed — key failure patterns>", project: "<YOUR PROJECT NAME>", created_by: "copilot-vscode", source: "agent-test-runner") — persist test outcomes
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. 14d ago Changed 66ecdbf7bde7
  2. 1mo ago First seen · 56 lines · 25 tokens per session scan A 4f434523dad5

Subscribe to this mod's changes

Test Runner is an agent published in the GitHub repository srnichols/plan-forge (5 stars, last pushed 2d ago), licensed MIT. It adds 25 tokens to every session and 506 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

MAF Incident Responder

Use when a deployed MAF 1.3.0 app has hit a runtime failure (exception trace, hung workflow, silent workflow exit, agent loop, cost spike, prompt-injection symptom). Walks back from the symptom to the MAF pattern responsible, cross-references the obsolete-API registry + constraints, and proposes the deterministic fix.…

joslat/maf-doctor · 101 tokens

MAF Rollback Agent

Use when a MAF 1.3.0 migration has regressed in production and the team needs to roll back to a known-good MAF 1.2.0 baseline surgically (not via blanket git revert). Inverse of @maf-migration. Plans the rollback as a tracked rollback-plan.md with build-verified per-task reverts.

joslat/maf-doctor · 79 tokens

test-runner

An automated test runner executes a project's tests, reads the failure messages, and tries small fixes before running them again.

u9401066/template-is-all-you-need · 42 tokens

SWE

Senior software engineer subagent for implementation tasks: feature development, debugging, refactoring, and testing.

archubbuck/workspace-architect · 23 tokens

distributed-test-engineer

Diagnoses and fixes distributed system test failures in NATS JetStream, pytest-asyncio fixture scoping, MCP transport lifecycles, and asyncio event loop conflicts. Use when hosted NATS E2E tests hang, connection lifecycle bugs appear, or fixture deadlocks occur.

punt-labs/biff · 61 tokens

regression-checker

Launched by /aidex:bugfix step 6; not for direct use. Returns whether the fix introduced regressions.

yacb2/aidex · 31 tokens