Parallel Claude Code, without the chaos

One repo. Many agents. Zero collisions.

clonecode spins up an isolated git clone of your repo and launches Claude Code inside it — so several agents can work in parallel without stepping on each other.

The problem

Two agents, one working tree.

Run two Claude Code sessions in the same checkout and they fight every edit — one stomps the other's changes, both lose context.

Worktrees help git, but agents read files independently, so the same path with different contents in different worktrees gets confusing fast. A full clone per task is heavier on disk but keeps every agent's view clean.

How it works

Three steps. One command.

  1. 01 / clone

    Fresh checkout

    git clone from the source repo's remote into <targetDir>/<repo>/<name>/. Submodules and LFS handled automatically.

  2. 02 / setup

    Per-repo hooks

    Copy .env and other allowlisted files from the source. Run a postClone command — bun install, migrations, anything.

  3. 03 / launch

    chdir + exec

    Replace the process with claude in the new clone. When the agent exits, you're back at your original shell, untouched.

Features

Built for the way you work.

Random or named clones

Run clonecode for a friendly two-word name (purple-elephant), or pass auth-refactor when the work has a name.

Branch-aware

-b feature/login: checkout existing remote branch, or create a fresh one off the default.

Per-repo config

Different target dirs, postClone commands, allowlists, and launchers for each repo.

Subcommands you actually use

list, rm (refuses to delete dirty clones), cd (reattach), config (interactive editor).

Safe by default

Failed clones clean themselves up. rm warns on uncommitted or unpushed work.

Bring any launcher

Default is claude. Override globally, per-repo, or per-invocation.

Install

Single binary, one command.

Prebuilt binaries for macOS (Apple Silicon & Intel) and Linux (x64 & arm64). Requires git; git-lfs optional and auto-detected.

$ curl -fsSL https://clonecode.io/install.sh | sh
→ resolving latest version
→ downloading clonecode-aarch64-apple-darwin.tar.gz
✓ checksum verified
✓ installed clonecode v0.1.0 to ~/.local/bin/clonecode
Pin a version, change the install dir, or build from source
# pin a version
$ CLONECODE_VERSION=v0.1.0 curl -fsSL https://clonecode.io/install.sh | sh

# custom install dir
$ CLONECODE_INSTALL_DIR=/usr/local/bin curl -fsSL https://clonecode.io/install.sh | sh

# build from source
$ git clone https://github.com/seansackowitz/clonecode.git
$ cd clonecode && cargo build --release
$ cp target/release/clonecode ~/.local/bin/

Then run clonecode --help from inside any git repo.