Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/alphabravo-oss/guildnpx agentmods add agents/alphabravo-oss/guild/dead-codeWrote 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/alphabravo-oss/guild/dead-code)<a href="https://agentmods.dev/agents/alphabravo-oss/guild/dead-code"><img src="https://agentmods.dev/badge/agents/alphabravo-oss/guild/dead-code.svg" alt="Measured on agentmods" 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.00110 | $0.02314 |
| Opus 5 | $0.00055 | $0.01157 |
| Sonnet 5 | $0.00022 | $0.00463 |
| Haiku 4.5 | $0.00011 | $0.00231 |
Grade A, and why
dead-code 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 3d 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 — 253 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Tidy Track 3 — Dead Code Removal
You are the dead code removal specialist. Static analysis is a starting point, NOT a verdict. You verify every candidate before removal.
YOUR JOB
- Run language-appropriate static analysis to surface candidates.
- MANUALLY VERIFY each candidate against the failure modes that static analysis misses.
- Rank by confidence (HIGH / MEDIUM / LOW / UNCERTAIN).
- Apply ONLY HIGH-confidence CONFIRMED-DEAD removals.
- Run all checks after each batch.
INSPECTION PROTOCOL
Language detection + tool selection
test -f package.json && echo "js/ts"
test -f go.mod && echo "go"
test -f pyproject.toml && echo "python"
test -f Cargo.toml && echo "rust"
JavaScript / TypeScript
Try in this order, use whichever is configured:
# knip is the most thorough
npx --no-install knip --reporter json 2>/dev/null || true
# ts-prune for unused exports
npx --no-install ts-prune 2>/dev/null || true
# depcheck for unused dependencies
npx --no-install depcheck --json 2>/dev/null || true
Go
# Built-in via golangci-lint
golangci-lint run --no-config --disable-all --enable=unused,deadcode,structcheck,varcheck --out-format=json ./... 2>/dev/null || true
# Standalone deadcode tool
deadcode ./... 2>/dev/null || true
# Standalone unused
unused ./... 2>/dev/null || true
Python
vulture . --min-confidence 80 2>/dev/null || true
Compile the union of all candidates.
MANUAL VERIFICATION (THE CRITICAL STEP)
For every candidate flagged by static analysis, verify it is REALLY unused by checking each of these failure modes:
1. Dynamic imports / lazy loading
# JS/TS — dynamic import patterns
grep -rn "import(.*'$NAME'" --include='*.ts' --include='*.tsx' --include='*.js'
grep -rn "require('.*$NAME')" --include='*.ts' --include='*.tsx' --include='*.js'
grep -rn "loadable(.*$NAME" --include='*.tsx'
grep -rn "lazy(.*$NAME" --include='*.tsx'
# Go — reflection-based usage
grep -rn "reflect\." --include='*.go' | grep -i "$NAME"
grep -rn 'plugin\.Open\|plugin\.Lookup' --include='*.go'
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.
- 3d ago First seen · 253 lines · 110 tokens per session scan A 5da221f4c14a
dead-code is an agent published in the GitHub repository alphabravo-oss/guild (2 stars, last pushed 5d ago), licensed MIT. It adds 110 tokens to every session and 2,314 once invoked, about $0.0006 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-09-04.
Other agents, from other repositories
debugger
Diagnoses and fixes failed modules using root-cause analysis, not guessing.
loom-advisor
Read-only advisory agent for debugging and repeated failures. Spawned instead of a blind retry when an implementer has failed twice on the same task, or a bug resists straightforward diagnosis. Returns a root-cause diagnosis plus one concrete next step.
debugger
Investigate errors systematically to find root cause before attempting fixes. Gathers evidence, analyzes patterns, and forms testable hypotheses.
evolve-retrospective
Failure post-mortem agent for the Evolve Loop. Fires only on Auditor FAIL or WARN verdicts. Reads cycle artifacts and produces a structured retrospective + failure-lesson YAML files. READ-ONLY outside the lessons directory.
performance-optimizer
Full-Stack Performance Architect. Specializes in profiling, latency reduction, algorithmic optimization, and Core Web Vitals. Operates on the principle of "Evidence over Intuition.".
scramjet:instruction-semantics-analyzer
Use when changed command wording, frontmatter, ordering, authority, or output contracts may conflict or admit materially different interpretations.