P2

Product at stage 2, Build. One of 8 moves on this square. See the square

Moves Stage 2: Build

Ship behind a feature flag

Release new features to a small group behind a switch, so you can test with real users and turn them off without redeploying.

Effort
Time
2 to 8 hours
Cost
Free
Result in
Weeks
Needs skillNeeds timeEases time

What AI changes

Assistants can wire a simple flag check through several places quickly, which used to be tedious. They can also draft the cleanup step so that old flags do not linger in the code.

Where it helps less

Assistants often scatter flag checks inconsistently or leave flags in place permanently, making the code harder to read. They cannot decide who should see a feature or when it is time to remove the flag.

Risks

Flags multiply, and each combination needs testing, so the codebase grows harder to reason about. A feature that writes to storage behind a flag can still cause data problems if it is switched off mid-use.

Steps

  1. Choose one new feature that is risky or uncertain to release.
  2. Add a single flag with a clear name and a default of off.
  3. Guard the new path in one place rather than across the code.
  4. Enable the flag for yourself first and test the full path.
  5. Enable it for a small named group, then widen it step by step.
  6. Set a date to remove the flag and its old code path.

Tools people use for this

Seen in these cases

Next moves to read