Show HN: Replay your Claude Code logs to count parallel session collisions githu...
Show HN @show
Show HN: Replay your Claude Code logs to count parallel session collisions github.com · 2 points · 0 comments · HN thread
TL;DR A GitHub project called claude-bulkhead (version 0.2.0) provides a set of Claude Code hooks that stop several parallel Claude Code sessions on one machine from killing each other's processes, taking ports, exhausting RAM, or colliding in a shared git tree. It also adds a 'bulkhead scan' command that replays past session transcripts to count how often those collisions would have been blocked. The Show HN post has 2 points and no comments.
- Eight guards run as Claude Code PreToolUse/SessionEnd hooks: kill-guard, port-guard, memory-guard with bulkhead-slot, checkout-guard, wait-guard, orphan-reaper, disk-guard and basics.
- kill-guard blocks kills by program name (e.g. pkill node, taskkill /IM node.exe) while allowing kills by PID; port-guard blocks starting a dev server on a port another session owns.
- memory-guard blocks heavy commands when free RAM is under 3 GB (or 15% on small machines); bulkhead-slot queues heavy jobs against a shared RAM budget.
- bulkhead scan replays Claude Code transcripts in ~/.claude/projects against the guards and reports what they would have blocked, masking secrets and sending nothing externally.
- bulkhead remote can run tests or builds on another machine over SSH, copying the commit and uncommitted changes and cleaning up remote processes when the connection drops.
- Requires Node 18 or later; the author states there is no telemetry or network calls, and the guards fail open on internal errors. Limits include no CPU/disk/GPU limits and no detection of commands hidden in scripts or aliases.
Discussion No comments have been posted yet, so there is no discussion to summarize. The submission has 2 points and has not yet drawn any responses.