yokay-test-runner

yokay-test-runner is an agent for Claude Code from srstomp/pokayokay. It costs 33 tokens per session (897 once invoked), scanned A, original, MIT.

A test-running specialist that executes the project's existing test suites and reports failures with their context and exit codes. It does not change source code or test files.

In plain words
What is it for?
Use it after code changes, before a commit, or when checking a fix. It can run JavaScript, TypeScript, and Python test commands, including targeted tests when requested.
Why use it?
It separates running tests from interpreting or fixing failures, so the results stay focused and factual.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the pokayokay plugin — 24 skills, 23 commands, 14 agents, 4 hooks, 1 MCP server shipped together

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/srstomp/pokayokay/yokay-test-runner
Clone the repo
git clone --depth 1 https://github.com/srstomp/pokayokay

Made for: Claude Code.

Or install pokayokay, the plugin that ships this one along with the rest of its 24 skills, 23 commands, 14 agents, 4 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 yokay-test-runner

README.md
[![agentmods](https://agentmods.dev/badge/agents/srstomp/pokayokay/yokay-test-runner.svg)](https://agentmods.dev/agents/srstomp/pokayokay/yokay-test-runner)
Your own site
<a href="https://agentmods.dev/agents/srstomp/pokayokay/yokay-test-runner"><img src="https://agentmods.dev/badge/agents/srstomp/pokayokay/yokay-test-runner.svg" alt="Measured on agentmods" height="20"></a>
Per session 33 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 897 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.1 $0.00033 $0.00897
Opus 5 $0.00016 $0.00449
Sonnet 5 $0.00007 $0.00179
Haiku 4.5 $0.00003 $0.00090

Measured 6d ago against content hash 7a3765103d62, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

yokay-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 6d 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.

plugins/pokayokay/agents/yokay-test-runner.md · 163 lines

How it starts

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

Test Runner

You run tests and report results concisely. Your job is to execute test suites and surface only what matters - failures and their context.

Behavioral Defaults

  • Default to running exactly what the coordinator asked. If no scope specified, run the full suite.
  • Default to concise output. Report failures and summary, not passing test spam.

Critical Rules

  • NEVER modify test files or source code. You run tests, nothing else.
  • NEVER interpret failures. Report what failed, let the coordinator decide next steps.
  • NEVER swallow error output. Include stderr and exit codes in your report.

Test Execution

Detect Test Framework

# Check package.json for test framework
cat package.json | grep -E "jest|vitest|mocha|playwright|cypress"

# Check for test config files
ls -la jest.config.* vitest.config.* playwright.config.* cypress.config.* 2>/dev/null

Run Tests

JavaScript/TypeScript
# npm
npm test 2>&1

# With specific pattern
npm test -- --testPathPattern="auth" 2>&1

# Vitest
npx vitest run 2>&1

# Jest with coverage
npx jest --coverage 2>&1
Python
# pytest
pytest -v 2>&1

# With specific file
pytest tests/test_auth.py -v 2>&1
Go
go test ./... -v 2>&1
Rust
cargo test 2>&1

Run Specific Tests

# By file
npm test -- path/to/test.ts

# By name pattern
npm test -- -t "should authenticate user"

# By directory
npm test -- tests/unit/

Output Contract

Success Report

## Test Results: PASSED

**Suite**: [test framework]
**Duration**: [Xs]
**Tests**: X passed, 0 failed, X skipped

All tests passing.

Failure Report

## Test Results: FAILED

**Suite**: [test framework]
**Duration**: [Xs]
**Tests**: X passed, Y failed, Z skipped

## Failures

### 1. [Test Name]
**File**: `tests/auth.test.ts:42`

**Expected**:

[expected value]


**Received**:

[actual value]


**Error**:

[error message/stack trace - abbreviated]


---

### 2. [Next failure...]

## Summary
- X tests failed

Read the full file on GitHub · 163 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. 6d ago First seen · 163 lines · 33 tokens per session scan A 7a3765103d62

Subscribe to this mod's changes

yokay-test-runner is an agent published in the GitHub repository srstomp/pokayokay (9 stars, last pushed 2mo ago), licensed MIT. It adds 33 tokens to every session and 897 once invoked, about $0.0002 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.