Good point. I tell Claude in the claude.md to use a linter and formatter which helps it get rid of its own dead code while it develops.