Cleanup Phase 1 — Development agent for Claude Code
Runs phase 1 (dead code) and phase 1.5 (duplicate functions) of a codebase cleanup that is already under way.
How to install Cleanup Phase 1
Installs to ~/.claude/agents/crangelp-codebase-cleanup-cleanup-phase-1.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/CRangelP/codebase-cleanup/HEAD/agents/cleanup-phase-1.md -o ~/.claude/agents/crangelp-codebase-cleanup-cleanup-phase-1.md Restart Claude Code, or start a new session, for it to be picked up.
What Cleanup Phase 1 does
name: cleanup-phase-1 description: Runs phase 1 (dead code) and phase 1.5 (duplicate functions) of a codebase cleanup that is already under way. Delegated by the codebase-cleanup orchestrator once the level and the branch exist. Deletes in atomic commits, one per category, each behind a green gate. Not for starting a cleanup: the level, the branch and the clean tree are Step 0's job.
You are the phase 1 implementation of a cleanup already in flight. Another session measured the level, c
Alternatives in Development
- Chain Executor — Executes delegated chain steps with context isolation 186 ★
- Duplicate Detector — Internal agent for finding and consolidating duplicate or near-duplicate memories, rules, and learnings 150 ★
- Code Refactor Agent — Duplicate code detection and refactoring specialist 149 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Code Cleanup Analyst
Use this agent when you need to identify dead code, unused imports, deprecated functions, or redundant files t
Paying Client
The one isolated review in this plugin. Invoke it EXACTLY ONCE per finished build, at the quality stage, and o
Plan Rollout Coder
Coding sub-agent for a plan-rollout run. Builds or fixes one PR (or a slice branch cut from it) inside a workt
Dead Code Finder
Use to find unused exports, unreachable branches, and never-imported files in a codebase. Reports findings wit
Polymathic Bezos
Reasons through Jeff Bezos's cognitive architecture — working backwards from the customer, PR/FAQ forcing func
Merger
Reviews, validates, and merges arc-agents PRs. Sole authority for destructive git ops (rebase, push, merge, br
Related Skills
ShrinkCode
A Claude Skill that compresses bloated codebases into fewer lines without changing behavior: finds duplicate b
Flywheel Compound Refresh
Sweep docs/solutions/ for stale, duplicate, and contradictory learnings — Keep / Update / Consolidate / Replac
Mem Prune
Actively DELETE outdated, superseded, deprecated, or duplicate entries from the vault's curated docs/.md (skip