Codex built hawk to remove dead code and has already deleted thousands of lines

charliermarsh · x · 2026-07-21

Codex built a dead-code remover that already deleted thousands of lines

Charlie Marsh says he had Codex build hawk, a tool for finding and removing dead code across a Cargo workspace.

He reports that the tool has already been used to delete thousands of lines from both uv and Codex itself, making this a concrete example of an AI coding agent being put to work on real repository cleanup.

Related event: Dev builds Rust dead code cleanup tool hawk with Codex(2 posts)→

Original post →

More from coding & agent

coding & agent channel →