Flags as code
Also called: feature flags as code, flag configuration as code
Last updated:
Flags as code is the practice of keeping feature flag configuration in version-controlled files rather than only in a dashboard. What gets declared is structure: which flags exist, what variations they carry, which segments they target, and what their targeting rules say. A tool reads those files and makes the flag platform match, so a targeting change arrives as a diff with a reviewer and a permanent history behind it. The workflow around the practice is usually called GitOps for feature flags.
What gets declared, and what stays out
Drift is the hard edge
Want the full picture? Read the concept guide: Environments →
Related terms
Feature management
Feature management is the practice, and the category of tools, for running feature flags as a system: defining, targeting, rolling out, and retiring them from one place without redeploying.
Segment targeting
Segment targeting serves a flag variation to a named, reusable group of users defined by shared attributes — like "beta users" or "EU customers" — instead of listing individuals one by one.
Model Context Protocol (MCP)
The Model Context Protocol is an open standard for giving AI assistants callable tools, and an MCP server for feature flags lets an assistant like Claude Code or Cursor create, toggle, and clean up flags without leaving the editor.
Try it in your own app
Free Solo plan covers 10 flags and 2 environments. No credit card, no demo call — sign up and ship.