# Uber 用 AI 自动清理技术债，已删逾 16000 个过期 feature flag

Source: https://www.zaihua.news/article/44588/

[返回新闻流](https://www.zaihua.news/)
2026年10月21日 · 14:45 · [在花新闻](https://www.zaihua.news/about/)

# Uber 用 AI 自动清理技术债，已删逾 16000 个过期 feature flag

Uber 发布博客，介绍其 AI 系统 AutoClean 如何自动清理生产代码中过期的 feature flag（功能开关）等遗留技术债。过去几年该系统已清理超过 16000 个 flag 和 100 多万行代码。

AutoClean 在 Uber 的多个 monorepo 中持续运行，流程分三步：先用 AI agent 结合确定性代码变换工具 PolyglotPiranha 重写代码，再修复 CI 失败并反复验证，最后经静态检查和多 agent 校验系统 CodeCourt 审核后才交由人类工程师最终评审。这样评审者只需判断是否该移除某个 flag，不必检查机械性的正确性问题。

[Uber](https://www.uber.com/us/en/blog/ai-code-cleanup/)

🌸 [科技圈](http://t.me/zaihuanews)· [茶馆](https://t.me/zaihuachat) · [投稿](http://t.me/ZaiHuabot)

https://cdn.zaihua.news/main/44588/mtproto-0-c59eea696953c47e.jpg

[上一条SpaceX 下月将首次尝试完整回收星舰与助推器](https://www.zaihua.news/article/44587/)[下一条微软将 OneDrive 同步上限提升至 100 万个项目，并优化文件路径与快捷方式管理](https://www.zaihua.news/article/44589/)
