Claude Code bug: subagent's kill(-1, SIGKILL) wiped every user process, sandboxing flaw exposed

mattgodbolt · ghdev · 2026-10-22

A high-severity Claude Code bug report (anthropics/claude-code #104156): a background subagent's Playwright benchmark script kept a finally cleanup calling process.kill(pid, "SIGKILL") after the PID was replaced with a placeholder -1, so kill(-1, SIGKILL) signaled every process owned by the user — tmux, all other Claude Code sessions, gnome-shell and Chrome. The agent killed itself too, so nothing was logged.

Key points:

A cautionary tale for anyone letting agents run shell commands: placeholder PIDs in cleanup code can become a kill switch.

Original post →

More from coding & agent

coding & agent channel →