trio-agent-loop: Agent for Claude Code

.claude/agents/trio-repair.md

trio-repair is an agent for Claude Code from albiol2004/trio-agent-loop. It costs 0 tokens per session (779 once invoked), scanned A, original, MIT.

A lead agent for a two-agent coding loop: it plans the work, assigns the main implementation to a Sonnet builder, reviews the result, and corrects it when needed.

In plain words
What is it for?
Maintaining the loop’s plan and report, delegating implementation, reviewing builder output, and guiding another iteration when the evaluator finds problems.
Why use it?
It gives the loop one agent responsible for coordinating the plan, reviewing changes, and ensuring the final result meets the stated requirements.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

This is albiol2004/trio-agent-loop's own configuration. It tells Claude Code how to work on trio-agent-loop itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything trio-agent-loop configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/albiol2004/trio-agent-loop/main/.claude/agents/trio-repair.md
Clone the repo
git clone --depth 1 https://github.com/albiol2004/trio-agent-loop

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 trio-repair

README.md
[![agentmods](https://agentmods.dev/badge/agents/albiol2004/trio-agent-loop/trio-repair.svg)](https://agentmods.dev/agents/albiol2004/trio-agent-loop/trio-repair)
Your own site
<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>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 779 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.00000 $0.00779
Opus 5 $0.00000 $0.00390
Sonnet 5 $0.00000 $0.00156
Haiku 4.5 $0.00000 $0.00078

Measured 2d ago against content hash b022e66ccf13, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

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.

.claude/agents/trio-repair.md · 63 lines

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

  1. Read loop/VERDICT.md first: the failure scope is the scope=local:<paths> list plus the blocking issues that name them. ONLY the listed paths are in scope. When loop/QUEUE.md exists and the dispatch names a fault f<N>, the failure scope is instead that fault's scope: list and its reason:, read from QUEUE.md; the fault is already marked taken; commit slice(<id>): fix f<N> …; do not set the fault's status: yourself unless the dispatch says to.
  2. Read loop/GOAL.md (the mission; immutable) and loop/PLAN.md (the current increment's acceptance criteria).
  3. 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.
  4. Do NOT rewrite loop/PLAN.md, loop/STATE.md, or loop/REPORT.md — the Evaluator re-runs the same criteria next pass.
  5. 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.
  6. 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.
  7. Never edit VERDICT.md or GOAL.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.

Read the full file on GitHub · 63 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. 2d ago Changed · +4 lines b022e66ccf13
  2. 7d ago First seen · 59 lines · 0 tokens per session scan A 4571d47fe232

Subscribe to this mod's changes

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.

Related

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.

affaan-m/ECC · 48 tokens

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…

affaan-m/ECC · 73 tokens

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.

affaan-m/ECC · 44 tokens

network-troubleshooter

Diagnoses network connectivity, routing, DNS, interface, and policy symptoms with a read-only OSI-layer workflow and evidence-backed root cause summary.

affaan-m/ECC · 34 tokens

conversation-analyzer

Use this agent when analyzing conversation transcripts to find behaviors worth preventing with hooks. Triggered by /hookify without arguments.

affaan-m/ECC · 28 tokens

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…

sangrokjung/claude-forge · 118 tokens