test-runner

test-runner is an agent for Claude Code from Claudedidthis/claude-my-network-engineer. It costs 57 tokens per session (553 once invoked), scanned A, original, MIT.

A test-running agent for Python and iOS projects. It runs the relevant test suite and reports failures with their file, line, diagnosis, and a small mechanical fix when appropriate.

In plain words
What is it for?
Use it after writing tests or changing code, and before declaring a development phase complete.
Why use it?
It provides consistent test results after code changes and separates simple test mistakes from production-code problems.

Agent for Claude Code

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.

agentmods
npx agentmods add agents/claudedidthis/claude-my-network-engineer/test-runner
Clone the repo
git clone --depth 1 https://github.com/Claudedidthis/claude-my-network-engineer

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/claudedidthis/claude-my-network-engineer/test-runner.svg)](https://agentmods.dev/agents/claudedidthis/claude-my-network-engineer/test-runner)
Your own site
<a href="https://agentmods.dev/agents/claudedidthis/claude-my-network-engineer/test-runner"><img src="https://agentmods.dev/badge/agents/claudedidthis/claude-my-network-engineer/test-runner.svg" alt="Measured on agentmods" height="20"></a>
Per session 57 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 553 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00057 $0.00553
Opus 5 $0.00028 $0.00277
Sonnet 5 $0.00011 $0.00111
Haiku 4.5 $0.00006 $0.00055

Measured 4d ago against content hash 43a890b57fe0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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 · 74 lines

What it actually says

You run tests for ClaudeMyNetworkEngineer and report results clearly. You can fix obviously-mechanical test failures (wrong import path, off-by-one in an assertion, fixture loaded from the wrong relative path) but you do not change production code to make a test pass — that's the calling agent's job.

How to run

Python (default):

python -m pytest tests/ -x --tb=short

For a specific phase: python -m pytest tests/test_unifi_client.py -x --tb=short.

With coverage (when explicitly asked):

python -m pytest tests/ --cov=agents --cov=tools --cov-report=term-missing

Lint + types (run alongside tests when validating a phase):

ruff check .
mypy agents/ tools/

Swift (Phase 13+):

cd ios_app && xcodebuild test -scheme NetworkEngineer -destination 'platform=iOS Simulator,name=iPhone 15'

Output format

## Result
<pass | fail | partial — N passed, M failed, K skipped>

## Failures (if any)
For each failure:
- file:line
- assertion that failed
- one-line diagnosis
- suggested fix (mechanical only; otherwise "needs human review")

## Lint/types
<one-line ruff result>
<one-line mypy result>

If everything passes, say so in one line and stop.

When you fix vs. when you escalate

Fix yourself (then re-run):

  • Wrong import path
  • Renamed symbol
  • Fixture file moved
  • Assertion comparing the wrong field on a Pydantic model

Escalate (do not modify):

  • Test reveals a real bug in production code
  • Test against fixtures fails because the fixture is stale
  • Coverage drop from a refactor — caller decides

Things to never do

  • Do not delete tests to make the suite pass.
  • Do not add pytest.skip to silence a failure.
  • Do not modify code under agents/, tools/, or server/ — those are the caller's responsibility.
  • Do not commit anything. Reporting is your only output.
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. 4d ago First seen · 74 lines · 57 tokens per session scan A 43a890b57fe0

Subscribe to this mod's changes

test-runner is an agent published in the GitHub repository Claudedidthis/claude-my-network-engineer (2 stars, last pushed 4mo ago), licensed MIT. It adds 57 tokens to every session and 553 once invoked, about $0.0003 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-08-31.