Who it is forA developer who wants a lead agent to split a large job into parts and farm them out to helper agents.
The problemCoordinating several agents by hand, copying tasks and answers between them, is slow and error-prone.
The outcomeA lead agent spawns helper agents, assigns each a task, reads their output, and answers their questions.
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 start a lead agent session.
- Give the lead agent a prompt that describes the job and asks it to use the built-in MCP server to spawn helpers.
- Watch the sidebar as the helper agents start and report back.
- Read the helpers' output through the lead agent and approve the combined result.
Prompt for your agent
Using the diri repo at github.com/cristicretu/diri, have the lead agent spawn helper agents through the built-in MCP server to split <job-description> into subtasks. Output the list of helper agents, their tasks, and their results, and verify that each helper reported an output.
Caveat. The README says a swarm is one prompt away but does not document the MCP tool names, so the lead agent must be given the setup it needs.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for cristicretu/diri and "Have one agent spawn and coordinate other agents"
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