AIToday
AI Coding AssistantsTop Companies' AI MovesTop Companies AIPublished: Dec 6, 2026, 06:31 JST

Uber's AutoClean clears 16,000 flags, one million lines

Send on LINE
Uber's AutoClean clears 16,000 flags, one million lines

3 Key Points

  1. What happened

    Uber says AutoClean has removed more than 16,000 feature flags and cleaned up over one million lines of code across its monorepositories, with totals accumulated over the past few years.

  2. Why it matters

    The system pairs AI-assisted decisions with deterministic transformations and multiple validation gates, so cleanup reaches code-owning teams only after passing checks and a human reviewer.

WHO IT HITSEngineering teams maintaining large codebases with many feature flags are the clearest audience: AutoClean's workflow shows how AI can handle broad cleanup while human owners retain the final removal call.

Ask AI

Ask the AI about this article. Questions and answers are published on this page

Context & Analysis

Uber's account describes AutoClean as a continuously running system that identifies feature flags it considers safe to remove from its feature-flag management system. A feature flag is a switch in code; once its value is settled, the surrounding code can often be simplified around that value. The engineering post illustrates this with an example where a boolean flag call is replaced with true, and that value is followed through a function call so an obsolete else branch can be removed.

The workflow separates AI from deterministic tooling. An AI agent makes broader decisions about propagating a flag's value through the code, while PolyglotPiranha handles Boolean-algebra and conditional simplification in a predictable, rule-based way. That division lets the system reason about where a value flows while relying on fixed transformations for simpler rewrites.

Validation adds several gates beyond continuous integration. When a proposed change fails CI, deterministic fixers run before agent-based fixers, and fixers have limited editing scopes. A passing CI run is followed by static checks and CodeCourt validation, which address problems tests may miss, such as removing a test that protects existing behavior or stopping after an incomplete simplification. CodeCourt checks properties including semantic preservation, avoiding drift from the intended change and preventing agent artifacts; if a check fails, the diff is abandoned. Changes that pass those gates go to the code-owning team, where a human reviewer decides whether the flag is ready to remove.

FAQ
How does AutoClean divide work between AI and deterministic tools?
An AI agent makes broader decisions about propagating a flag's value through the code, while PolyglotPiranha handles Boolean-algebra and conditional simplification in a predictable, rule-based way.
What happens if a proposed change fails CI?
Uber says deterministic fixers run before agent-based fixers, and fixers have limited editing scopes—for example, a test fixer can change test files but not production code.
Who makes the final call on removing a feature flag?
A human reviewer from the code-owning team decides whether the flag is ready to remove, after changes pass CI, static checks and CodeCourt validation.
Top Companies AIRead Original Article
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

By signing up you agree to the Terms of Service and Privacy Policy.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Related Articles

Next articleFujitsu's Fujitsu Kozuchi PHOTON lifts AI speed 10x