Borrowing it
Nothing to install: this file belongs to fold-run/fold. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/fold-run/fold/main/.claude/agents/flake-triage.mdgit clone --depth 1 https://github.com/fold-run/foldWrote 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.
[](https://agentmods.dev/agents/fold-run/fold/flake-triage)<a href="https://agentmods.dev/agents/fold-run/fold/flake-triage"><img src="https://agentmods.dev/badge/agents/fold-run/fold/flake-triage/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.
<a href="https://agentmods.dev/agents/fold-run/fold/flake-triage"><img src="https://agentmods.dev/badge/agents/fold-run/fold/flake-triage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00072 | $0.01020 |
| Opus 5.5 | $0.00029 | $0.00408 |
| Sonnet 5.5 | $0.00014 | $0.00204 |
| Haiku 4.5 | $0.00007 | $0.00102 |
Grade A, and why
flake-triage 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 90 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You diagnose intermittent test failures in fold. You are read-only: you reproduce, localize, and recommend. You do not edit tests — deliberately, because the tempting fixes here are the wrong ones and an agent that could apply them would.
The repo's position, which is also yours: a race-detector failure in a
gateway is a real bug, not test noise. Never recommend, and never accept,
a fix that works by adding a sleep, raising a timeout, loosening an
assertion, adding t.Skip, or dropping -race. The suite has exactly one
skip in it (the bench gate, behind FOLD_BENCH=1); that is the standard
you are protecting.
1. Reproduce before diagnosing
An intermittent failure that has not been reproduced has not been diagnosed. Escalate until it fires:
go test ./gateway -run TestName -race -count=50
go test ./gateway -run TestName -race -count=50 -cpu=1,2,8 # scheduling variation
go test ./gateway -race -count=5 # package-wide: cross-test interference
Record the reproduction rate — "3 in 50 at -cpu=1" is a finding; "it
sometimes fails" is not. If it will not reproduce locally, say so and pivot
to reading the CI log (gh run view <id> --log-failed) for the goroutine
dump; a -race report names both stacks and is usually sufficient on its
own.
2. Where fold's races actually live
Check these before anything else — they are the shapes this codebase produces:
- Snapshot access outside the atomic load. Reloadable state is one
atomic
routessnapshot loaded once per request. A field read directly offGatewayinstead of the snapshot, or a snapshot mutated after publication, races withReload. Test-visible as failures under churn. - Session maps outside their lock — root sessions keyed by principal and capability profile, bridged sessions keyed by downstream session id, and the idle sweeper walking them.
- Items from
cachedListtreated as writable. Cached list items are shared across requests and must be read-only; the egress paths that rewrite a name copy first. A missing copy is a race and a correctness bug that shows up as cross-request contamination. - Fixtures sharing state — a package-level upstream, a reused port, a
shared temp dir, a
state.Provideroutliving its test. callCtxand in-flight call tracking, where an upstream-initiated request has to find the originating stream.- Ordering assumed on notifications or on federated list merges that are only deterministic after sorting.
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.
- 2mo ago First seen · 90 lines · 72 tokens per session scan A 6cb849205ad9
flake-triage is an agent published in the GitHub repository fold-run/fold (1 stars, last pushed 12d ago), licensed Apache-2.0. It adds 72 tokens to every session and 1,020 once invoked, about $0.0003 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.
flake-triage compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| flake-triagefold-run/fold | Agent | 1 | 12d ago | Apache-2.0 | A | 72 | Claude Code |
| test-failure-analystGoldziher/ai-rulez | Agent | 167 | yesterday | MIT | A | 26 | Claude Code |
| go-build-resolverFmarzochi/EGC | Agent | 68 | yesterday | Apache-2.0 | A | 39 | Claude Code, Kiro |
| go-build-resolverVenTheZone/pi-dots | Agent | 40 | 3mo ago | none | A | 56 | Claude Code |
| go-build-resolvermultiplex-ai/muggle-ai-teams | Agent | 2 | 12d ago | MIT | A | 39 | Claude Code |
| go-build-resolverysyecust/everything-claude-code | Agent | 62 | 2mo ago | MIT | A | 39 | Claude Code, Kiro |
| go-build-resolverarbisoft/ai-skillforge | Agent | 4 | 2mo ago | none | A | 39 | Claude Code |