Feature flag
An on/off switch in your app that shows or hides a feature without redeploying, so you can release to some people first.
Flag off
- Code is live but hidden
- Everyone sees the old screen
Flag on for some
- You or a small group see it
- Everyone else sees the old screen
- Flip off if it breaks
Flag on for all
- Everyone sees the new screen
- Remove the flag afterward
What it is
A feature flag is a switch in your app that turns a feature on or off without changing or redeploying the code. The feature is already built and shipped, but it stays hidden until the flag says otherwise.
Use one when you want to release carefully: show a new screen only to yourself, then to a small share of users, then to everyone. If something goes wrong, you flip it off instead of rolling back the release. A flag used as an emergency off switch is often called a kill switch.
A feature flag is not a toggle. A toggle is a control your users flip, like dark mode. A flag is a control you flip, and users never see it. Flags also pile up, so ask your agent to remove each one once the feature is fully launched.
How to ask for it
“I want to build the new dashboard but not show it to everyone yet.”
“Put the new dashboard behind a feature flag called new_dashboard, off by default. Turn it on only for my admin account, and make sure turning it off brings back the old dashboard.”
"Not show it to everyone" could mean a hidden URL, a separate copy of the project, or deleted code, while "feature flag" names one switch that controls who sees the feature and the prompt sets its default and fallback.
You've seen this in
- YA new feature showing up in a friend's Instagram or ChatGPT account before it appears in yours
- GGmail offering a new look to some accounts first
- TA "beta" or "early access" label that only some workspaces in a tool can see