Sandbox
@johannesjo/parallel-code

Parallel agent worktree manager for Claude Code and Codex

Parallel Code is a desktop workspace for running multiple coding agents in parallel. For each task, it creates a git branch and worktree, starts the agent there, and lets you review diffs and merge the result when you are ready.

1,005 stars131 forksTypeScriptUpdated 7d ago
Meet Parallel Code my new favorite coding tool for working with AI
Super Productivity1.3k views • 6 months ago
Who it's for

Builders who want Claude Code, Codex, Gemini CLI, or Copilot running side by side on separate worktrees.

What it delivers

You can let several agents work at once while keeping each change isolated and reviewable.

What it does

Parallel task dispatch

Starts a separate agent session for each task instead of making you wait for one run to finish before starting the next.

Git worktree isolation

Creates a new branch and worktree for every task so changes stay separate from your main branch.

Diff review and merge

Shows the changed files and diffs in the app, then merges the chosen task back to main from the sidebar.

Focus mode and tiled layout

Lets you switch between a multi-task overview and a single-task focus view.

Task notes and canvas

Gives each task its own notes area and live Markdown canvas that can be sent back to the agent.

Shell terminals per task

Opens terminals scoped to the current worktree so you can inspect or run commands in the same context.

Project Docker sandbox

Supports a project-specific `.parallel-code/Dockerfile` so tasks can run inside a controlled environment.

Progress and CI tracking

Tracks task steps, shows status in the UI, and watches GitHub checks for the current branch.

How to get it

  1. 1The bundled image still ships the agy binary, and ~/.gemini/antigravity-cli…
    git clone https://github.com/johannesjo/parallel-code.git
    cd parallel-code
    npm install
    npm run dev

README

Parallel Code

Ten agents.
Ten branches.
One afternoon.

Dispatch AI coding agents in parallel, each in its own worktree.
Review the diffs, merge the wins, toss the rest.

Works with Claude Code, Codex, and Gemini · Every change isolated in its own git worktree · Free, open source, no extra platform fee

Electron SolidJS TypeScript macOS | Linux License

Watch intro on YouTube

Parallel Code demo

Screenshots

Multiple agents in parallelFocused view on a single task
OverviewFocus view
Diff review with inline commentsAI Arena — race agents head-to-head
Diff reviewAI Arena

Why Parallel Code?

  • Use the AI coding tools you already trustClaude Code, Codex CLI, Gemini CLI, and Copilot CLI — all from one interface.
  • Free and open source — no extra subscription required. MIT licensed.
  • Keep every change isolated and reviewable — each task gets its own git branch and worktree automatically.
  • Run agents in parallel, not in sequence — five agents on five features at the same time, zero conflicts.
  • See every session in one place — switch context without losing momentum.
  • Control everything keyboard-first — every action has a shortcut, mouse optional.
  • Monitor progress from your phone — scan a QR code, watch agents work over Wi-Fi or Tailscale.
  • Ask about code with any LLM — the inline code Q&A feature supports Claude Code (default) or MiniMax M2.7 (204K context) — configurable in Settings.
How does it compare?
ApproachWhat's missing
Multiple terminal windows / tmuxNo GUI, no automatic git isolation — you manage worktrees, branches, and merges by hand
VS Code extensions (Kilo Code, Roo Code, etc.)Tied to VS Code; no true parallel worktree isolation between agents
Running agents sequentiallyOne task at a time — blocks your workflow while each agent finishes

How it works

When you create a task, Parallel Code:

  1. Creates a new git branch from your main branch
  2. Sets up a git worktree so the agent works in a separate directory
  3. Symlinks node_modules and other gitignored directories into the worktree
  4. Spawns the AI agent in that worktree

When you're happy with the result, merge the branch back to main from the sidebar.

