whereismyai
Claude Bulkhead
Claude Bulkhead: Hooks that stop parallel Claude Code sessions on one machine from killing each other's servers or RAM.
Claude-bulkhead is a set of hooks for Claude Code that lets multiple sessions and subagents run on the same computer without interfering with each other. It checks shell commands against active processes, ports, RAM, and git trees, blocking actions that would harm other sessions and suggesting safer alternatives. It is designed for developers who run two or more Claude Code sessions at once, often in separate git worktrees. Features include guards against process kills, port clashes, low memory freezes, conflicting git checkouts, and runaway background tasks. It also features an orphan reaper to clean up leftover dev servers, a disk guard, and diagnostic commands like status, top, and scan.
Claude Bulkhead at a glance
Key features
- Kill-guard blocks risky process termination commands
- Port-guard prevents port conflicts and stolen servers
- Memory-guard blocks heavy commands when RAM is low
- Checkout-guard prevents git and file conflicts between sessions
- Orphan-reaper stops leftover dev servers when sessions exit
- Wait-guard stops long foreground loops
- Disk-guard blocks heavy parallel disk scans
- Status line displays active sessions, RAM, and ports
Use it for
- Running multiple Claude Code sessions in separate git worktrees
- Preventing parallel test runs and builds from freezing the machine
- Stopping sessions from killing each other's dev servers
- Cleaning up leftover background processes when a session exits
Companions
Tools that articles about Claude Bulkhead recommend using with it, each with its job.
- Claude Code — Built to work with Claude Code.
- Context7 — Provides up-to-date documentation for AI agents and code editors.
- Playwright MCP — Enables LLMs to interact with web pages using structured accessibility snapshots.
- GitHub MCP Server — Reads pull requests, issues and code search on GitHub.
- Superpowers — Brainstorm, plan and execute skills for bigger tasks.
- gstack — Skill bundle for planning, review and shipping.
Alternatives to Claude Bulkhead
- Claudette — Runs Claude Code workflows using Mistral AI models instead of Claude.
- Claude Code Mistake Guards — Stops repeated agent mistakes mechanically with tests that prove they block.
- Gumroad — Prevents lost work on Windows by backing up chat history and diagnosing Claude Code crashes.
- Agent Usage Guard — Stops runaway usage windows and excessive subagent fan-out.
- CCS — Run multiple accounts simultaneously and avoid session limits with zero configuration.
- Claude Code Usage Monitor — Tracks token usage, message counts, and session costs with local history and alerts.
- Hatswap — Manage multiple Claude Code accounts and switch conversations instantly.
- Skillkeel Starter — Blocks destructive shell commands and prevents hard-coded secrets from being written.
- Claude Scrub — Removes exposed API keys, passwords, and tokens from local AI session history.
- Claude Work Mode — Add slash commands and optional gates to control Claude Code behavior.
- Claude Code Session Tracker — Monitor Claude Code usage limits and token history in a single local interface.
- Ralph for Claude Code — Enables continuous coding cycles with built-in API safeguards and rate limiting.
All Claude Bulkhead alternatives