Documentation
Flagdeck can track where each flag is used in your code, so you always know whether a flag is still wired up, and when it is safe to delete.
This is the other half of release safety. A flag makes a risky change easy to ship and easy to turn off, but flags also pile up. A flag with no runtime traffic and no references left in your code is dead weight, and Flagdeck can tell you that with confidence.
Scanning runs where your code lives, in CI or on your own machine, and sends only metadata: the file path, line number, and commit SHA for each match, plus the flag keys it found. Your source code never leaves the machine. Only files tracked by git are scanned, so your .gitignore is respected.
main). References on a short-lived feature branch do not keep a flag alive.A flag is marked safe to remove when all of these are true:
You control the traffic window and the staleness thresholds per project from Project settings, under Flag lifecycle.
There are three ways to report references, and you can mix them:
flagdeck scan locally or in any CI. See the CLI guide.report_code_references tool on the MCP server.Open any flag and find the Code references card. It shows where the flag is used, a per-branch breakdown, and, when the flag qualifies, a Safe to remove badge. The project Overview groups the flags that need attention, including the ones that are safe to retire.