Skip to main content

A TDD-Driven, Parallelized AI Coding Orchestrator

Project description

Shard

A TDD-driven, parallelized AI coding orchestrator that breaks down complex tasks and executes them concurrently using git worktrees.

Installation

Homebrew (macOS)

brew tap nihalgunu/shard
brew install shard

pip

pip install shard-ai

From source

git clone https://github.com/nihalgunu/Shard.git
cd Shard
pip install -e ".[dev]"

Quick Start

# Run a full pipeline
shard run -p "Add user authentication with JWT tokens"

# Preview the execution plan without running
shard plan -p "Refactor database layer to async"

# Check status
shard status

# Resume an interrupted run
shard resume <run-id>

How It Works

Shard takes a natural language prompt and:

  1. Plans - Generates a DAG of sub-tasks with file ownership boundaries
  2. Partitions - Provisions isolated git worktrees for parallel execution
  3. Dispatches - Runs AI agents concurrently on each task
  4. Aggregates - Merges all branches and resolves conflicts
  5. Self-heals - Runs tests and automatically fixes failures

Configuration

Create shard.toml in your repository:

[agent]
backend = "claude-code"  # or "aider", "cursor-cli"
max_concurrent = 4

[cost]
max_usd = 10.0

[retries]
max_per_task = 3
max_global = 5

Commands

Command Description
shard run Execute a full pipeline
shard plan Preview execution DAG
shard resume Resume interrupted run
shard status Show current status
shard logs View agent output
shard abort Stop all agents
shard clean Remove artifacts
shard config Show configuration

Requirements

  • Python 3.11+
  • Git 2.20+
  • AI coding agent (Claude Code, Aider, or Cursor CLI)

License

Apache 2.0

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

shard_code-1.0.0rc1.tar.gz (36.2 kB view details)

Uploaded Source

Built Distribution

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

shard_code-1.0.0rc1-py3-none-any.whl (36.3 kB view details)

Uploaded Python 3

File details

Details for the file shard_code-1.0.0rc1.tar.gz.

File metadata

  • Download URL: shard_code-1.0.0rc1.tar.gz
  • Upload date:
  • Size: 36.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.12

File hashes

Hashes for shard_code-1.0.0rc1.tar.gz
Algorithm Hash digest
SHA256 a70194034e4be399674e8359eacfa9df77da0141688c9657992a651542233879
MD5 4be00f26bc8b3fcd8c306282b120c482
BLAKE2b-256 e23ddd90c9f45b05411cafda35d0e142595fc94946c2d82580fa8ef2823f3b16

See more details on using hashes here.

File details

Details for the file shard_code-1.0.0rc1-py3-none-any.whl.

File metadata

  • Download URL: shard_code-1.0.0rc1-py3-none-any.whl
  • Upload date:
  • Size: 36.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.12

File hashes

Hashes for shard_code-1.0.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 a498f5b6b325c3086c04747f7dcc2f4289eeaa69a33540975f03dff64c0ecf29
MD5 9766f21768ffe72b19e97cb110bf97c5
BLAKE2b-256 6d55a6e8e773cbdb53c6d9ad627d2c32affbbe2a3f44e5dae591a9e06b617b54

See more details on using hashes here.

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