Stale feature flag removal via Agent
addedToday we're introducing the first of many Hyphen Agent capabilities: automated stale feature flag detection and removal.
Feature flags are powerful — but over time, unused and long-running flags accumulate, adding technical debt and increase release risk. Hyphen Agent analyzes flag activity and identifies flags with no recent usage or unchanged return values over a 90-day period. Once identified, the Agent marks them as stale.
If your apps' GitHub repository is connected, Hyphen Agent automatically generates a pull request to safely remove the flag from your codebase — keeping your system clean, maintainable, and production-ready.
This is the beginning of a broader vision: autonomous infrastructure and code hygiene that improves continuously in the background.
Things to know
- Only apps with connected Github repos will be analyzed for stale feature flags
- Feature flags that have been marked as perpetual are excluded from becoming stale
- The service is enabled by default — no configuration required
- All changes are delivered via pull request for review before merge
- When the agent issues a new pull request for stale feature flags, the previous pull request will be closed
- Stale feature flags highlighted in the Hyphen app, as well as the pull request opened by Hyphen Agent to remove those stale feature flags from a connected Github repository