Skip to main content

Protocol-agnostic worker orchestration CLI

Project description

subagent-cli

subagent-cli is a protocol-agnostic CLI for orchestrating worker agents from a parent controller. In practice, it is a control-plane CLI that a manager agent (for example Codex or Claude Code) can use to launch and coordinate other worker agents. The CLI surface is protocol-agnostic, while the current runtime implementation is ACP-based (acp-stdio).

Status

  • Alpha (v0.1.x)
  • Local single-host focused
  • Python 3.11+

Features

  • Worker lifecycle: start, list, show, inspect, stop
  • Turn operations: send, watch, wait, approve, cancel
  • Handoff workflow: worker handoff and worker continue
  • Strict approval flow with structured events
  • ACP runtime integration (acp-stdio) with runtime restart + session resume (session/load)

Install

  • From PyPI: pip install subagent-cli
  • From local artifacts: pip install dist/subagent_cli-*.whl

Quick Start

  1. Prepare config: mkdir -p ~/.config/subagent && cp config.example.yaml ~/.config/subagent/config.yaml
  2. Initialize a controller in your workspace: subagent controller init --cwd .
  3. Start a worker: subagent worker start --cwd .
  4. Send an instruction: subagent send --worker <worker-id> --text "Investigate failing tests"
  5. Watch events: subagent watch --worker <worker-id> --ndjson

For local simulation/testing without a real ACP launcher: subagent worker start --cwd . --debug-mode

Troubleshooting

  • Ensure the runtime has the permissions required by your launcher. Some launchers need outbound network access.
  • Preflight launcher availability: subagent launcher probe <launcher-name> --json
  • If worker start fails with BACKEND_UNAVAILABLE, inspect runtime logs under: ~/.local/share/subagent/runtimes/ (or $SUBAGENT_STATE_DIR/runtimes/ when overridden)
  • For local cut-down testing without backend connectivity, use: subagent worker start --cwd . --debug-mode

Configuration

  • Default config path: ~/.config/subagent/config.yaml
  • Override config path: SUBAGENT_CONFIG=/path/to/config.yaml
  • Example config: config.example.yaml

State

  • Default state DB: ~/.local/share/subagent/state.db
  • Project hint file: <workspace>/.subagent/controller.json

Documentation

License

MIT (LICENSE)

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

subagent_cli-0.1.2.tar.gz (80.7 kB view details)

Uploaded Source

Built Distribution

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

subagent_cli-0.1.2-py3-none-any.whl (53.7 kB view details)

Uploaded Python 3

File details

Details for the file subagent_cli-0.1.2.tar.gz.

File metadata

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

File hashes

Hashes for subagent_cli-0.1.2.tar.gz
Algorithm Hash digest
SHA256 0fbaf308caa87df615a91c1adf172c0962a0a22536f1faa7bd9fec24c4967166
MD5 d023034b957e144cd7ff380fc7db3610
BLAKE2b-256 30082d7ddd74eee45bd2dd67d4a53dfd86bc2738b6ed470023fdd20b38165ce2

See more details on using hashes here.

Provenance

The following attestation bundles were made for subagent_cli-0.1.2.tar.gz:

Publisher: publish-pypi.yml on otakumesi/subagent-cli

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

File details

Details for the file subagent_cli-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: subagent_cli-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 53.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for subagent_cli-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5d6e320eec96bee01a91bc282f5e0b729deecca57d953bbd644917bb57ec502e
MD5 d53958f0fdfb6609bb7878c4e3347939
BLAKE2b-256 feac77cbf6da5b94b94411b6195499e61b04f60483278ea0c2fa05d565e622b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for subagent_cli-0.1.2-py3-none-any.whl:

Publisher: publish-pypi.yml on otakumesi/subagent-cli

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