Repository navigation
bulkhead: keeping agents in neighboring cmux panes out of each other's way #41843
dooly6276
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Disclosure: I maintain bulkhead, an MIT licensed plugin of PreToolUse hooks for Claude Code that also loads in Codex, Gemini CLI, Cursor and opencode.
With a dozen panes each running an agent, it is easy for two of them to end up in the same checkout, or for one pane's cleanup to reach into another. The cases I saw most were
git stashorgit checkoutin one pane moving the uncommitted edits another pane's agent was making,git add -Aputting the other agent's half-finished files into a commit, andpkill nodetaking down dev servers started in other panes.bulkhead checks each shell command before it runs. checkout-guard blocks stash, checkout, reset --hard, add -A and similar when another live agent session works in the same tree, and points to
git worktree add. kill-guard blocks kills by name that reach another session's processes, and port-guard blocks starting a server on a port another session holds. Since 0.3.5 kill-guard also blocks apkill -fpattern that matches a macOS desktop app, cmux included.https://github.com/dooly6276/claude-bulkhead
All reactions