Hacker
Kunal Narang
@kunal118
Elsewhere
Projects
Flagsmith for agents
Flagsmith Experimentation HackathonNov 2026
A feature-flag layer for AI agents: Flagsmith for agents. Problem: an agent's model, prompt, tools and availability are fixed at deploy time. Every change needs a redeploy and hits all users at once. Solution: these become Flagsmith flags, so you change them instantly, per user, with no deploy. A/B testing: split users between models or prompts and measure tokens and feedback per variant. Kill switch: stop a misbehaving agent in seconds. For: teams running agents in production. Engineers ship safely, product teams run experiments and on-call stops incidents. Setup: add one middleware and tag tools with @flagged. Each run: evaluates flags for the user, then picks the model and prompt, shows only the allowed tools and checks the kill switch. Targeting: segments by plan, region or percentage rollout, plus overrides for single users. A/B tests: each user always sees the same variant, and every run reports its variant and outcome to Flagsmith. Today: works with LangChain. The pattern fits any agent framework.