trio-lead

trio-lead is an agent for Claude Code from albiol2004/trio-agent-loop. It costs 46 tokens per session (3,214 once invoked), scanned A, original, MIT.

A repair agent for a two-agent coding loop. It applies only the specific fixes identified by the evaluator, then runs the required checks and records the result.

In plain words
What is it for?
Fixing a named set of files or issues after an evaluation, running the project’s tests, builds, or linters, and logging the repair outcome.
Why use it?
It prevents a repair pass from expanding into unrelated refactoring or new features, keeping the change limited to the reported failure.

Agent for Claude Code

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

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/albiol2004/trio-agent-loop/trio-lead
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-lead

README.md
[![agentmods](https://agentmods.dev/badge/agents/albiol2004/trio-agent-loop/trio-lead.svg)](https://agentmods.dev/agents/albiol2004/trio-agent-loop/trio-lead)
Your own site
<a href="https://agentmods.dev/agents/albiol2004/trio-agent-loop/trio-lead"><img src="https://agentmods.dev/badge/agents/albiol2004/trio-agent-loop/trio-lead.svg" alt="Measured on agentmods" height="20"></a>
Per session 46 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,214 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.1 $0.00046 $0.03214
Opus 5 $0.00023 $0.01607
Sonnet 5 $0.00009 $0.00643
Haiku 4.5 $0.00005 $0.00321

Measured today against content hash f0a41617b3a9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

trio-lead 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 today.

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-lead.md · 185 lines

How it starts

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

Role: Lead (plan + delegate + review) — one iteration

You are the Lead in a two-agent loop (Lead → Evaluator). You own planning, architecture, delegation, review, and final delivery; Sonnet builders own the main implementation pass. The Evaluator independently grades your iteration afterward.

The orchestrator's prompt may name a mailbox directory other than loop/ (and/or a project root other than your cwd) — if it does, resolve every loop/ path below there. Never touch any other loop* directory you find in the tree: it belongs to a different loop.

Inputs (read in this order)

  1. loop/GOAL.md — the human's mission. Immutable to agents; overrides everything.
  2. loop/VERDICT.md — the Evaluator's last verdict. Every blocking issue in it MUST be addressed this iteration.
  3. loop/STATE.md — iteration number, plus "Approaches tried and rejected": never retry a rejected approach; when a verdict kills one, append it there with one line of why.
  4. loop/PLAN.md — your own living plan from previous iterations.

The orchestrator's brief hands you diagnosed line ranges (from cheap grep/symbol search) instead of "read the file" — honor them. Do not full-file-read a multi-MB monolith on your first turn: both provider crashes happened while ingesting the 2.1 MB game file. Read only the briefed ranges; widen only by targeted range re-reads.

Phase 1 — Plan (update loop/PLAN.md)

INCREMENTAL-WRITE gate (before any recon): the very first action of this iteration is to write the loop/PLAN.md skeleton (iteration heading, one-sentence objective, task list with done-criteria) and record the iteration bump in loop/STATE.md — do this BEFORE any deep recon or reads of product files. Provider transport crashes during heavy first-turn context ingest have killed Leads twice (both while ingesting the 2.1 MB game monolith); a skeleton write first bounds rework loss to the skeleton itself. If the orchestrator already bumped iteration: in STATE.md, verify it reads N and proceed.

Read the full file on GitHub · 185 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. today Changed · +43 lines f0a41617b3a9
  2. 5d ago First seen · 142 lines · 46 tokens per session scan A eb7955aee6f9

Subscribe to this mod's changes

trio-lead is an agent published in the GitHub repository albiol2004/trio-agent-loop (2 stars, last pushed 5d ago), licensed MIT. It adds 46 tokens to every session and 3,214 once invoked, about $0.0002 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

blind-acceptance

Слепая приёмка перед словом «готово». Получает ТОЛЬКО исходную просьбу человека и сделанные изменения — без спеки, плана, тикетов и разговора — и отвечает на единственный вопрос: сделали ли то, о чём просили. Вызывать в конце работы, после того как гейт верификации дал ноль. Судит соответствие, а не качество; ничего…

edvardgrishin27/superstack-plugin · 0 tokens

builder

Пишет код одного таска в свежем контексте и возвращает контракт. Получает готовый промпт от handoff.py — ticket, границы уже построенного, разделы спецификации, тестовый контракт. Вызывать на каждый таск отдельно; двух тасков в одном контексте не бывает. Не оркестрирует, не правит чужие зоны, не решает за человека.

edvardgrishin27/superstack-plugin · 87 tokens

second-opinion

Читающий-только советчик на самой сильной модели. Вызывать на границах решения — до того, как выбрана архитектура, схема данных, форма API или стратегия рефакторинга; когда одна и та же задача не поддалась двум разным попыткам; и ОБЯЗАТЕЛЬНО один раз перед тем, как сказать «готово». Получает решение (или диф) и…

edvardgrishin27/superstack-plugin · 0 tokens

cpp-reviewer

Expert C++ code reviewer specializing in memory safety, modern C++ idioms, concurrency, and performance. Use for all C++ code changes. MUST BE USED for C++ projects.

affaan-m/ECC · 41 tokens

dynamic-agents

Dynamic agents use functions instead of static values for instructions, model, and tools. These functions receive runtime context and return the appropriate configuration for each operation.

VoltAgent/voltagent · 0 tokens

design-rules

Condensed 10 Golden Rules from the Agent Design Bible.

jmagly/aiwg · 0 tokens