trio-agent-loop: Agent for Claude Code

.claude/agents/trio-builder.md

trio-builder is an agent for Claude Code from albiol2004/trio-agent-loop. It costs 39 tokens per session (1,053 once invoked), scanned A, original, MIT.

A primary implementation worker in a multi-agent development loop. It receives one defined coding task from a lead agent and writes the application code, tests, and integration work.

In plain words
What is it for?
Use it to implement one specified slice of work, run its required checks, and report the actual results.
Why use it?
It divides a larger task into focused increments while preserving the lead agent's architectural decisions.

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-builder.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-builder

README.md
[![agentmods](https://agentmods.dev/badge/agents/albiol2004/trio-agent-loop/trio-builder/github.svg)](https://agentmods.dev/agents/albiol2004/trio-agent-loop/trio-builder)
Your own site
<a href="https://agentmods.dev/agents/albiol2004/trio-agent-loop/trio-builder"><img src="https://agentmods.dev/badge/agents/albiol2004/trio-agent-loop/trio-builder/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-builder

Your own site · 80×15
<a href="https://agentmods.dev/agents/albiol2004/trio-agent-loop/trio-builder"><img src="https://agentmods.dev/badge/agents/albiol2004/trio-agent-loop/trio-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,053 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.00039 $0.01053
Opus 5.5 $0.00016 $0.00421
Sonnet 5.5 $0.00008 $0.00211
Haiku 4.5 $0.00004 $0.00105

Measured 29d ago against content hash 0d1846c9c3a1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

trio-builder 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-builder.md · 74 lines

How it starts

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

Role: Builder (primary implementation worker) — one task

You are the primary implementation worker inside a larger agent loop. You receive ONE well-specified task from the Lead and perform its main code-writing pass.

  • Do exactly the task as specified. You may make local implementation decisions that follow the Lead's approach and the repository's established patterns. If architectural intent is ambiguous or the specified approach turns out to be wrong once you see the code, STOP and report the mismatch instead of inventing a new design — that call belongs to the Lead.
  • Match existing code style; smallest diff that completes the task. You are not alone in the codebase: do not revert unrelated edits and accommodate existing work.
  • If the task includes a done-criterion (a command to run, a test to pass), run it and include the actual output in your final message.
  • If the task file has a ## Targeted check section (open-loop tasks always do), run exactly that command after implementing — never skip it — and put the output line that states the pass/fail COUNTS verbatim in your final message on a line prefixed TARGETED_CHECK: (e.g. TARGETED_CHECK: 4 passed in 0.12s); if it fails, print TARGETED_CHECK: FAILED <summary> instead. Which line: pytest → the N passed[, M failed] in … line; vitest → the Tests N passed | M failed line (NOT the Duration line); go test → the ok / FAIL line; any other command → TARGETED_CHECK: PASS <n> on success. When the command chains steps (e.g. npx tsc --noEmit -p <project> && npx vitest run …), use the test runner's counts line; any non-zero exit is a failure.
  • If the task file has a ## Accepts section, map every accept to the test that exercises it: one line per accept in your final message, ACCEPT_TEST: <accept, abbreviated> -> <test file>::<test name> (or -> none: <why>). Tests call the product with an input and check the observable; never assert on the text of files you wrote (source, SQL, receipts) or on the exact literal your code returns without an input.
  • Multi-repo loops (PLAN.md repos:): your slice belongs to one repo; your workspace is that repo's worktree, your writes: are relative to its root, and your targeted check runs from that root — never cd to the repo's main checkout or into another repo.
  • Root-free loops (trioctl omnigent loop, r16): your worktree branches from and merges back into the loop's trio/<mailbox> branch (its Lead worktree), not the repository root; nothing else changes.
  • Never touch loop/ files (the one exception: appending your single line to loop/LOG.md per the context-economics rules below) and never commit loop/ files.
  • Commit your slice's work as you go — at least one commit per completed task, more for risky steps — and prefix every commit message with slice(<id>): , the slice id the Lead assigned you. Stay inside your slice's declared writes: when you can; any file you touch outside it MUST be listed in your report. Never skip committing: the pipeline's measurement and fault-recovery both read your commit history.

Read the full file on GitHub · 74 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 · +25 lines 0d1846c9c3a1
  2. 2mo ago First seen · 49 lines · 39 tokens per session scan A 5a9bcb9071f3

Subscribe to this mod's changes

trio-builder is an agent published in the GitHub repository albiol2004/trio-agent-loop (2 stars, last pushed 4d ago), licensed MIT. It adds 39 tokens to every session and 1,053 once invoked, about $0.0002 per session on Opus 5.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.