Agent Farm v0.0.5 · open source · MIT
Install How it works Source

001 / Manifest

N agents. N worktrees. Zero conflicts.

An open-source orchestrator for Claude Code. Spawns N parallel agents in isolated git worktrees, surfaces structured events as they work, and keeps your main branch untouched until you choose to touch it.

Download for macOS $  npm i -g agent-farm
Session 2026.05.09 · 14:32:11Z 3 running · 0 done
# inside any clean git repo
$ agent-farm

  type & enter   spawn a new task
  ↑ / ↓          select session
  tab            tail / diff
  ctrl+c         quit

 fix the JWT expiry bug in src/auth
 add a stress test for the rate limiter
 migrate the user schema to zod v4

  02:14  fix-jwt-expiry-bug     Read src/auth/middleware.ts
  02:14  fix-jwt-expiry-bug     87 lines
  02:15  add-stress-test        Write test/limiter.stress.test.ts
  02:16  migrate-zod-v4         Glob src/**/*.ts
  02:16  migrate-zod-v4         12 files

$ git cherry-pick agent/fix-jwt-expiry-bug
$ git cherry-pick agent/add-stress-test
# the zod migration went off the rails. dropping it.
$ git worktree remove ../repo-migrate-zod-v4 --force

002 / Mechanism

A small piece of code, doing one thing well.

  1. 01

    Type, then enter.

    One prompt becomes one agent. Slugifies an id, branches off your current HEAD, spawns claude inside a sibling worktree at ../<repo>-<id>/.

  2. 02

    Three at a time.

    Default cap of three concurrent agents. The fourth waits for a slot. Adjust with --max. Each agent runs against its own filesystem, so worktrees never fight.

  3. 03

    Stream-json events.

    Spawned with --output-format stream-json --verbose. Tool calls, file reads, edits, bash runs and assistant text stream back as structured events. You read what the agent actually did.

  4. 04

    Cherry-pick the wins.

    Diffs render in the right pane. Take the commits you like, drop the ones that went sideways, keep the worktree around for inspection. Main branch stays untouched.

003 / Negation

What it does not do.

Five absences, listed plainly. Restraint is the feature.

004 / Install

Two surfaces. One engine.

The orchestrator is one piece of code. The CLI ships it for terminals; the Mac app ships it with a native UI. Pick the surface that fits the moment.

CLI · npm
$ npm i -g agent-farm
$ agent-farm

Node 18+. Works on macOS, Linux, WSL. Source on GitHub.

macOS · DMG

Download for macOS

Apple Silicon and Intel. Requires claude installed and authenticated.