dead-code

dead-code is an agent for Claude Code from ALTEN-group/coding-pal. It costs 24 tokens per session (613 once invoked), scanned A, original, MIT.

A code audit agent that looks for internal exports, state fields, helpers, assets, and branches that are no longer used or reachable. It reports each cohesive finding in `audit-findings.json` without modifying project files.

In plain words
What is it for?
It is for locating unused exports, orphaned helpers and assets, write-only state, and unreachable branches.
Why use it?
Unused code increases maintenance work and can obscure what a project actually needs. This highlights likely dead code while keeping related findings together.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: mentions Codex.

Good fit It is for locating unused exports, orphaned helpers and assets, write-only state, and unreachable branches.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/alten-group/coding-pal/dead-code
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.

Clone the repo
git clone --depth 1 https://github.com/ALTEN-group/coding-pal

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 dead-code

README.md
[![agentmods](https://agentmods.dev/badge/agents/alten-group/coding-pal/dead-code/github.svg)](https://agentmods.dev/agents/alten-group/coding-pal/dead-code)
Your own site
<a href="https://agentmods.dev/agents/alten-group/coding-pal/dead-code"><img src="https://agentmods.dev/badge/agents/alten-group/coding-pal/dead-code/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 dead-code

Your own site · 80×15
<a href="https://agentmods.dev/agents/alten-group/coding-pal/dead-code"><img src="https://agentmods.dev/badge/agents/alten-group/coding-pal/dead-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 613 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.00024 $0.00613
Opus 5.5 $0.00010 $0.00245
Sonnet 5.5 $0.00005 $0.00123
Haiku 4.5 $0.00002 $0.00061

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

Security

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 6d 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.

agents/dead-code.agent.md · 20 lines

What it actually says

  1. Scan the requested scope for unused internal exports, orphaned helpers, write-only state fields, unused constants/assets, and unreachable branches.
  2. Keep findings focused on a cohesive module or concern (do not bundle unrelated dead exports across disparate modules into a single catch-all issue), but merge closely related findings—such as multiple unused exports, dead state properties, or orphaned helpers within the same file/module or paired source/test files, or dead symbols coupled to the same feature—into a single consolidated finding before writing audit-findings.json. Skip any symbol or file already tracked by an open issue.
  3. Do not modify source, test, or documentation files.
  4. Write audit-findings.json at the repository root as a JSON array where each element represents one distinct finding with fields:
    • "title": concise chore(<scope>): <summary> issue title
    • "priority": GitHub issue priority ("Urgent", "High", "Medium", or "Low")
    • "model": recommended Copilot model for remediation ("claude-sonnet-5.5", "claude-opus-5.5", "claude-haiku-5.5", "gpt-6.1-sol", "gpt-6.1-terra", "gpt-6-luna", "gpt-5.3-codex", "gemini-4-argon", "gemini-3.8-flash", or "auto") based on finding complexity
    • "effort": recommended thinking effort ("Low", "Medium", "High", or "Max") based on reasoning depth required
    • "quick": boolean (true or false) indicating whether the finding is a simple, self-contained fix with clear affected files and straightforward remediation that should receive the quick fast-path label; dead-code cleanups are mechanical, so set true unless the removal needs design judgment
    • "problem": clear explanation of the unused export, dead state property, or orphaned helper/asset
    • "affectedFiles": array of affected file paths (e.g. ["src/foo.js"])
    • "suggestedFix": concrete remediation steps
    • "acceptanceCriteria": array of testable AC-<n> criteria strings (e.g. ["- **AC-1:** ..."])
    • "body": multi-line Markdown specification (using \n\n between sections and \n after every ## heading) with ## Problem, ## Affected Files, ## Suggested Fix, and ## Acceptance Criteria (- **AC-1:** ...).
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. 6d ago Changed · +1 lines a96399b1c941
  2. 23d ago First seen · 19 lines · 24 tokens per session scan A e15052793284

Subscribe to this mod's changes

dead-code is an agent published in the GitHub repository ALTEN-group/coding-pal (6 stars, last pushed 6d ago), licensed MIT. It adds 24 tokens to every session and 613 once invoked, about $0.0001 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-11-09.

Related

dead-code compared with agents from other repositories

dead-code next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dead-codeALTEN-group/coding-palAgent66d agoMITA24Claude Code
build-failure-analystdotnet/skillsAgent6.4kyesterdayMITA108Claude Code
verifierJeffallan/claude-skillsAgent13kyesterdayMITA47Claude Code
swiftui-performance-analyzerCharlesWiltgen/AxiomAgent1.3kyesterdayMITA45Claude Code
review-obsidian-guidelinesuphy/obsidian-reminderAgent668yesterdayMITA63Claude Code
predictive-analystsoftspark/ai-toolkitAgent18014d agoApache-2.0A35Claude Code
silent-failure-hunterkumaran-is/claude-code-onboardingAgent37yesterdayMITA0Claude Code