claude-bulkhead
claude-bulkhead is a set of hooks for Claude Code and other coding agents, designed to prevent multiple sessions from interfering with each other when working in parallel on the same machine. It checks every Bash or PowerShell command and blocks operations that could harm other sessions, such as: running rm -rf when a variable is empty, using pkill to kill other development servers, seizing ports, committing other sessions' changes with git add -A, and so on. The tool supports Windows, macOS, and Linux, has zero dependencies, and requires no tmux, sudo, background daemon, or network calls. It also protects more than a dozen agents, including Codex, Gemini CLI, Copilot CLI, and Cursor. After installation, the hooks run before every command execution; if a command would harm other sessions, it is blocked and a safer alternative command is suggested. In addition, it provides features such as scanning history, diagnostics, real-time monitoring, worktree management, and remote execution of heavy tasks.