untangle-codebase
Untangle Codebase
When to Use
Use for an explicitly requested codebase-wide structural refactor. For a single defect, use systematic debugging; for a bounded cleanup, prefer code-refactoring-refactor-clean.
Safety and scope
Work only within the user-authorized repository and scope. Preserve unrelated work and establish baseline behavior with existing checks. Refactoring writes files; never publish, deploy, push, or delete user data without authorization. Optional comment/test removal requires the selection requested below. Do not remove tests merely to make failures disappear. Use subagents only when available and authorized; otherwise perform the review passes yourself. Do not upload private source to external services without permission.
Workflow
Start a thorough refactor of this codebase and complete it to the end.
Treat this as a goal.
Why do this at all?