Loading...
FlagShark does one thing: scan your repo, then propose the cleanup PR. Everything below is built on that single move, the capabilities that make cleanup automatic at team and org scale.
Tree-sitter parses TypeScript, JavaScript, Go, Python, and Java into a real syntax tree; the other eight languages use precise regex patterns. Either way we match flag SDK calls by structure, not blind text search. Works with LaunchDarkly, Statsig, Split, ConfigCat, Flagsmith, Unleash, PostHog, and custom flag patterns (including OpenFeature) via YAML.
Click a finding, FlagShark opens a separate PR that removes the dead else-branches, deletes the SDK call sites, removes orphan helper functions, updates affected tests. Your CI runs. You review in 30 seconds. We never auto-merge.
Health scores 0-100 per repo. Age distribution charts. Weekly trends. See at a glance which repos are actively retiring flags versus accumulating them.
Multi-workspace management. Role-based access control. Activity timeline that survives team turnover. Complete audit trail for compliance reviews. Slack alerts for stale flags, plus a weekly email digest.
A live activity timeline across your org — findings and cleanup PRs, refreshed as you work.
Mark critical flags (kill switches, region toggles) to permanently exclude from cleanup proposals.
Power-user shortcuts with ⌘K. Navigate, search, act without leaving the keyboard.
JSON export of your flag inventory and activity. Useful for compliance reviews and incident retros.
Event-sourced history showing every state change for every flag. Survives team turnover.
Per-team staleness rules. 30-day default; tighten or loosen per repo via .flagshark.yaml.
Native PR-based workflow. Automatic detection on every PR opened. Cleanup PRs ship from the GitHub App. No webhook config, no API tokens, no setup.
Sync with your LD environment. Detect flags archived in LD but still in code. Cleanup PRs auto-open. Reduces your LaunchDarkly bill by removing unused evaluations.
8 lines of YAML in .github/workflows/ gets you all of it. Free for 3 repos, forever.
No credit card · 30s install · works with any flag SDK