AI Janitor
The AI Janitor is FeatureSignals' intelligent stale flag detection and cleanup engine. It automatically identifies feature flags that are no longer needed, scans your source code for references, and generates pull requests to remove them — keeping your codebase clean and reducing technical debt.
How It Works
Scan
The Janitor analyzes your feature flags and identifies stale candidates based on configurable criteria (evaluation inactivity, always-on/always-off behavior).
Analyze
It connects to your Git repositories and scans source code for references to each stale flag.
Generate PR
For flags safe to remove, it creates a pull request that removes the flag's conditional blocks while preserving the active code path.
Review
Your team reviews the generated PR just like any other code change.
Supported Git Providers
- GitHub (cloud and GitHub Enterprise Server)
- GitLab (cloud and self-hosted)
- Bitbucket (cloud and Bitbucket Data Center)
- Azure DevOps (cloud and Azure DevOps Server)
Getting Started
- Navigate to AI Janitor in the sidebar
- Connect your Git repository via the connection wizard
- Click Scan to analyze your flags
- Review the stale flags report
- Click Generate PR for flags you want to remove
Human-in-the-loop design
AI suggests, human approves. The AI Janitor never makes autonomous production changes. Every PR requires your team's review and approval before merging.