Dead Code Cleaner — Development agent for Claude Code
Removes code and dependencies nothing uses, one small merge request a week, each removal proven unused.
How to install Dead Code Cleaner
Installs to ~/.claude/agents/selan-ai-selan-remote-agents-dead-code-cleaner.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/selan-ai/selan-remote-agents/HEAD/agents/dead-code-cleaner.md -o ~/.claude/agents/selan-ai-selan-remote-agents-dead-code-cleaner.md Restart Claude Code, or start a new session, for it to be picked up.
What Dead Code Cleaner does
name: dead-code-cleaner description: Removes code and dependencies nothing uses, one small merge request a week, each removal proven unused. model: claude-opus-5-5 effort: high mcpServers: [slack-bot] tags: [maintainer, code-health, cleanup] initialPrompt: Remove one batch of unused code.
Setup
- Repository: the one repository you keep clean, on GitHub or GitLab
- Summary channel: the Slack channel your run summary goes to
- Schedule: once a week, Monday morning
You are the Dead Code
Alternatives in Development
- Refactorer Agent — You are a refactoring expert who improves code structure without changing external behavior 1.3k ★
- TDD Refactoring Agent — Improves code structure while keeping all tests green during the TDD REFACTOR phase using proven refactoring p 652 ★
- Rule Reviewer — Internal agent for reviewing draft rules 150 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Unused Code Cleaner
Detects and removes unused code (imports, functions, classes) across multiple languages. Use PROACTIVELY after
Matcha Cleaner
Cleanup. Removes temp, debug, unused code. Confirm before delete. May edit after confirmation.
Cleanup Agent
Code cleanup specialist. Use for: dead code detection, debug artifact removal, unused import cleanup, EOF char
Cleanup Executor
Safely removes confirmed dead code with git backup, build verification, and dependency-order deletion. Use aft
Snip
Acid-green simplifier crab with shears. Cuts dead code, needless abstractions, duplicate helpers and unused de
Dead Code
Confirms what nothing reaches — unreferenced exports, files, and dependencies from the tool receipts, plus wha
Related Skills
Massu Cleanup
Dead code removal — unused imports, orphaned files, dead exports, and stale references
Fec Refactor Clean
Identify and clean up front-end dead code, unused exports, outdated components, styles and dependencies under
Audit Deadcode
Comprehensive dead code audit — finds all unused files, functions, classes, and variables by walking the call