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 (858 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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for trio-repair

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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 858 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.00858
Opus 5.5 $0.00000 $0.00343
Sonnet 5.5 $0.00000 $0.00172
Haiku 4.5 $0.00000 $0.00086

Measured 29d ago against content hash 3b7ccbc69061, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 29d 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 · 67 lines

How it starts

The opening of the file, as written. The whole thing — 67 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. Commit the fix: only the files you edited, as slice(<id>): fix <summary> (the slice whose writes: cover the scoped paths), so the Evaluator's pin includes it. Never commit loop/ files. Then append one line to loop/LOG.md: - iter N | repair | <one-line summary> — the driver's LOG gate for a repair pass requires the | repair | role field.
  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.

Read the full file on GitHub · 67 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. 29d ago Changed · +4 lines 3b7ccbc69061
  2. 1mo ago Changed · +4 lines b022e66ccf13
  3. 2mo 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 4d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 858 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

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

tracer

Evidence-driven causal tracing with competing hypotheses, evidence for/against, uncertainty tracking, and next-probe recommendations.

Yeachan-Heo/oh-my-claudecode · 24 tokens

workflow-debugger

Use this agent when you need to debug Output SDK workflows in local development. Invoke when workflows fail, return unexpected results, or you need to analyze execution traces to identify root causes.

growthxai/output · 40 tokens

ebpf-kernel-engineer

Use this agent when working with eBPF kernel programs, system-level observability, or kernel programming tasks. Examples include: developing or modifying process.bpf.c and sslsniff.bpf.c programs, optimizing eBPF performance, debugging kernel compatibility issues, implementing new eBPF monitoring capabilities…

eunomia-bpf/agentsight · 0 tokens

security-performance-auditor

Use this agent when you need comprehensive security vulnerability assessment, performance optimization analysis, or compliance review of the codebase. Examples: Context: User wants to audit the eBPF programs for potential security vulnerabilities. user: 'Can you check our eBPF programs for any security issues?'…

eunomia-bpf/agentsight · 0 tokens