AI-assisted game development crossed a line in 2026. Claude Fable 5 showed anyone can generate a playable 3D game from a prompt [take a look at what's going on on X], and over the year Unity wired agents into the professional pipeline: the Unity CLI, Unity AI, and free MCP integration. Epic is going further, with Unreal Engine 6 moving gameplay code to Verse and AI tools to convert existing projects. Using AI agents for game development became a reality.
With that came new challenges for game developers, and happily, Diversion already solves many of them.
One of these challenges is working in paralell, in the same machine. Either you and an agent, or multiple agents. You want each one to have an isolated version of the repository to be able to modify without interferring with the others.
The solution is worktrees: separate working copies of your repo, each on its own branch, so your agents can make changes without touching each other's work. And they don't bloat your disk. On a Mac or a Windows Dev Drive, a Diversion worktree shares files with your existing clone, so it doesn't download or store them again.
Here's an example. The Unity 3D Game Kit doesn't work out of the box with Unity 6, so I wanted to upgrade it, and at the same time run a static analysis of its scripts. I asked Claude Code to do the upgrade and Codex to do the analysis.
With worktrees, each agent works in isolation, on its own branch, and you merge when it's ready.
The setup
.webp)
The Diversion setup is one branch and one working copy per agent. The branch isolates history; the working copy is a real folder on disk, so two agents can type at the same time instead of taking turns.

# Claude works in your clone, on its own branch
dv branch -c claude/upgrade-unity-6-4# Codex gets a worktree on a new branch, next to your clone
dv worktree add -b codex/optimize-scripts
dv worktree add -b creates the branch and the folder in one step, in diversion-worktrees/<repo>/codex/optimize-scripts next to your clone.
You can also create one from the desktop app: make a new workspace on the same disk as your clone.
You don't even have to do this by hand. New Diversion repos include an AGENTS.md with a "Parallel agents" section that tells coding agents to create their own worktree and work only inside it. For Claude Code, make sure CLAUDE.md imports it with @AGENTS.md.
Point an agent at each folder and let them run. When they're done, merge each branch back and remove the worktree:
dv merge claude/upgrade-unity-6-4 --into main
dv merge codex/optimize-scripts --into maindv worktree remove <path>
dv worktree remove refuses to delete a worktree that still has uncommitted changes, so a finished agent's folder can't take work with it.
Why a worktree, and not a second copy

A big Unity or Unreal project can be tens of gigabytes. A second copy for each agent used to mean a second full download and the same space again on disk.
On a Mac (APFS) or a Windows Dev Drive, a Diversion worktree shares file content with your clone. Files the clone already has aren't downloaded again and take no extra space. A file only uses its own space once the agent changes it. New commits and branch switches download each file once per disk, not once per worktree. Keep the worktree on the same disk as your clone. On Linux, and on other Windows disks, each worktree still downloads every file for now.
Compared with git worktree:
git worktree | dv worktree | |
|---|---|---|
| Large files | Need Git LFS | Native |
| Uncommitted changes | Only on your disk | Backed up to the cloud as you save |
| New commits on the branch | Pull in each worktree | Arrive automatically in every worktree |
| Same branch in two worktrees | Refused unless forced | Allowed with --ref, and commits reach both |
| Files on disk | A full copy per worktree | Shared with the clone on a Mac or Dev Drive, until you change them |
| Remove | Deletes the directory | Also deletes the workspace |
More in Worktrees and our knowledge center piece, How do you work on two things at once in the same repository?.
Did it work?
Yes. Both agents finished their tasks on their own branches, and both branches merged into main with zero conflicts, including a shared file both agents had edited on different lines, which merged cleanly with both changes intact.
This repo isn't massive, but we've tested Diversion at scale for concurrent work, and creating branches, committing and updating stay fast at AAA scale too (see the benchmark).
Speed is only half of it. Letting agents get their own worktree on demand is what development with AI agents now expects.
Why Diversion fits this
Four things matter for a game repo full of multi-gigabyte assets:
- Large files are native. No LFS layer, no
.gitattributes, no track patterns. A 400 MB PSD or a folder of FBX is just a versioned file. On a real test, ~2.5 GB of assets synced with zero LFS configuration: it simply wasn't a step. - Branches are instant. Milliseconds regardless of repo size, so a branch per agent is free.
- Worktrees share files with your clone. On a Mac or a Windows Dev Drive, a second working copy for an agent takes almost no extra disk space and downloads almost nothing.
- Commits auto-sync.
dv commitadds and pushes in one step: no separate push to forget, so an agent's work is on the server the moment it commits.
The takeaway
Running a swarm of coding agents on a game project comes down to one thing: give each agent an isolated workspace without paying a setup tax to get there. Git worktrees get you there through LFS configuration and a full copy per agent. Diversion gets you there with a branch and a worktree. One worktree per agent, and let them run.

