Reports 1,659 stale feature flags across 623 DoorDash repositories and quantifies the operational risk and maintenance cost of ungoverned flag proliferation.
DoorDash manages over 60,000 feature flags (Dynamic Values) across 623 repositories, with 1,659 identified as stale as of May 2026. The company addresses this technical debt using a multi-agent LLM system that automates cleanup from Jira ticket analysis to merge-ready pull requests.
The system utilizes Claude Sonnet for orchestration and Claude Opus for parallel code removal agents operating in isolated Git worktrees. It integrates live rollout data via Model Context Protocol (MCP) and requires engineer confirmation of target values before execution.
Operational Impact and Costs: Efficiency: The system reduces cleanup time from an estimated 1–2 hours manually to an average of 13.8 minutes per flag. Cost: Each automated cleanup costs approximately $4.79 in API usage. Success Rate: In an evaluation of 50 stale flags, the system produced usable pull requests for 45 (90%), with zero bugs or regressions introduced. Risk Mitigation: Automation prevents operational risks associated with dormant code paths, such as the inadvertent reactivation of features that can cause significant financial or system errors.
Scope and empirical baseline. The material presents an industrial study from DoorDash on using multi-agent LLM systems to automate the discovery and cleanup of stale feature flags at repository scale. It documents a substantial governance gap: 1,659 stale flags across 623 repositories, indicating that flag retirement does not naturally follow feature release. The work frames flag cleanup as an agentic software-engineering problem in which multiple LLM agents can divide labor—such as locating flag usages, reconstructing intent from code and metadata, estimating blast radius, and proposing removal or remediation paths. By reporting both the volume of stale flags and the operational risk and maintenance cost associated with ungoverned proliferation, the study provides empirical evidence that flags become a persistent liability when lifecycle ownership is unclear.
Key insight and contribution. The central insight is that feature flags are not merely runtime toggles; they are durable code-level abstractions that encode product, deployment, and risk decisions. As codebases grow, flags can remain referenced in conditional branches, configuration, dashboards, and release logic long after their original purpose has lapsed, increasing cognitive load, test complexity, and the risk of accidental regressions. A multi-agent LLM approach matters because it can scale the contextual analysis required to determine whether a flag is dead, partially dead, or still load-bearing—something that is difficult for static rules alone. The DoorDash case suggests that agentic tooling can convert flag hygiene from a manual, high-friction chore into a repeatable industrial process, with measurable benefits for maintainability, deployment safety, and engineering throughput.
Why it matters. More broadly, the study is relevant to software engineering practice and LLM-agent evaluation because it addresses a concrete, high-frequency maintenance task in a large production environment. It also highlights the need for governance metrics—such as stale flag counts, ownership, removal lead time, and risk exposure—as part of platform engineering. For teams that rely heavily on feature flags, the paper underscores that automation must account for organizational context, not just syntactic dead code, and that LLM agents are most useful when paired with repository-specific evidence, validation workflows, and human review gates.