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.

