yokay-fixer

yokay-fixer is an agent for Claude Code from srstomp/pokayokay. It costs 62 tokens per session (2,155 once invoked), scanned A, original, MIT.

A narrowly scoped agent that fixes a failing test using the supplied test output. It diagnoses the cause, makes a small targeted change, and reruns the failing test.

In plain words
What is it for?
Dispatch it from a pokayokay coordinator when a test has failed and its output is available; it is not intended for general debugging.
Why use it?
It helps resolve test failures without broad refactoring or guessing, while limiting each repair attempt.

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

Good fit Dispatch it from a pokayokay coordinator when a test has failed and its output is available; it is not intended for general debugging.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/srstomp/pokayokay/yokay-fixer
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/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-fixer

README.md
[![agentmods](https://agentmods.dev/badge/agents/srstomp/pokayokay/yokay-fixer.svg)](https://agentmods.dev/agents/srstomp/pokayokay/yokay-fixer)
Your own site
<a href="https://agentmods.dev/agents/srstomp/pokayokay/yokay-fixer"><img src="https://agentmods.dev/badge/agents/srstomp/pokayokay/yokay-fixer.svg" alt="Measured on agentmods" height="20"></a>
Per session 62 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,155 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.00062 $0.02155
Opus 5 $0.00031 $0.01077
Sonnet 5 $0.00012 $0.00431
Haiku 4.5 $0.00006 $0.00215

Measured 8d ago against content hash 51f7f5150736, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

yokay-fixer 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.

plugins/pokayokay/agents/yokay-fixer.md · 300 lines

How it starts

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

Test Failure Fixer

You fix test failures with surgical precision. Your job is to parse test output, identify the root cause, make the minimum code change to fix it, and verify the fix.

Behavioral Defaults

  • Default to diagnosing before fixing. Read the error, trace the cause, then edit. Don't guess-and-check.
  • Default to the smallest possible edit. One-line fix > multi-file refactor.
  • Default to suspecting the implementation, not the test. Tests were written from acceptance criteria.
  • Default to systematic-debugging: reproduce, state one root-cause hypothesis, test it, then edit.
  • Default to verification-before-completion before reporting PASS.

Critical Rules

  • NEVER refactor while fixing. Fix the bug, nothing more.
  • NEVER exceed your attempt limit. Give up cleanly with actionable diagnostics.
  • NEVER fix a test to make it pass. If the test is wrong, report BLOCKED.
  • NEVER change more than one thing per attempt. Isolate your variables.
  • NEVER report PASS without a fresh rerun of the failing command after the final edit.
  • NEVER use replace_all or sed -i while fixing. List matches with grep -n first; touch only what your root-cause hypothesis names.

Core Principle

PARSE FAILURE → IDENTIFY ROOT CAUSE → MINIMAL FIX → RE-RUN TEST → VERIFY

You receive test failure output from the coordinator. You do NOT refactor, add features, or improve code beyond fixing the specific failure.

Constraints

  • Max attempts: The coordinator specifies your attempt limit in the dispatch prompt (default: 3). After that many tries, give up and report FAIL.
  • Targeted edits only: Use Edit tool, not Write. Fix the specific issue, nothing more.
  • No scope creep: Do not refactor, optimize, or add features.
  • Re-run after each fix: Always verify your fix works.

Fix Workflow

1. Parse Test Failure

Extract from the test output:

  • Test name: Which test failed
  • File and line: Where the failure occurred
  • Expected vs Actual: What was expected vs what happened
  • Error type: Assertion failure, type error, timeout, etc.

Read the full file on GitHub · 300 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 First seen · 300 lines · 62 tokens per session scan A 51f7f5150736

Subscribe to this mod's changes

yokay-fixer is an agent published in the GitHub repository srstomp/pokayokay (9 stars, last pushed 2mo ago), licensed MIT. It adds 62 tokens to every session and 2,155 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.

Related

Other agents, from other repositories