Loading...
Stop manually hunting down stale flags. FlagShark generates clean, reviewable pull requests that remove flag debt safely.

A simple, safe workflow that keeps you in control.
FlagShark identifies stale flags across your codebase
You review flagged items and approve removals
One click creates a clean PR with all necessary changes
Review, test, and merge like any other PR
Six stages, one continuous pipeline. Inputs flow in, outputs branch off at the stage that produces them, and the engine keeps PRs in sync as your codebase moves.
Walk the default branch, parse every supported file with tree-sitter, build the flag inventory.
Pick candidates by age threshold and per-workspace policy. Skip permanent flags and anything with an open PR.
Cross-reference each candidate against your flag provider. Only archived flags survive to the next stage.
Polyglot Piranha rewrites the AST: removes the flag check, the dead branch, dead helpers, and stale imports.
Atomic multi-file commit via GitHub Git Trees API. Body explains the flag, the provider state, and the diff.
Watches the PR. On base-branch push, conflict, or manual click, re-runs the pipeline and force-pushes the new commit.
Powerful automation with safety guardrails at every step.
Generate pull requests that safely remove stale flags with proper code cleanup. Review and merge when ready.
Automated verification ensures flags are actually unused before removal. No accidental deletions.
Set up automatic cleanup policies. Remove flags that have been stale for X days automatically.
Select multiple flags and perform batch operations. Clean up entire categories at once.
Define what "stale" means for your team. 30 days? 90 days? You decide the rules.
Mark critical flags as permanent to exclude them from auto-removal and stale alerts.
Every cleanup PR includes proper code removal, updated imports, and a clear description of what's being cleaned up.
This PR removes the stale feature flag `ENABLE_NEW_CHECKOUT`.
Flag age: 127 days • Added in PR #234 • 3 files affected
Let FlagShark do the heavy lifting. You just review and merge.