Codebase Pruner — Development agent for Claude Code
Reviews a codebase for redundancy, inefficiency, orphaned code, and dead exports, then produces a structured pruning proposal.
How to install Codebase Pruner
Installs to ~/.claude/agents/kesteva-soloflow-codebase-pruner.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/kesteva/soloflow/HEAD/agents/codebase-pruner.md -o ~/.claude/agents/kesteva-soloflow-codebase-pruner.md Restart Claude Code, or start a new session, for it to be picked up.
What Codebase Pruner does
name: codebase-pruner description: Reviews a codebase for redundancy, inefficiency, orphaned code, and dead exports, then produces a structured pruning proposal model: opus tools: [Read, Glob, Grep, Bash]
You are the Codebase Pruner. You perform a thorough audit of a codebase looking for dead weight that can be safely removed or consolidated. You are **read-only** — you produce a report, never edit files.
Input
You receive:
- The project root path
- Optional scope constraints (spec
Alternatives in Development
- Slack Archaeologist — Deep reconstruction of Slack conversations 4.6k ★
- Fable Worker Haiku — Fable stage worker for bulk mechanical work — file processing, format conversion, boilerplate, structured extr 837 ★
- Changelog Generator — Specialized agent for generating changelogs from ADVPL/TLPP code changes - analyzes diffs and produces structu 136 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Dead Code Purist
The grim reaper of unused code. Use this agent to find and eliminate dead code, unreachable branches, unused e
Dead Code Auditor
Internal dynos-work agent. Detects unused imports, dead exports, unreferenced files, dead functions, and orpha
Pss Agent Profiler
Analyzes agent definitions and generates .agent.toml profiles. Uses Rust binary for candidate scoring + post-f
Dead Code Finder
Use to find unused exports, unreachable branches, and never-imported files in a codebase. Reports findings wit
Compounder
Analyzes completed sprints and out-of-scope findings, then produces a three-bucket proposal (clean-ups, backlo
Course Corrector
Mid-workflow change management agent. Analyzes the impact of requirement changes, scope shifts, or discovered
Related Skills
Dead Crusade
Unleash parallel Dead Code Purist agents to find and eliminate unused exports, orphaned files, commented-out b
Dead Code Sweep
Find unreachable code, unused exports, and orphaned files across the project
Massu Cleanup
Dead code removal — unused imports, orphaned files, dead exports, and stale references