Feature Flag Rollout
Gradual rollout workflow using feature flags
CLAUDE.md
When rolling out a feature with feature flags:
- Deploy the feature behind a flag, disabled by default.
- Enable the flag for internal users or a test group first. Verify it works end-to-end.
- Roll out to 5% of users. Monitor error rates, performance, and user feedback for 24 hours.
- If metrics are stable, increase to 25%, then 50%, then 100% — pausing at each stage to monitor.
- If issues appear at any stage, disable the flag immediately. The old code path handles all traffic.
- Once at 100% with no issues for a full release cycle, remove the feature flag and the old code path.
Copy this workflow into your CLAUDE.md or agent config file so your agent follows this process automatically.