Skip to main content

Orchestrator for running parallel Claude Code agents on multiple tasks

Project description

claude-code-orchestrator

Orchestrator for running parallel Claude Code agents on multiple tasks. Each task runs in its own git worktree with a dedicated agent instance.

Features

  • Parallel Task Execution: Run multiple Claude Code agents simultaneously on different tasks
  • Git Worktree Isolation: Each task runs in its own worktree to prevent conflicts
  • Auto-detect Git Provider: Automatically detects Bitbucket or GitHub from remote URL
  • MCP Integration: Uses Bitbucket MCP for Bitbucket repos, gh CLI for GitHub
  • Extensible MCP Registry: Configure additional MCPs (Atlassian, Linear, Postgres, Chrome, etc.)
  • Project Discovery: Automatically analyzes project structure and conventions
  • Task Generation: Generate task configurations from todo.md files

Installation

# With pip
pip install claude-code-orchestrator

# With uv
uv add claude-code-orchestrator

# With pipx (for CLI usage)
pipx install claude-code-orchestrator

Prerequisites

For GitHub Repositories

# Install GitHub CLI
brew install gh  # macOS
# or: sudo apt install gh  # Ubuntu

# Authenticate
gh auth login

For Bitbucket Repositories

# Install Bitbucket MCP
pipx install mcp-server-bitbucket

# Configure MCP
claude mcp add bitbucket -s user \
  -e BITBUCKET_WORKSPACE=your-workspace \
  -e BITBUCKET_EMAIL=your-email \
  -e BITBUCKET_API_TOKEN=your-token \
  -- mcp-server-bitbucket

Quick Start

# Check prerequisites
claude-orchestrator doctor

# Initialize project configuration
claude-orchestrator init

# Generate tasks from a todo file
claude-orchestrator generate --from-todo todo.md

# Run all tasks
claude-orchestrator run

# Or combine generation and execution
claude-orchestrator run --from-todo todo.md --execute

Configuration

Create .claude-orchestrator.yaml in your project root:

# Git settings (auto-detected if not specified)
git:
  provider: auto  # "bitbucket" / "github" / auto-detect
  base_branch: main
  destination_branch: main
  repo_slug: my-repo  # Required for Bitbucket

worktree_dir: ../worktrees

# MCPs to enable for agents
mcps:
  enabled:
    - atlassian    # For Jira ticket updates
    - linear       # For issue tracking
    - postgres     # For database access
    - chrome       # For browser automation

# Project context (auto-discovered if not specified)
project:
  key_files:
    - src/main.py
    - tests/
  test_command: pytest tests/

CLI Commands

doctor

Check all prerequisites and configuration:

claude-orchestrator doctor

Output:

✓ Git provider: GitHub (github.com detected)
✓ gh CLI: installed and authenticated
✓ MCP atlassian: configured
✗ MCP linear: not configured
  Run: pipx install mcp-server-linear && claude mcp add linear...

init

Initialize project configuration:

claude-orchestrator init

This will:

  1. Detect git provider
  2. Analyze project structure
  3. Create .claude-orchestrator.yaml

generate

Generate task configuration from a todo file:

claude-orchestrator generate --from-todo todo.md

run

Execute tasks:

# Run all tasks
claude-orchestrator run

# Run specific tasks
claude-orchestrator run --tasks task1,task2

# Auto-approve all agent actions
claude-orchestrator run --auto-approve

# Full pipeline
claude-orchestrator run --from-todo todo.md --execute

Optional MCPs

MCP Auth Type Use Case
atlassian OAuth Jira/Confluence integration
linear OAuth Issue tracking
postgres Env vars Database access
chrome Pre-configured Browser automation

Setting up OAuth MCPs

# Install the MCP
pipx install mcp-server-atlassian

# Add to Claude (first run will open browser for OAuth)
claude mcp add atlassian -s user -- mcp-server-atlassian

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

claude_code_orchestrator-0.1.0.tar.gz (19.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

claude_code_orchestrator-0.1.0-py3-none-any.whl (24.7 kB view details)

Uploaded Python 3

File details

Details for the file claude_code_orchestrator-0.1.0.tar.gz.

File metadata

  • Download URL: claude_code_orchestrator-0.1.0.tar.gz
  • Upload date:
  • Size: 19.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for claude_code_orchestrator-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9d30a1e12df4856ea2da707bb7aa7888d11799a9394f67efa56e2532d6b312f1
MD5 22ed7605b75406363a1fc5c31a2096e5
BLAKE2b-256 7876e3d10cc55c5952331b03bf16531ca6ba9f21245bed26eb15b18ee4c085ab

See more details on using hashes here.

Provenance

The following attestation bundles were made for claude_code_orchestrator-0.1.0.tar.gz:

Publisher: publish.yml on JaviMaligno/claude-code-orchestrator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file claude_code_orchestrator-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for claude_code_orchestrator-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 25dc51fb603f858664537307d086f3f60d8176d1b292a177aec3e697b206cf6a
MD5 9ac99dbef4ed354b3ee3d8ca956bf957
BLAKE2b-256 298d66d00d3e899254939ffced46a540407a971bce7af3f87e01503af662aee6

See more details on using hashes here.

Provenance

The following attestation bundles were made for claude_code_orchestrator-0.1.0-py3-none-any.whl:

Publisher: publish.yml on JaviMaligno/claude-code-orchestrator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page