Ideas from AI Engineer talks Curated by Alex Vidal (@dobleio) and Borja Pérez (@borjaperfra) 76 ideas · 101 talks · 5 events

The Engineering Brief

Sachin Gupta warns that a kill switch can miss the sub-agents an agent spawns

Sachin Gupta argues agents should ship behind feature flags, starting with a kill switch. The biggest failure he says he sees is a sub-agent spawned outside the flag layer, which keeps calling models and tools after the switch is flipped.

Sachin GuptaAIE World's Fair 20263 min read
Watch from 9:39

Recording by AI Engineer.

The idea

The speaker’s argument, in our words.

Gupta's test for a kill switch is that requests already in flight obey it at their next decision point. In his design a flag middleware sits between the user and the agent loop: it resolves flags, gates tools, routes models, applies the autonomy level and honours the kill switch. The gap he points to is what the agent spawns. A parent agent can pass through the middleware correctly and then start a child that calls the model and tools directly, so the switch never reaches it. He says most systems do not enforce that children inherit the parent's flags, calls this the biggest failure mode he sees, and asks for the middleware to be wired into every spawned agent, not only the entry point.

The sub-agent case sits inside a broader proposal: six flag types for what an agent adds to an ordinary app (prompt variant, tool access, model routing, memory policy, autonomy level and kill switch) on existing flag services, adopted in order, kill switches first. He lists other ways a switch looks installed but does not fire: flags resolved once at session start, caching at the LLM gateway that keeps serving old responses after a flip, and a switch that is never drilled and breaks silently in a config migration. His demo of stopping a runaway loop in about thirty seconds is an illustrative simulation, not a production incident.

What they found

From the talk. Figures are self-reported unless stated.
  • Put a flag middleware between the user and the agent loop, and route sub-agents through it; the biggest failure he sees is a child agent that calls models and tools directly and bypasses it so the kill switch never reaches it.

    He says he has seen this failure; teams and numbers are not given.

    Technical recommendation

    12:48
  • Adopt in order: agent-wide and per-tool kill switches, a flag check before every tool call, autonomy defaulting to suggest, then prompt variants.

    Suggested thresholds follow (rollback under five minutes for a kill switch, block promotion if a canary's error rate rises more than 2%), which he says teams should tune.

    Technical recommendation

    13:35
  • Failure modes he has seen: flags resolved per session not per turn, sub-agents bypassing middleware, stale segment context, gateway caching that defeats the flip, and kill switches firing without an alert.

    Speaker's observation across 'multiple teams', not documented.

    Technical recommendation

    15:22

Why it matters

Our reading. Not said in the talk.

The sub-agent failure is one case of a pattern that recurs across talks: a control placed at one layer misses whatever the agent spawns. Ryan Dahl (Deno) says MCP tool permissions stop applying once an agent starts psql itself, and Lydia Hallie (Anthropic) says a deny rule sees the test command but not the files the test opens, which is why Claude Code also uses an OS sandbox that covers child processes. Gupta's list is useful to anyone who has added a stop button and never drilled it.

What one could try

  • Route every spawned sub-agent through the same flag layer as its parent, then test the stop mechanism on a running multi-step task and confirm every child stops at its next step.
  • Check flags per turn or per tool call, not only at session start, and make sure gateway caching does not bypass them.
  • Alert on every kill-switch activation and drill it on a schedule.

Limitations

  • Recommendations without data from a system the speaker runs; the 30-second demo is an illustrative simulation.
  • The incidents he cites (Replit, a LangChain loop costing $47,000, Cursor's support bot, PocketOS) are second-hand and not verified here.

Original sources

This is our synthesis of the talk, checked against the transcript at the linked moments.

Related ideas