keeping Claude Code context in worktrees

last updated: Jan 12, 2026

I made more progress on mdriver (neé mdstream), enough that I'm now using it in my dotfiles to parse output from Simon's llm tool.

One thing I figured out was that I should work with worktrees just like I do in other repositories, to help keep features separate. To support this, I added .claude to the list of untracked files I copy to new worktrees in my worktree script.

Adding them was git config --global --add worktree.untrackedfiles ".claude"

I looked briefly into having my worktree script tell claude that the newly-created worktree was trusted, so that you didn't have to say so every time you start claude in a new worktree, but unfortunately it doesn't seem like there's a reasonable way to do so.

Version 0.8.0 of mdriver has added:

↑ up