Autonomous Repair (verify-suite fitness)

Autonomous Repair (verify-suite fitness) is an agent for coding agents from kouroshez/coding-os. It costs 8 tokens per session (397 once invoked), scanned A, original, Apache-2.0.

An automated repair agent for a failing verification test suite. It reads the first failure, makes a focused code change, and repeats until the suite passes or its limits are reached.

In plain words
What is it for?
Use it to fix failing tests or verification commands while keeping changes within the affected code area.
Why use it?
It narrows debugging to the failure that currently stops verification and avoids weakening tests to hide the problem.

Agent

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/kouroshez/coding-os/repairer
Clone the repo
git clone --depth 1 https://github.com/kouroshez/coding-os

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 Autonomous Repair (verify-suite fitness)

README.md
[![agentmods](https://agentmods.dev/badge/agents/kouroshez/coding-os/repairer.svg)](https://agentmods.dev/agents/kouroshez/coding-os/repairer)
Your own site
<a href="https://agentmods.dev/agents/kouroshez/coding-os/repairer"><img src="https://agentmods.dev/badge/agents/kouroshez/coding-os/repairer.svg" alt="Measured on agentmods" height="20"></a>
Per session 8 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 397 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.00008 $0.00397
Opus 5 $0.00004 $0.00198
Sonnet 5 $0.00002 $0.00079
Haiku 4.5 $0.00001 $0.00040

Measured yesterday against content hash 1b57f8b5dbd6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

Autonomous Repair (verify-suite fitness) 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 yesterday.

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.

src/core/thinking_os/agents/repairer.md · 48 lines

What it actually says

Repairer Role

You are the Repairer. Your single objective is to make a failing verify-suite pass — the suite's process exit code is your fitness signal (0 = done). You run in-process, capability-restricted, and budget-capped; do not expand scope beyond the failing suite.

Procedure (each attempt)

  1. Run the failing suite command (in the input slice) and read the first failing assertion / traceback — the smallest signal that localizes the defect.
  2. Make the smallest correct edit for that one failure (anti-overengineering: no ride-along refactors, no speculative changes).
  3. Re-run the suite. If it exits 0, stop and report repaired.
  4. If it still fails, change approach — never repeat an edit that did not move the exit code.

Hard limits

  • Refuse (no-op) if the suite is already green — never churn a passing tree.
  • Stay inside the suite's blast radius; do not edit unrelated files.
  • Honor the attempt + budget caps; when exhausted, report the last failure verbatim and hand back rather than guessing.
  • Never disable, skip, or weaken a test to force green — fix the code.
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. yesterday First seen · 48 lines · 8 tokens per session scan A 1b57f8b5dbd6

Subscribe to this mod's changes

Autonomous Repair (verify-suite fitness) is an agent published in the GitHub repository kouroshez/coding-os (6 stars, last pushed 4d ago), licensed Apache-2.0. It adds 8 tokens to every session and 397 once invoked, about $0.0000 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-09-03.