Automating Feature Flag Cleanup at Scale with Multi-Agent LLM Systems: An Industrial Experience at DoorDash
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.
Create a lesson
Metadata
- Categories
- cs.SE, cs.AI, cs.MA
- Comments
- 6 pages, 2 figures. Accepted at the 2026 IEEE International Conference on Software Maintenance and Evolution (ICSME), Industry Track
Related papers
When Single Agent Is Enough: Rethinking Multi-Agent Systems for Automated Code Review
Shared title terminologycs.SEJiawei Li, Hoa Khanh Dam, Iftekhar Ahmed
Mind the Gap: A Deployed Multi-Agent System for Documentation Maintenance
Shared title terminologycs.SELorenzo Masoero
OpenDraco: A Platform for Engineering and Experimenting with Configurable Multi-Agent Architectures for Software Engineering
Shared title terminologycs.SEXiang Feng Ye Pan, Vincenzo De Martino, Matias Martinez
DeepAVR: Deep Analysis via Multi-Agent Collaboration for Automated Vulnerability Repair
Shared title terminologycs.SEWoorim Han, Hyunjun Kim, Brian Junekyu Lee et al.
RegoMender: A Multi-agent Framework for Automated Rego Policy Repair
Shared title terminologycs.SERuijie Zhang, Huaxiao Yin, Li Hu et al.
Selecting and Composing Agent Design Patterns: Industrial Case Evidence and Controlled Reference-System Experiments
Shared title terminologycs.SEJia Huang, Bingsheng Ru, Bo Liang et al.