Hacker
Kartikey Kashyap
@kartikey.kashyap
Projects
driftsmith: find and safely fix drift between Flagsmith environments
Flagsmith Experimentation HackathonNov 2026
For teams that run Flagsmith with more than one environment. Staging and production drift apart: a value edited by hand, a segment override added in one place, overrides reordered. Flagsmith's Compare page shows the difference but can't apply it, and import/export only works on a whole environment. People have asked for this since 2021 (Flagsmith/flagsmith#542). driftsmith is a CLI and a GitHub Action. - "driftsmith diff staging production" compares on/off state, values, multivariate weights and segment overrides, including their order. Intended differences (like an API URL) can be ignored in a config file. - "plan -i" shows one checkbox per feature and aspect (the list a Flagsmith maintainer suggested on #542) and writes a plan file a teammate can review. - "apply" refuses if production changed after the plan was made, if the environment requires change-request approvals, or if Flagsmith is serving a cached copy that doesn't match its live data. Otherwise it asks you to type the environment name, takes a backup, writes only the approved changes, then reads production back and reports VERIFIED only if it matches. Rollback goes through the same reviewed path. In our demo, fixing the drift by hand in the dashboard took 27 clicks, a drag and 6 typed values. With driftsmith it is "plan -i", then "apply".
DriftSmith@dhruvsharma,@arnav_24