Blog
Notes on feature flags, A/B testing, and keeping experiments in the repo. Concrete, and mostly about files.
- Let an AI agent create a feature flag, and validate it Let an AI agent create a feature flag: it writes the Markdown file, gates the code, and runs dif validate on its own work, so a broken flag fails the PR.
- The best feature flag tools in 2026 The best feature flag tools in 2026, compared: dif, LaunchDarkly, Optimizely, Split, GrowthBook, Flagsmith, Unleash, and Statsig, with who each is for.
- What is context.json? The flag state your agent reads context.json is the file dif build emits so a coding agent reads your live feature-flag state on session start. What is inside it, and how the agent uses it.
- The open-source Optimizely alternative: experiments in your repo dif is the open-source, git-native Optimizely alternative: experiments and feature flags as Markdown files in your repo, reviewed in PRs, with a 5 kB SDK.
- The open-source Split alternative: flags in your repo dif is the open-source, git-native Split alternative (now Harness FME): feature flags and experiments as Markdown files in your repo, free CLI, 5 kB SDK.
- Why dashboards fail AI coding agents Why dashboards fail AI coding agents: an agent reads your repo, not a UI behind a login, so it cannot see flags in a dashboard and breaks the ones it cannot read.
- Feature flags for AI agents: flags your coding agent can read Feature flags for AI agents means flags a coding agent can read and write, because they are files in the repo. Why dashboards fail agents, and the fix.
- dif vs GrowthBook: flags in your repo, or in an app dif vs GrowthBook: both are open source. dif keeps flags and experiments in your repo as files; GrowthBook runs them in a warehouse-native app. How to choose.
- Feature flags in React: a practical guide Feature flags in React: install the SDK, wrap your app in a provider, and gate a component with the useDif hook. Deterministic assignment, no flicker, ~5 kB.
- A/B testing for developers: experiments in code A/B testing for developers means running experiments in code, not a dashboard: split traffic deterministically, measure one metric, and conclude with a decision.
- The open-source LaunchDarkly alternative: feature flags in your repo The open-source LaunchDarkly alternative: feature flags and A/B tests as Markdown files in your repo. MIT licensed, no per-seat fees, one command to install.
- Feature flags in git: the case for flags as code Feature flags in git means flags live as code in your repo, reviewed in a pull request and versioned like anything else. Here is how the workflow works and its tradeoff.
- What are feature flags? A developer's guide A feature flag is a runtime switch that turns a feature on or off without a deploy. Here is how feature flags work, the main types, and how to keep them from rotting.