台灣 AI x AEC 情報BY FBI SICENTER
AI × AEC · CURATED INSIGHT

Uber Details AutoClean Architecture: Pairing AI Agents with Deterministic Engines to Remove Legacy Feature Flags

AI coding · AI assistants

Uber disclosed its internal AutoClean architecture, combining AI agents with the deterministic PolyglotPiranha engine to safely remove obsolete feature flags and tech debt. The workflow enforces continuous integration with scoped fixers, static checks, and the multi-agent CodeCourt review mechanism before human sign-off. External analysis notes the reported cleanup metrics are self-reported and do not isolate agent contributions.

Uber Details AutoClean Architecture: Pairing AI Agents with Deterministic Engines to Remove Legacy Feature Flags
AI-generated concept illustration; not an event photograph.

Uber disclosed the architecture of AutoClean, an internal code cleanup system designed to detect and remove obsolete feature flags that remain in its codebase after full rollout. Uber stated that the system has eliminated over 16,000 feature flags and more than 1 million lines of code over the past several years. Instead of relying solely on an autonomous AI agent, AutoClean pairs contextual reasoning agents with Uber's deterministic AST transformation engine, PolyglotPiranha, accessed via the Model Context Protocol (MCP) to handle boolean and conditional simplifications. Once automated edits are staged, the diff is submitted to Uber's monorepo CI. If failures occur, low-cost deterministic fixers address lint errors and unused defaults first, while agentic fixers tackle ambiguous failures such as rewriting test cases. To prevent agents from altering business logic simply to force tests to pass, test-repairing fixers are strictly sandboxed from modifying production code. Before reaching engineers, changes must pass static checks for unsimplified dead code and clear CodeCourt, a validation layer where parallel review sub-agents independently verify single constraints: no added code, semantic equivalence, strict task scope, and removal of internal agent comments. Commenting on the release, agent case-tracking outlet ShippedByAgents noted that the cited 16,000 flags and 1 million lines cleaned are self-reported cumulative metrics spanning multiple years without external verification. Uber has not detailed the performance split between earlier rule-based tooling and the newer agentic workflow, nor disclosed model providers, execution costs, turnaround latency, diff acceptance rates, or human rejection statistics.

Key takeaways

  • Uber deployed AutoClean to clear feature flag tech debt, using AI agents for context mapping while delegating rewrites to PolyglotPiranha via MCP.
  • CI failures are handled by tiered fixers, with test-repair agents strictly restricted from touching production code files.
  • The CodeCourt framework utilizes parallel, dedicated sub-agents to independently enforce semantic preservation and scope constraints.
  • Third-party analysis notes that Uber's reported cleanup figures are self-published cumulative metrics lacking granular cost and acceptance rate disclosures.

Source:科技報橘 Read the original ↗

Prepared, checked and automatically published by AI; not individually reviewed by a human. Translation checked by AI.

← All articles