guides
Guides
Plain answers to the questions teams ask about feature flags, and about feature flags when AI agents write and ship the code. Each guide starts with the answer, then the detail, with real commands from Flagger.gg's CLI, MCP tools and SDKs.
Guides
What is a feature flag?
Feature flag meaning: a switch in code that turns a feature on or off for everyone or chosen users, without a deploy. Examples, types and flag management.
Feature flags for AI coding agents
Why every change an AI coding agent ships should land behind a flag, and how agents create, roll out and kill flags with scoped tokens and an audit log.
Let Claude Code, Codex and Cursor ship behind flags
Set up Claude Code, Codex or Cursor to ship behind feature flags: a scoped agent token, Flagger.gg's MCP server, and instructions to create and kill flags.
An MCP server for feature flags, used safely
Flagger.gg's MCP server gives agents 11 feature-flag tools, hosted or on stdio. Tools follow token scope, writes need a note, there's no approve tool.
Kill switches: roll back a bad release in seconds
A kill switch is a feature flag you turn off at once, no deploy. Kill a bad release in seconds with Flagger.gg's CLI, MCP tool or console, then revert.
Percentage rollouts and sticky bucketing
How to roll a feature out to a percentage of users so each user keeps the same answer as you widen it: sticky hash bucketing, with Go and Node examples.
Trunk-based development with AI agents
With AI agents shipping many changes in parallel, feature flags replace long-lived branches: each agent merges small changes to main and ships them dark.
Feature flags vs a staging environment
Staging tests a copy of production; flags test the real thing with a few real users first. When teams skip staging and ship to production behind a flag.
Testing both sides of a flag
Test code behind a feature flag with the flag on and off. Flagger.gg's Go and Node SDKs include bothFlagStates, withFlag and setFlagOverride helpers.
Flag cleanup and flag debt
Flag debt is old flags left in code after a feature is fully on. How to find stale feature flags, remove them safely, and archive them in Flagger.gg.
A feature flag CLI for AI agents
The flagger CLI lets AI agents create, roll out and kill feature flags from a shell: --json on every command, stable exit codes, a note on each write.
An audit trail for agent flag changes
See which AI agent changed a feature flag, in which run and why. Flagger.gg records the actor, run, note, before and after, client and IP on every change.
Local evaluation: why flag checks shouldn't call the network
Why flag checks shouldn't call the network: Flagger.gg's Go and Node SDKs evaluate in memory from a streamed ruleset, with a disk cache for outages.
Moving off an in-house flag table: import, shadow, cut over
Move from a homegrown feature flag table to a flag service in four steps: import flags with history, shadow both systems, cut over, then clean up.
Self-serve feature flags for startups
What a startup needs from a self-serve feature flag service: sign-up without a sales call, local evaluation, a kill switch, an audit log, agent access.
Give an AI agent scoped access to production flags
Give an AI agent least-privilege access to production feature flags: a token per agent, scoped to one project, chosen environments and actions.
Human approval for AI agent flag changes
Require a person to approve wide production flag changes made by AI agents, while small rollouts, targeting and kills still apply at once.
Typed feature flags: keep agent code behind declared flags
Make AI-generated code ship only behind declared, typed feature flags: one registry in code, a typed check, a lint rule and tests of both states.
What is a feature flag service?
A feature flag service stores your flags, sends rules to SDKs that evaluate them in your app, and records every change. How it works, and build vs buy.
Feature flag best practices
Feature flag best practices: one flag per change, a safe off path, local evaluation, staged rollouts, tests of both states, an audit log and cleanup.
Comparisons
How Flagger.gg compares with other flag tools, fairly, with links to each vendor's own docs. All comparisons
LaunchDarkly vs Flagger.gg
LaunchDarkly vs Flagger.gg, and the best LaunchDarkly alternatives for startups by need: self-hosting, analytics, experiments, SDKs or AI agents.
Datadog feature flags vs Flagger.gg
Datadog Feature Flags tie flags to Datadog's telemetry, canaries and experiments. Flagger.gg is a standalone flag service with agent access over MCP.
Unleash, Flagsmith and PostHog alternatives
Unleash, Flagsmith and GrowthBook are open source and self-hostable; PostHog bundles flags with analytics. How they compare with Flagger.gg.
GrowthBook, Statsig and ConfigCat alternatives
GrowthBook, Statsig and ConfigCat compared with Flagger.gg from each vendor's docs: hosting, local evaluation, experiments, SDKs, MCP servers and CLIs.
Cloudflare Flagship vs Flagger.gg
Cloudflare Flagship evaluates flags in Workers and, since November 2026, locally in its SDKs. Flagger.gg streams rules to Go and Node and gives agents MCP.
The best feature flag tools in 2026
The best feature flag tools in 2026 by need: LaunchDarkly, Unleash, Flagsmith, GrowthBook, PostHog, Statsig, ConfigCat, Datadog, Flagship and Flagger.gg.