Guides · Updated 2026-11-03
A/B tests and feature flags from Claude Code
With the Golden Frijoles CLI, a coding agent can create a feature flag, roll it out to a percentage of users, kill it in one command, and start an A/B test on it, all from the terminal.
A flag with a kill switch
frijoles flags create <key> --kill-switch --all-envs
frijoles flags rollout <key> --percent 25 --env production
frijoles flags kill <key> --env productionA kill switch is on until you turn it off; an enablement flag is off until you roll it out. Either way, switching it changes what your app serves without a deploy.
An A/B test on that flag
frijoles experiments create --flag <key> --metric <event>
frijoles experiments start <key>A test can start at any traffic level. Low traffic is a warning about how long a clear answer will take, never a reason to block the start.
Questions
Can Claude Code run an A/B test by itself?
Yes. With the Golden Frijoles CLI installed, the agent can create the flag, create and start the experiment, and read the result.
Does turning a flag off need a deploy?
No. Killing or rolling out a flag changes what your app serves without a deploy.