Who it is forA developer splitting one codebase into several features or fixes that agents should work on at the same time.
The problemParallel agents editing the same checkout overwrite each other's files and make branches hard to untangle.
The outcomeEach task runs in its own worktree and branch, so you can review and merge each one independently.
What you need first
- macOS 15 or newer on Apple silicon or Intel, or x86_64 Ubuntu 22.04 or 24.04 for the Linux beta
- Terminal coding agent CLIs and accounts already installed on your machine, such as Claude Code, Codex, Cursor, or Gemini
- A Git repository to work in, since each agent can get its own Git worktree and branch
- For remote runs: an SSH host you control
Steps
- Install the app with
brew install --cask cristicretu/diri/diri. - Open Diri and create one agent session per task.
- Enable a separate Git worktree and branch for each session.
- Let the agents work, then check each session's branch for its own changes.
- Review and merge the branches one at a time.
Prompt for your agent
In the diri repo at github.com/cristicretu/diri, confirm that each agent session for <task-list> has its own Git worktree and branch. Output a table of session, worktree path, and branch name, and verify that no two sessions share a branch.
Caveat. The README says each agent can get a worktree but does not say how to enable it, so check the Diri docs for the setting before relying on it.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for cristicretu/diri and "Give each coding task its own Git worktree and branch"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer