Design a kill switch for a production agent fleet
You run 200 customer-support agents in production, each capable of issuing refunds. A red-team report shows a viable injection chain. You have one hour to deploy a kill switch that suspends refund authority without taking the agents offline. Sketch the design.
A real kill switch is a per-tool config flag checked in the orchestrator at dispatch time, not a code deploy; flip, propagate in seconds, keep agents online.
Picture a busy kitchen where every cook can use any tool. One day someone notices the can opener has a sharp edge that is hurting people. You do not shut down the whole kitchen. You do not redesign the can opener overnight. You put a little sign on the can opener that says do not use, and you tell every cook to look at the sign before grabbing the tool. The cooks keep cooking the rest of the meal. When a customer orders something that needs a can, the kitchen sends a polite note saying that dish needs a manager to approve. That sign is the kill switch. The cooks stay working, only one tool is paused, and pulling the sign down restores normal service in seconds.
Detailed answer & concept explanation~5 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
6 min: anatomy of a real kill switch + the three properties + orchestrator dispatch enforcement + graceful tool-result shape + audit logging + quarterly game-day.
Real products, models, and research that use this idea.
- LaunchDarkly and Statsig are the two flag platforms most LLM-product teams use for per-tool kill switches in 2026.
- Anthropic's Claude tool-use docs recommend gating each declared tool through an orchestrator-side allowlist that can be flipped at runtime.
- OpenAI Agent Builder and the Responses API let you mark tools as disabled at the project level without redeploying the agent.
- Sierra and Decagon, both customer-support agent vendors, document per-tool capability flags as their primary incident-response mechanism.
What an interviewer would ask next. Try answering before peeking at the approach.
QHow would you keep the kill switch itself from being a single point of failure?
QWho is authorised to flip the switch, and how do you prevent accidental flips?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Designing the kill switch as a code redeploy or a system-prompt edit. Both are too slow and too coarse; the right surface is per-tool config the dispatcher reads at runtime.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.