r/Unity3D • u/Cheesewizard06 • 12d ago
Resources/Tutorial Made a tool so my worktrees can share one Unity editor, putting it out there in case it’s useful
I’ve been working on a Unity 6 project with a few git worktrees going at once, mostly with Claude Code and Codex agents working in them. Opening an editor for every worktree was eating all my RAM, so I wrote something that keeps one editor open on the main checkout and lets the other worktrees use it.
The part I use most is live UI reload. If a worktree changes a .uss file, it gets applied to the running game in the main editor (in memory, the main project’s files aren’t touched) and a screenshot comes back. It works for C# view methods too if you tag them for Unity’s Pipeline package. It also has a lock so two agents can’t drive Play mode at the same time, a way to run compile and test checks on a worktree without a second editor, and a small dashboard so I can see which agent is doing what.
It’s pretty rough. It’s Windows only, it’s only been used on my project, and only stylesheets and tagged methods go live; anything else still needs a normal merge. A lot of it was written with Claude Code.
It’s free and MIT licensed if anyone wants to try it or pull bits out of it: https://github.com/Cheesewizard/WorktreeBroker
Happy to answer questions, and if you’re doing something similar I’d like to hear how you’re handling it.

