Preview with the drafts
Clean up after an agent session, with behaviour checked
Anthropic's code-simplifier agent tidies the code a Claude Code session just wrote. A plain-code check then proves your tests, types and public API are unchanged and only the session's files moved.
Our run, 2026-10-03. Anthropic's code-simplifier agent cleaned up what an agent session wrote: 22% fewer code lines, top complexity 7 to 5. All 16 tests, the API check and our 1,447 hidden outputs came out the same.