
InfoQ · 2 min readDevOps & CI/CD
Uber Autoclean Removes 1 Million Lines of Stale Code and 16,000 Feature Flags
Uber’s AutoClean system removes stale feature flags by combining AI agents with deterministic code transformations and CI validation. The process cleans over 16,000 flags and 1 million lines of code while ensuring safety through multiple automated checks before human review.
- AutoClean uses AI to propagate flag removal across callers and parameters.
- Deterministic PolyglotPiranha handles boolean simplification to avoid behavior changes.
- CI failures trigger fixers that repair tests or code before retrying the change.