What is a feature flag?

Definition

Application code checks a flag at defined points and chooses the corresponding behavior. Flags can support staged releases, experiments and operational controls, with different values for particular users or environments.

A flag only controls paths that actually check it. Long-running tasks and child agents need appropriate decision points for changes to take effect; an off setting does not undo actions already completed.

ELI5

A feature flag acts like a switch the software checks before using a feature. Different groups can receive different settings.

For example, a team could enable a new assistant tool for a small trial group first. Turning the flag off stops future use only where the application checks that switch.

Does disabling a flag undo earlier work?

No. Completed changes or messages need their own recovery process when reversal is possible.

Is one flag enough to control an entire agent?

Different tools and actions may need distinct controls, and every relevant execution path must enforce them.

  1. Sachin Gupta is shown beside the blue-and-white headline CONTROL EVERY AGENT on a black background.
Definition card for feature flag: What is a feature flag?

A feature flag is a software-controlled setting that selects whether or how a feature operates. It can expose a change to selected users or disable a behavior while the deployed code remains in place.