More features
  • Tiled panel layout with drag-to-reorder
  • Focus mode — single-task layout with a clean two-column view on wide screens (Ctrl+Shift+F)
  • Built-in diff viewer with inline review comments and per-commit navigation
  • Steps tracking panel — engineering-manager-style timeline of agent progress (writes to .claude/steps.json)
  • Notes panel per task — jot ideas, then send the notes straight to the agent as a prompt
  • Canvas per task — a Markdown file from the worktree rendered live as the agent writes it; edit it in place, or select a passage and send it to the agent with your question
  • PR CI status watcher — desktop notification when GitHub checks settle
  • Shell terminals per task, scoped to the worktree
  • Direct mode for working on the main branch without isolation, plus support for folders without a git repo
  • Existing worktree import — bring already-created worktrees into Parallel Code
  • Sandboxing with project-specific Dockerfiles — drop a .parallel-code/Dockerfile into the project and tasks run inside it
  • Coverage radar — per-file test-coverage badges in the Changed Files panel
  • Configurable keyboard shortcuts with per-agent presets
  • 10 themes — Islands Dark, Minimal, Graphite, Midnight, Classic, Indigo, Ember, Glacier, Zenburnesque, Workbench
  • State persists across restarts
  • macOS and Linux

Demo

Watch the demo

▶ Watch the showcase (MP4)

Getting Started

  1. Download the latest release for your platform from the releases page:

    • macOS.dmg (universal)
    • Linux.AppImage or .deb
  2. Install at least one AI coding CLI: Claude Code, Codex CLI, Gemini CLI, Antigravity CLI, or Copilot CLI

  3. Open Parallel Code, point it at a git repo, and start dispatching tasks.

Antigravity CLI: run natively, not in Docker isolation

Antigravity (agy) signs in interactively and caches credentials in your OS keyring (Keychain/libsecret). The keyring cannot be reached from inside a Linux container — it needs a secret-service daemon the agent container doesn't run — and agy has no API-key fallback, so Docker-isolated Antigravity tasks cannot authenticate. Run Antigravity as a native (non-Docker) task.

The bundled image still ships the agy binary, and ~/.gemini/antigravity-cli (settings/plugins) is shared when "Share agent auth" is enabled, so Docker support is forward-compatible if a file-based or API-key auth path appears later.

Build from source
git clone https://github.com/johannesjo/parallel-code.git
cd parallel-code
npm install
npm run dev

Requires Node.js v18+.

Keyboard Shortcuts

Ctrl = Cmd on macOS.

ShortcutAction
Tasks
Ctrl+NNew task
Ctrl+Shift+ANew task (alternative)
Ctrl+EnterSend prompt
Ctrl+Shift+MMerge task to main
Ctrl+Shift+PPush to remote
Ctrl+WClose focused terminal session
Ctrl+Shift+WClose active task
Navigation
Alt+ArrowsFocus pane/task in arrow direction
Alt+Shift+Left/RightMove task (macOS: Ctrl+Shift)
Ctrl+BToggle sidebar
Ctrl+Shift+FToggle focus mode
Terminals
Ctrl+Shift+TNew shell terminal
Ctrl+Shift+DNew standalone terminal
App
Ctrl+,Open settings
Ctrl+/ or F1Show all shortcuts
Ctrl+0Reset zoom
Ctrl+ScrollAdjust zoom
EscapeClose dialog

If Parallel Code saves you time, consider giving it a star on GitHub. It helps others find the project.

License

MIT

Files in the repo

Repository payload31 top-level entries
  • .github
  • .husky
  • .semgrep
  • .vscode
  • build
  • docker
  • docs
  • electron
  • screens
  • scripts
  • src
  • .dependency-cruiser.cjs
  • .gitignore
  • .gitleaks.toml
  • .npmrc
  • .prettierignore
  • .prettierrc
  • CLAUDE.md
  • eslint.config.js
  • index.html
  • install.sh
  • knip.config.ts
  • LICENSE
  • package-lock.json
  • package.json
  • PRIVACY.md
  • README.md
  • tsconfig.json
  • vitest.client.config.ts
  • vitest.config.ts
  • vitest.setup.ts

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More tools

JuliusBrussee/
caveman

🪨 why use many token when few token do trick — Claude Code skill that cuts 65% of tokens by talking like caveman

105k
1 add
MemPalace/
mempalace

The best-benchmarked open-source AI memory system. And it's free.

59k
stablyai/
orca

Orca is the ADE for working with a fleet of parallel agents. Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

66k

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

132k

Never stop coding. Free MIT AI gateway: one endpoint, 352 providers (150+ free), 1200+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 550+ contributors

64k
headroomlabs-ai/
headroom

Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.

71k