DNA News

Act on this, mostly signal

Isolate parallel Claude Code sessions with worktrees and a write hook

What to do

Run one git worktree and tmux session per issue, and add a PreToolUse hook that limits writes to owned file globs.

Why

A Reddit practitioner reports this setup lets one session merge green PRs, but the account is anecdotal.

Read the source at reddit.com

What the research found

A Reddit practitioner describes isolating parallel Claude Code sessions with one git worktree and tmux session per issue, a PreToolUse hook restricting writes to owned globs, and a single session that merges green PRs.

Claims and how well the evidence supports them

  1. Author runs one git worktree per issue with its own branch and tmux session 99%
  2. A PreToolUse hook denies Edit and Write outside a per-session list of globs 99%
  3. Workers open a PR and never merge; one session merges only when PR is green and mergeable 99%
  4. Files generated by build steps bypass the PreToolUse hook 98%

Evidence

Actionability rated medium.