Loading...
Feature Flag Lifecycle Management
FlagShark scans your repos with tree-sitter AST parsing, finds stale feature flags, and opens cleanup PRs. Deterministic. No regex. No AI.
Free for 3 repos · Installs in 30 seconds · Read-only access
Cost of flag debt per team
Average stale flag age
Found per repository scan
Feature flag debt compounds silently. Stale flags bloat your codebase, slow onboarding, and hide subtle bugs. Most teams have flags that are years old with no owner and no cleanup plan.
The fix
FlagShark parses your code into an AST, identifies dead flag references, and opens a pull request that removes them. Deterministic transforms — always produces valid code.
Remove stale flag: new_checkout_flow
Flag has been at 100% for 90+ days — safe to remove
flagshark-bot commented
Live scan
Each PR is reviewed and merged like any other. You stay in control.
How it works
FlagShark installs as a GitHub App with minimal permissions. It monitors your PRs, tracks flag lifecycle, and creates cleanup PRs for stale flags.
Install
Add the GitHub App
Scan
Tree-sitter parses your code
Detect
Stale flags identified
Clean
Cleanup PRs opened
providers:
- name: "LaunchDarkly"
package_path: "go-server-sdk/v7"
methods:
- name: "BoolVariation"
flag_key_index: 0
- name: "Custom Provider"
methods:
- name: "isEnabled"
flag_key_index: 0✓ Connected to github.com/acme/app
✓ Scanning 847 files across 11 languages
✓ Found 23 feature flags
✓ Flagged 8 stale (older than 90 days)
Flag: new_checkout_flow
Age: 847 days
Files: 3 references
PR: #142 ready for review
✓ 8 cleanup PRs created11 languages · 8+ flag providers · Custom implementations via YAML
FAQ
No. FlagShark creates cleanup PRs that your team reviews and merges like any other PR. Nothing is removed without your explicit approval.
Source code is analyzed in isolated environments and never stored. We only persist flag metadata. Access is read-only with minimal permissions, and scan results auto-delete after 30 days.
FlagShark uses tree-sitter to parse your code into an AST, then matches flag provider method calls from your config. Syntax-aware, not regex — no false positives from comments or strings.
11 languages: Go, TypeScript, JavaScript, Python, Rust, C#, Java, Kotlin, Ruby, PHP, Swift, and C++. Works with LaunchDarkly, Unleash, Split.io, PostHog, Flagsmith, ConfigCat, and custom providers via YAML.
Yes. Free for up to 3 repositories with full access — flag detection, health scores, and analytics. No credit card required. Paid plans from $99/month.
FlagShark installs as a GitHub App in 30 seconds. Your first cleanup PR is typically ready in under 3 minutes.
Free for 3 repos · Paid plans from $99/mo
See pricing →