Hacker
Minaal Naik
@torqued_codes
Elsewhere
Projects
FlagGuard — Zero-Redeploy Release Control & Safe Agent Skill
Flagsmith Experimentation HackathonNov 2026
FlagGuard (`flagsmith-safe-release`) is a deterministic Agent Skill and live Next.js release control plane built on the Flagsmith CLI, Flagsmith Cloud, and the React Client SDK. Problem it solves: When AI coding agents manage feature flags in production, two major failures occur: (1) naive CLI reads like `flagsmith flag list --json` dump 1,842+ tokens of raw metadata into the LLM context window—burning budget and hitting rate limits—and (2) autonomous agents mutating production flags without guardrails or rollback commands create severe outage risks. Who uses it & how it works: Software engineers and DevOps teams using coding agents (Claude Code, Gemini CLI, Cursor) drop `SKILL.md` into their repository. Every Flagsmith CLI read enforces `--json --jq` projection filtering, cutting LLM context overhead by 97.6% per read (1,842 tokens down to 44 tokens). Before any write mutation, the skill halts at a mandatory human-in-the-loop `[y/N]` Safety Gate displaying the target environment, blast radius, and exact rollback command. On the frontend, our Next.js control plane uses `flagsmith.hasFeature()` to reflect live flag toggles in real time—enabling zero-redeploy feature rollouts (`smart_checkout_v2`) and sub-60-second incident kill-switches (`legacy_promo_banner`).