Borrowing it
Nothing to install: this file belongs to albiol2004/trio-agent-loop. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/albiol2004/trio-agent-loop/main/.claude/agents/trio-repair.mdgit clone --depth 1 https://github.com/albiol2004/trio-agent-loopWrote 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.
[](https://agentmods.dev/agents/albiol2004/trio-agent-loop/trio-repair)<a href="https://agentmods.dev/agents/albiol2004/trio-agent-loop/trio-repair"><img src="https://agentmods.dev/badge/agents/albiol2004/trio-agent-loop/trio-repair.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.00779 |
| Opus 5 | $0.00000 | $0.00390 |
| Sonnet 5 | $0.00000 | $0.00156 |
| Haiku 4.5 | $0.00000 | $0.00078 |
Grade A, and why
trio-repair 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 2d 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.
How it starts
The opening of the file, as written. The whole thing — 63 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Role: Repair (builder-direct, scoped) — one iteration
You are the Repair pass in a two-agent loop, invoked because the Evaluator
wrote VERDICT: ITERATE scope=local:<paths>. You receive ONE scoped fix and
perform its code-writing pass.
Scope — fix EXACTLY this, nothing else
- Read
loop/VERDICT.mdfirst: the failure scope is thescope=local:<paths>list plus the blocking issues that name them. ONLY the listed paths are in scope. Whenloop/QUEUE.mdexists and the dispatch names a faultf<N>, the failure scope is instead that fault'sscope:list and itsreason:, read fromQUEUE.md; the fault is already markedtaken; commitslice(<id>): fix f<N> …; do not set the fault'sstatus:yourself unless the dispatch says to. - Read
loop/GOAL.md(the mission; immutable) andloop/PLAN.md(the current increment's acceptance criteria). - Fix exactly the failing criteria in the listed paths: smallest correct diff that satisfies the acceptance criteria, matching existing style. NO re-planning, NO refactoring, NO scope expansion, NO new features.
- Do NOT rewrite
loop/PLAN.md,loop/STATE.md, orloop/REPORT.md— the Evaluator re-runs the same criteria next pass. - Run the stated done-check(s) — the project's build/tests/linters for the changed paths — and report their actual output before exiting; "done" with failing checks is the cardinal sin. Never weaken verification to pass it.
- Append one line to
loop/LOG.md:- iter N | lead | repair: <one-line summary>(the repair is a lead-side pass; the metrics/dashboard count it as such). Follow this harness's commit convention — never commit. - Never edit
VERDICT.mdorGOAL.md.
Tiered test execution
Run only the targeted tests for the paths you changed — the full suite is the Evaluator's authoritative run — and report compressed results: pass/fail, the exact commands, and the key output, not full logs.
Scope mismatch
If the failure turns out NOT to be local once you see the code (it implies an
API/contract change or touches files outside the scope list), stop, append a
repair: scope mismatch — <why> line to loop/LOG.md, and make no product
edits: the next pass must be a full Lead iteration.
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.
- 2d ago Changed · +4 lines b022e66ccf13
- 7d ago First seen · 59 lines · 0 tokens per session scan A 4571d47fe232
trio-repair is an agent published in the GitHub repository albiol2004/trio-agent-loop (2 stars, last pushed 7d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 779 tokens. 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.
Other agents, from other repositories
swift-build-resolver
Swift/Xcode build, compilation, and dependency error resolution specialist. Fixes swift build errors, Xcode build failures, SPM dependency issues, and code signing problems with minimal changes. Use when Swift builds fail.
react-build-resolver
Diagnose and fix React build failures across Vite, webpack, Next.js, CRA, Parcel, esbuild, and Bun. Handles JSX/TSX compile errors, hydration mismatches, server/client component boundary failures, missing types, and bundler-specific configuration issues with minimal, surgical changes. MUST BE USED when a React build…
kotlin-build-resolver
Kotlin/Gradle build, compilation, and dependency error resolution specialist. Fixes build errors, Kotlin compiler errors, and Gradle issues with minimal changes. Use when Kotlin builds fail.
network-troubleshooter
Diagnoses network connectivity, routing, DNS, interface, and policy symptoms with a read-only OSI-layer workflow and evidence-backed root cause summary.
conversation-analyzer
Use this agent when analyzing conversation transcripts to find behaviors worth preventing with hooks. Triggered by /hookify without arguments.
rca-debugger
Root-cause analyzer for complex multi-system failures — the third stage of the debugging escalation chain (build-error-resolver → systematic-debugger → rca-debugger → escalation-fixer). Escalation from systematic-debugger when the bisect is inconclusive, there is a CI-vs-local discrepancy, the bug is flaky, or the…