DEVOPS

Reconcile Statsig flags against code and flag orphans in Slack

Compares your Statsig feature-gate registry against actual flag references in your GitHub code.

CategoryDevOps
Enginesim
Difficultyadvanced
Triggerschedule
Steps5
Setup~25 min

How it runs

The automated pipeline, trigger to output.

  • TriggerScheduled reconciliation run
  • ActionFetch all feature gates from Statsig APIHTTP webhook
  • ActionCollect flag references from GitHub reposGitHubGitHub
  • LogicDiff into orphaned gates and dead code refs
  • OutputPost categorized drift report to SlackSlack

What it does

Keeps Statsig and your codebase honest with each other. It pulls the full list of feature gates from the Statsig API and the full list of flag references from your repos, then computes two drift sets: gates with zero code references (orphans, safe to archive) and code references pointing at gates that no longer exist (dead checks).

When to use it

When nobody trusts the Statsig dashboard anymore because half the gates haven't been touched in a year. Run it before a cleanup sprint to get a precise, evidence-backed list instead of guessing.

How it works

  1. 1A scheduled run kicks off the reconciliation.
  2. 2An HTTP call fetches all feature gates and their last-checked timestamps from the Statsig console API.
  3. 3A GitHub search collects every flag key referenced across your repos.
  4. 4A logic step diffs the two sets into orphaned gates and dead code references.
  5. 5It posts a categorized report to Slack with archive candidates, dead checks, and last-evaluated dates so a human can approve removals.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect HTTP webhookTrigger any URL on agent actions.
  2. 2
    Connect GitHubRepos, issues, pull requests, actions.
  3. 3
    Connect SlackChannels, DMs, threads, mentions.
  4. 4
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  5. 5
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  6. 6
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.