How Uber's AutoClean agents safely delete stale feature-flag code

Uber says its AutoClean system has removed 16,000+ stale feature flags and over 1M lines of code using agents, deterministic tools and layered validation.

Uber has published how AutoClean, its system for removing stale feature flags, deletes production code with agents. Uber says that over the past few years it has cleaned up more than 16,000 flags and over 1,000,000 lines of code. The numbers are less useful to copy than the guardrails, which work at any scale.

According to Uber's post (October 31, 2026), the work happens in three stages:

A summary by @shao__meng puts the split simply: tools handle the deterministic steps, agents handle judgment calls, and humans make the business decision. For a smaller version, NimblePros applies the same rule, "Tools find. Agents investigate. Humans decide." It runs cleanup on a branch and gets the tests green first.

Still unclear: which model Uber uses, how often diffs get rejected, and whether any of AutoClean is open source.

Sources