Hacker
Muhammed Nihal P N
@nihalpn
Projects
flag pilot
Flagsmith Experimentation HackathonNov 2026
I built Flag Pilot, an AI safety layer that bridges the gap between AI coding agents (like Cline) and production feature flags. The Problem: AI agents are great at writing code, but giving them direct write access to production feature flags is dangerous. A hallucinated API call could accidentally disable a critical checkout flow. The Solution: Flag Pilot enforces a strict "Human-in-the-Loop" architecture. The agent acts purely as a proposer. When asked to migrate environment variables to Flagsmith, the agent scans the code, rewrites it using the @flagsmith/nodejs SDK, and generates a proposal. Crucially, the agent is forced to generate a Pre-Mortem Report—arguing against its own change by identifying missing tests, rollback gaps, and missing owners. The agent holds zero write credentials. A human must review the pre-mortem and manually run a local Node.js script (npm run approve) with their secret API key to execute the change. Developers get the speed of AI-assisted flag management, while privileged operators retain 100% control over what goes live.