DoorDash用多智能体LLM系统自动化清理功能开关:50个陈旧flag中45个生成获批PR
Automating Feature Flag Cleanup at Scale with Multi-Agent LLM Systems: An Industrial Experience at DoorDash
DoorDash构建端到端LLM自动化功能开关清理系统,集成MCP实时查询flag上线数据、Jira工单处理与PR创建,在50个陈旧flag上为45个(90%)生成工程师批准的移除PR。DoorDash共有超56,000个功能开关分布于623个仓库,截至2026年5月有1,659个陈旧,人工清理每个估计需1至2小时。该系统单次清理平均成本4.79美元、耗时13.8分钟。
arXiv:2610.31351v1 Announce Type: cross Abstract: Feature flags are runtime configuration mechanisms used for gradual feature rollouts, experimentation, and kill switches. Once a feature is fully rolled out, the flag and its gated code become technical debt and can introduce operational risk through inadvertently enabling dormant code paths. At DoorDash, over 56,000 feature flags span 623 repositories, with 1,659 currently stale as of May 2026, with internal estimates of one to two hours per manual cleanup. Existing rule-based cleanup tools proved insufficient in DoorDash's codebases. Our contribution is an end-to-end automated LLM-based feature flag cleanup system that integrates querying live feature flag rollout data using MCP, Jira ticket processing, and end-to-end pull request creation. Our system successfully produced engineer-approved flag removal PRs for 45 (90%) of the 50 stale flags it was evaluated on, proving the system's operational viability at scale with each cleanup averaging only $4.79 and 13.8 minutes. We evaluated the system's quality and reliability boundary based on success rates, cost per cleanup and time metrics. Furthermore, we discuss our lessons learned when architecting this system, to provide practical guidance for developing similar multi-agent systems.
来源:arXiv (AI + Vision + Imaging) · arxiv.org