MicroDev vs git worktrees
Worktrees separate files. Not the machine.
Vendor facts were read on their own pages on 2026-11-12. MicroDev facts are today’s.
What worktrees do well
One checkout per agent, one agent per terminal. It costs nothing, nothing leaves your machine, and your local tools and secrets are right there. Claude Code has it built in:
“PassClaude Code docs, Worktrees, read 2026-11-12--worktreeor-wwith a name to create an isolated worktree and start Claude in it.”
What a worktree does not separate
A worktree is a second copy of your files. Everything else is still one machine.
“Worktrees separate working files; they do not sandbox processes or prevent merge conflicts.”Paradev (a worktree manager), README, read 2026-11-12
- The local database, Docker and ports are shared, so two agents running the same tests can collide.
- Memory and disk are shared: every agent’s build and dev server runs on your laptop.
-
An agent with full permissions is running on your real machine. Claude Code’s docs say what a worktree does not stop:
“None of them tracks which files a shell command writes, so a command that writes into the main checkout without running git there, such as
Claude Code docs, Worktrees, read 2026-11-12cpor a shell redirect, isn’t refused by them.” -
The lid. Claude Code’s background sessions wait for the machine:
“Sessions are also preserved when your machine sleeps. Their processes resume on wake and the supervisor reconnects to them instead of treating the time gap as idle.”
Claude Code docs, agent view, read 2026-11-12Nothing runs while it sleeps.
Where MicroDev differs
- Each agent has its own VM, so its database, ports and Docker are its own.
- The agents run in the cloud. They do not use your laptop’s memory, and they keep working with the lid closed.
- An agent with full permissions can break its own VM and nothing else. What it deletes there, it deletes in its VM, not on your machine.
- Your own coding agent starts the cloud agents. Each works on its own branch, and your agent reads its report and merges the branch into your checkout.
- It is paid: 5 agent-hours over 14 days to try with no card, then $0.10 per agent-hour of running time, billed by the second, with no monthly fee. Model usage stays on your Claude or ChatGPT plan, and more agents use its limits faster, as they do in worktrees.
When worktrees are the better choice
- Two or three agents at a time, on a laptop that stays open.
- A project with no shared local database or fixed ports for agents to collide on.
- You want nothing to leave your machine and nothing to pay. Worktrees cost nothing.
When MicroDev fits
You want more agents than your laptop runs comfortably, you want them to keep going while it is closed, or you want to give them full permissions without giving them your machine. And paying $0.10 per agent-hour after the trial is fine.
Try it
Paste this into your coding agent
Set up MicroDev so my parallel work runs in its subagents: run `curl -fsSL https://microdev.dev/install.sh | sh`, then run `~/.local/bin/microdev init` and do what it says until it reports ready. Paste this into Claude Code or Codex in a Git checkout of your project. The trial is 5 agent-hours over 14 days, with no card; then $0.10 per agent-hour.
Or start in the browser