Hacker
Faizaan Pochi
@faizaan
Projects
flagsmith-config-change: safe remote-config changes for AI coding agents
Flagsmith Experimentation HackathonNov 2026
flagsmith-config-change is an Agent Skill that lets a coding agent (Claude Code, Codex, Copilot, Cursor, Gemini CLI) safely change a Flagsmith remote-config value in production: limits, pricing JSON, or the AI model names and prompts that teams now store in flags. The problem: a flag value reaches every user instantly with no build, type check or test, and the Flagsmith CLI stores JSON as an unchecked string. One bad edit (an unlisted model name, a prompt that drops {context}, "50MB" for a number) silently breaks the app. Who uses it: any team that lets an AI agent touch Flagsmith, or wants guard rails on remote config. How it works: one small Python helper drives the Flagsmith CLI through six steps. It finds every place the repo reads the flag and builds a contract (keys read, allow-lists, placeholders); rejects values that break it and suggests a fix; plans with a diff, who is masked by their own value, and an approval code bound to the exact value and environment; writes one identity override as a canary, verifies it through the Admin API, flagsmith eval and an optional smoke test; then rolls out after a second human approval and leaves a record with a one-command rollback. Measured headless against the same agent without the skill: all 28 runs with the skill passed and none wrote to production before a human approved; without it, 5 of 6 runs did.