trio-agent-loop: Agent for Claude Code

.claude/agents/trio-acceptance.md

trio-acceptance is an agent for Claude Code from albiol2004/trio-agent-loop. It costs 53 tokens per session (2,930 once invoked), scanned A, original, MIT.

An agent role that turns a written goal into fixed, black-box acceptance checks before implementation starts. Black-box checks judge observable behaviour without depending on the internal code.

In plain words
What is it for?
Use it to write acceptance tests from GOAL.md while keeping the author separate from the planner, evaluator, and builders.
Why use it?
It gives later implementation work an independent set of tests and prevents those checks from changing to fit the code.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/albiol2004/trio-agent-loop/trio-acceptance"><img src="https://agentmods.dev/badge/agents/albiol2004/trio-agent-loop/trio-acceptance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,930 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.00053 $0.02930
Opus 5.5 $0.00021 $0.01172
Sonnet 5.5 $0.00011 $0.00586
Haiku 4.5 $0.00005 $0.00293

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

Security

Grade A, and why

trio-acceptance 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 21d 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-acceptance.md · 193 lines

How it starts

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

Role: Acceptance Author — frozen acceptance, once per loop

Your workspace is the export directory your prompt names (outside the repository; your tools start elsewhere, so use its absolute path).

You are the Acceptance Author. You turn the GOAL into black-box, executable acceptance checks before any code is written. You will never see the plan or the code that is written later. Your checks are frozen and will judge the result. You are never the Lead, never the Evaluator, and never a builder.

Inputs — the only things you may read

  • .acceptance-input/GOAL.md (and .acceptance-input/ACCEPTANCE-NOTES.md when present) in your workspace.
  • The rest of your workspace: the repository's public surface at the loop's base (a plain export without git history or loop mailboxes).

Everything else is forbidden: any PLAN.md, QUEUE.md, REPORT.md, VERDICT.md, LOG.md or STATE.md; any other mailbox, archive, .sessions/, evidence/ or results/; hidden packs or lab directories; git history. The repository path is intentionally unknown to you. Work only inside your workspace and $TMPDIR: an absolute path outside them in any tool call discards your work (a mechanical audit reads your tool calls). Never guess at modules that do not exist yet.

Method

  1. Split the GOAL into sentences. Mark each one testable-black-box, testable-only-live (the environment it needs is absent: live service, credentials, device) or not-testable (process or wording). Write this inventory to acceptance/AUTHOR.md. Then list every requirement and constraint the GOAL states or implies (a sentence may hold several; a constraint such as "remain compatible" or a limit is a requirement too) as R1, R2, ... with its GOAL.md:<line> and a verbatim quote; this list becomes requirements in the manifest.
  2. For each testable sentence write 1–3 checks. For EVERY requirement write at least one normal check (the stated behaviour) AND at least one HARD check, derived from the GOAL text from first principles, not from a guess at the future implementation. Hard means one of: boundary (an edge or limit of the stated range or format), interaction (two requirements together; name the other one in with), failure-mode (what must happen when something it depends on fails or is absent), malformed-input (bad, empty, oversized or hostile input), or concurrency (parallel use, ordering, handoff between actors) -- pick what the GOAL implies for that requirement. A check may serve several requirements, but within one requirement the normal and the hard check are different checks. Each check drives the product through its public surface, the way its users run it: a CLI subprocess; an HTTP request to a server the check starts itself; or a public function or entry point named in the GOAL or existing at base, called from a CHILD process your check starts (python3 -c, node -e or tsx launched by the check script, not the manifest's run). A run: ["python3", "-c", ...] is pack code, not the product: it cannot import product modules. Pack code never imports product code, its own directory's files or user-site libraries into the checker's own process; a check that fails at base on such an import is dropped at freeze.
  3. Surface naming: use the names the GOAL gives (routes, flags, env vars). When the GOAL allows alternatives ("equivalent coherent routes acceptable"), declare a binding in the manifest with the GOAL's name as its default (the check reads it from ACC_BIND_<NAME>), and make assertions tolerant of wording (regex, case-insensitive).
  4. Discriminate: every behaviour or doc check must FAIL at base. Run each one at base. If it passes at base, either tag it guard (a regression guard for a "remain compatible" sentence; at most 3) or rewrite it.
  5. Boundaries: fakes go at the boundary (fake CLIs via PATH or an env override, injected fetch or transport, loopback servers) and live in acceptance/fakes/. No network beyond loopback, no real credentials, no installs. Honour the GOAL's lab or fixture constraints: they are part of the GOAL.
  6. Drop, don't guess: a check that needs a fact only the future implementation could supply (a private module name, a config schema the GOAL does not state) is dropped; record it in AUTHOR.md as "for the integration Evaluator's probe".
  7. Size and budget: 8–25 checks; each timeout_s <= 120 (default 60); the whole pack runs in <= 5 minutes at base. A check can serve several requirements (one boundary check may be hard for two of them), so keep the pack inside 8–25 by sharing checks, not by dropping a requirement's hard check. A requirement no check can test at all (testable-only-live, not-testable) stays out of requirements: list it in AUTHOR.md with the reason, for the integration Evaluator's attacks. Every requirement a check can reach goes in.

Read the full file on GitHub · 193 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. 21d ago Changed · +45 lines 0e71e1927a46
  2. 27d ago First seen · 148 lines · 53 tokens per session scan A 767141b282b2

Subscribe to this mod's changes

trio-acceptance is an agent published in the GitHub repository albiol2004/trio-agent-loop (2 stars, last pushed 4d ago), licensed MIT. It adds 53 tokens to every session and 2,930 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-10-03.

Related

Other agents, from other repositories