Remove signs of AI-generated code from a codebase while preserving behavior.
Use when editing or reviewing code to make it read like a human engineer on
this team wrote it. Works through a test-guarded detect-modify-verify loop:
pin down the functional contract and edge cases first, write or run tests as
a safety net, then rewrite AI tells (redundant comments, emoji, verbose names,
reflexive try/except, defensive null-guards, over-decomposition, speculative
abstraction, dead code, non-idiomatic constructs, hallucinated dependencies)
and re-verify after every change. The tests decide whether a defensive block
is slop or a real safeguard.
2026-06-19