Back to glossary

Feature Flag

A software mechanism that enables or disables features at runtime without deploying new code, used for gradual rollouts, A/B testing, and targeting specific user segments.

Feature flags decouple deployment from release. Code ships to production but features activate only for specified users — 1% for testing, 10% for beta, specific segments for targeting, or everyone for launch. This pattern reduces deployment risk and enables experimentation at any scale.

For AI-powered growth, feature flags are essential infrastructure. They enable A/B testing AI features against non-AI baselines, gradual rollout of new models (catch quality regressions before they affect all users), user-segment targeting for personalized experiences, and instant rollback when an AI feature misbehaves in production.

Modern feature flag platforms (LaunchDarkly, Statsig, GrowthBook) integrate with analytics and experimentation, making it trivial to measure the impact of every feature on business metrics. For AI products specifically, feature flags enable model-level routing: serve model A to segment X and model B to segment Y, measuring which performs better. This turns model selection from a one-time decision into a continuous optimization process.

Related Terms

Further Reading