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 handoffandworker 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
- Prepare config:
mkdir -p ~/.config/subagent && cp config.example.yaml ~/.config/subagent/config.yaml - Initialize a controller in your workspace:
subagent controller init --cwd . - Start a worker:
subagent worker start --cwd . - Send an instruction:
subagent send --worker <worker-id> --text "Investigate failing tests" - 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 startfails withBACKEND_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
- Architecture note: docs/ARCHITECTURE.md
- Examples: docs/examples
- Contributing and release process: CONTRIBUTING.md
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0fbaf308caa87df615a91c1adf172c0962a0a22536f1faa7bd9fec24c4967166
|
|
| MD5 |
d023034b957e144cd7ff380fc7db3610
|
|
| BLAKE2b-256 |
30082d7ddd74eee45bd2dd67d4a53dfd86bc2738b6ed470023fdd20b38165ce2
|
Provenance
The following attestation bundles were made for subagent_cli-0.1.2.tar.gz:
Publisher:
publish-pypi.yml on otakumesi/subagent-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
subagent_cli-0.1.2.tar.gz -
Subject digest:
0fbaf308caa87df615a91c1adf172c0962a0a22536f1faa7bd9fec24c4967166 - Sigstore transparency entry: 1008237196
- Sigstore integration time:
-
Permalink:
otakumesi/subagent-cli@2a639e544b97f1f4a3df0cdfef322e853612dd09 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/otakumesi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@2a639e544b97f1f4a3df0cdfef322e853612dd09 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d6e320eec96bee01a91bc282f5e0b729deecca57d953bbd644917bb57ec502e
|
|
| MD5 |
d53958f0fdfb6609bb7878c4e3347939
|
|
| BLAKE2b-256 |
feac77cbf6da5b94b94411b6195499e61b04f60483278ea0c2fa05d565e622b4
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
subagent_cli-0.1.2-py3-none-any.whl -
Subject digest:
5d6e320eec96bee01a91bc282f5e0b729deecca57d953bbd644917bb57ec502e - Sigstore transparency entry: 1008237199
- Sigstore integration time:
-
Permalink:
otakumesi/subagent-cli@2a639e544b97f1f4a3df0cdfef322e853612dd09 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/otakumesi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@2a639e544b97f1f4a3df0cdfef322e853612dd09 -
Trigger Event:
release
-
Statement type: