Skip to main content

Python orchestration for coding agents in local, container, and cloud sandboxes.

Project description

SwarmBox

PyPI version Python versions License: MIT Package status

SwarmBox is a Python port and expansion of Sandcastle-style coding-agent orchestration. It runs coding agents in git worktrees, Docker/Podman containers, optional cloud sandboxes, or directly on the host for interactive sessions.

The project is designed for Sandcastle feature parity first:

  • run, interactive, create_sandbox, and create_worktree
  • branch strategies: head, merge-to-head, and branch
  • prompt files, {{ARG}} substitution, and shell expression expansion
  • host and sandbox lifecycle hooks
  • Docker, Podman, Vercel, Daytona, and no-sandbox providers
  • Claude session capture/resume-compatible storage
  • init templates for loop, review, and parallel planner workflows

SwarmBox also adds an agent registry seeded from SwarmVault and SwarmClaw so any coding-agent CLI can be detected or configured with a generic command adapter.

Quick Start

python -m pip install -e .
swarmbox agents list
swarmbox init --agent codex --sandbox docker --template blank --no-build
from swarmbox import codex, docker, run

result = run(
    agent=codex("gpt-5.4-codex"),
    sandbox=docker(),
    prompt_file=".swarmbox/prompt.md",
)
print(result.branch, result.commits)

Reference

The behavior and API shape are based on the upstream MIT-licensed Sandcastle project: https://github.com/mattpocock/sandcastle

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

swarmbox-0.1.0.tar.gz (30.8 kB view details)

Uploaded Source

Built Distribution

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

swarmbox-0.1.0-py3-none-any.whl (34.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: swarmbox-0.1.0.tar.gz
  • Upload date:
  • Size: 30.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for swarmbox-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bc7da0e8e9bb82cdf91561b6fc2dd5fdf1f2b5dcc9158180e2484e7ce0250823
MD5 5efad9d48bee464c76a6f866d3ec2149
BLAKE2b-256 18581bbb21a489e210f05da674e4608ef08f9647097d29729bf7ab5261a84162

See more details on using hashes here.

File details

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

File metadata

  • Download URL: swarmbox-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 34.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for swarmbox-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a29e2dd81bb7f13af25c99a49e6fd0483df5f780d0cd8cab03cc845f1cb8db43
MD5 b5ea1559b57146e1ffcc753a038e73cc
BLAKE2b-256 3dcea7bf9981173ee91b69db04d2d473ad9812b65c8e8ed27e19972453f3fdbc

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