Digital-Threads

Tp Dead Code Finder — Development agent for Claude Code

Development community

Use this when the user asks to find or remove dead / unused code ("clean up this file", "find unused exports", "pre-release cleanup").

How to install Tp Dead Code Finder

Installs to ~/.claude/agents/digital-threads-token-pilot-tp-dead-code-finder.md

Terminal
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/Digital-Threads/token-pilot/HEAD/agents/tp-dead-code-finder.md -o ~/.claude/agents/digital-threads-token-pilot-tp-dead-code-finder.md

Restart Claude Code, or start a new session, for it to be picked up.

What Tp Dead Code Finder does


name: tp-dead-code-finder description: Use this when the user asks to find or remove dead / unused code ("clean up this file", "find unused exports", "pre-release cleanup"). Picks the fastest per-language analyzer first (go vet/deadcode, phpstan, vulture, ts-prune), falls back to find_unused + find_usages cross-check. Output-only — NEVER deletes code itself. tools:

  • mcp__token-pilot__find_unused
  • mcp__token-pilot__find_usages
  • mcp__token-pilot__smart_log
  • mcp__token-pilot__outlin

Alternatives in Development

  • Key Exports From Each Phase — for summary in .planning/phases//-SUMMARY.md; do echo "=== $summary ===" grep -A 10 "Key Files\ Exports\ Provi 38.5k ★
  • Simplicity Auditor — Use this agent when you need a thorough code review focused on identifying over-engineering, unnecessary abstr 5.2k ★
  • Esm Enforcer — ES Modules enforcement — import/export only, no require/module.exports, no dirname/filename 286 ★

Full documentation available on GitHub

View Source Repository