You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One candidate for the basic set: a staged rollout with a kill switch, built entirely on the CLI.
ship-safely takes a change from "behind a flag" to either "on for everyone, flag archived" or "off for everyone, with an incident note":
start 5% creates the feature (off), a feature-specific percentage-split segment and a segment override; widen 25 → 50 → 100
each stage has a gate: it waits until flagsmith evaluate --identity actually serves the new share (edge propagation takes a few seconds), then runs the user's health command
a failed gate disables the override and the environment default, and writes an incident note with the resume command
finish turns the default on and deletes the rollout segment; archive refuses while git grep still finds the flag
every mutation refuses without --approved, so the agent has to ask a human for each production step
Every command prints one JSON line. Measured on Flagsmith Cloud with Claude Code (Opus 5.5), same rollout with and without the skill: 9 vs 19 turns, 1,638 vs 5,127 output tokens, and the run without the skill left the default off and the segment at 100%.
Building it turned up one CLI bug, fixed in #122: segment create --rules couldn't create a percentage-split segment.
It takes an agent from "A/B test the free-shipping bar" to a running Flagsmith experiment. It reads the code to choose the exposure point and identity, reuses the app's existing analytics events as metrics (plus a value metric and a guardrail), and instruments the app. Then it rehearses the real app against a non-production environment and refuses a production launch without a passing rehearsal receipt for that exact plan and code. After launch it probes production with flagsmith eval to confirm the live split.
Verified on Flagsmith Cloud (including one interactive Claude Code run: 776k tokens, $0.28, plan approved by a human, rehearsal passed, launched at 10% and live-verified, then rolled back) and local self-hosted (e2e: 24 checks in CI). 12 headless runs, 3 per arm per scenario, same model and prompt: with the skill 9/9 on every run, 0.53M / 0.59M total tokens; without it 7/9 and 6/9, 2.76M / 1.99M tokens. The no-skill agent missed the value metric (6/6 runs), keyed variants (6/6) and sometimes the guardrail. It did not miss the persisted-visitor-id bug, so the benefit is experiment quality and efficiency, not that catch. Small n, our own grader, one model; caveats and the benchmark mistakes we found are in the README.
CLI findings while building it: feature create --variants drops variant keys (#126); there are no experiment/metric commands (everything goes through flagsmith api); flagsmith eval is a handy transient production probe (the reason field shows experiment enrolment); a never-started experiment can't be completed through the API, only deleted.
Happy to adapt it to whatever shape flagsmith skills takes.
Activity
linear-code commentedon Nov 17, 2026
ENG-642
0xvikram commentedon Nov 27, 2026
One candidate for the basic set: a staged rollout with a kill switch, built entirely on the CLI.
ship-safely takes a change from "behind a flag" to either "on for everyone, flag archived" or "off for everyone, with an incident note":
start 5%creates the feature (off), a feature-specific percentage-split segment and a segment override;widen25 → 50 → 100flagsmith evaluate --identityactually serves the new share (edge propagation takes a few seconds), then runs the user's health commandfinishturns the default on and deletes the rollout segment;archiverefuses whilegit grepstill finds the flag--approved, so the agent has to ask a human for each production stepEvery command prints one JSON line. Measured on Flagsmith Cloud with Claude Code (Opus 5.5), same rollout with and without the skill: 9 vs 19 turns, 1,638 vs 5,127 output tokens, and the run without the skill left the default off and the segment at 100%.
Building it turned up one CLI bug, fixed in #122:
segment create --rulescouldn't create a percentage-split segment.Demo (2:36): https://youtu.be/yktG5Ck0wxo
Akshats-git commentedon Nov 29, 2026
Toggle Wars entry for the experimentation-skill slot: flagsmith-experiment-designer (https://github.com/Akshats-git/flagsmith-experiment-designer).
It takes an agent from "A/B test the free-shipping bar" to a running Flagsmith experiment. It reads the code to choose the exposure point and identity, reuses the app's existing analytics events as metrics (plus a value metric and a guardrail), and instruments the app. Then it rehearses the real app against a non-production environment and refuses a production launch without a passing rehearsal receipt for that exact plan and code. After launch it probes production with
flagsmith evalto confirm the live split.Verified on Flagsmith Cloud (including one interactive Claude Code run: 776k tokens, $0.28, plan approved by a human, rehearsal passed, launched at 10% and live-verified, then rolled back) and local self-hosted (e2e: 24 checks in CI). 12 headless runs, 3 per arm per scenario, same model and prompt: with the skill 9/9 on every run, 0.53M / 0.59M total tokens; without it 7/9 and 6/9, 2.76M / 1.99M tokens. The no-skill agent missed the value metric (6/6 runs), keyed variants (6/6) and sometimes the guardrail. It did not miss the persisted-visitor-id bug, so the benefit is experiment quality and efficiency, not that catch. Small n, our own grader, one model; caveats and the benchmark mistakes we found are in the README.
CLI findings while building it:
feature create --variantsdrops variant keys (#126); there are no experiment/metric commands (everything goes throughflagsmith api);flagsmith evalis a handy transient production probe (thereasonfield shows experiment enrolment); a never-started experiment can't be completed through the API, only deleted.Happy to adapt it to whatever shape
flagsmith skillstakes.Demo video (2:27): https://youtu.be/OozUSu-6OaE