pilot-workers
Dispatch bounded tasks to isolated LLM workers. Your main AI agent (Claude, Codex, or any planner) stays in control of requirements, planning, and verification — the worker only executes what it's told.
CLI command: pw9 (alias: pilot-workers).
What it does
- Provider isolation: each model (GLM, Kimi, DeepSeek, or your own) gets its own credentials, XDG directories, logs, and session storage. No cross-contamination.
- Fixed routing: provider, model, and endpoint are locked per YAML config. Tasks cannot override them.
- Security by default: API keys never appear in CLI args, environment variables, task contracts, or logs. Output is auto-redacted.
- Five modes:
code(edit),explore(read-only),test(run tests),review(read-only audit),resume(continue a prior code session). - Auto-fanout review/test:
pw9 reviewandpw9 testautomatically split work by configurable axes/layers and dispatch in parallel. - Pluggable runners: the runner adapter layer (
RunnerABC) abstracts engine-specific details. Currently ships with OpenCode. - Observable: two-line JSON contract (
started+ structuredverdict) for AI planners; human-readablelatest.logfortail -f.
Install
pip install pilot-workers
Quick Start
# 1. Install the worker runtime
pw9 install runner opencode
# 2. Configure a provider's API key
pw9 key glm
# 3. Check status
pw9 status
# 4. Run a task (dispatch = run + a structured verdict and a report.md)
pw9 template code > /tmp/task.md # fill it in first
pw9 dispatch --provider glm --mode code --workdir /path/to/project --task-file /tmp/task.md
# 5. Auto-fanout code review (5 axes in parallel)
pw9 review --provider glm --workdir .
# 6. Auto-fanout test execution
pw9 test --provider glm --workdir .
Adding a Provider
Drop a YAML file in data/providers/ with the required fields (key, provider_id, model_id, base_url, display_name, context_tokens, output_tokens), then pw9 key <key>.
Key Commands
| Command | Description |
|---|---|
pw9 key <provider> |
Configure API key |
pw9 status [--json] |
Provider credentials + runner state |
pw9 dispatch --provider <key> --mode <mode> --workdir <dir> --task-file <file> |
Dispatch a single task; stdout = two JSON lines (started + verdict), plus a report.md on disk |
pw9 run ... |
The inner primitive dispatch wraps — streams events, writes the log, but extracts no result |
pw9 spec --provider <key> --workdir <dir> --requirement "..." |
Explore, then draft a code task contract to edit |
pw9 discuss --provider <a>,<b> --workdir <dir> --question "..." |
One question, independent positions, shows where they split |
pw9 runs / pw9 usage |
Dispatch history and token totals |
pw9 fanout --workdir <dir> --job <provider:mode:file> ... |
Dispatch several jobs concurrently |
pw9 review --provider <key> --workdir <dir> |
Auto-fanout code review by axes |
pw9 test --provider <key> --workdir <dir> |
Auto-fanout test execution by layers |
pw9 review show/add/edit/remove |
Manage review axes |
pw9 test show/add/edit/remove |
Manage test layers |
pw9 permissions add/remove/show <provider> ... |
Per-provider shell permission overrides |
pw9 template <mode> |
Print the task template for a mode |
pw9 install runner opencode |
Install the worker runtime |
pw9 uninstall key <provider> |
Remove an API key |
Development
python3 -m venv .venv && .venv/bin/pip install -e ".[dev]"
.venv/bin/pytest
License
MIT
Metadata
Release files for pilot-workers 0.13.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pilot_workers-0.13.0.tar.gz | 224.4 kB | With provenance | Details for pilot_workers-0.13.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pilot_workers-0.13.0-py3-none-any.whl | Python 3 | none | any | Details for pilot_workers-0.13.0-py3-none-any.whl |
Total release size: 385.4 kB
Release files / pilot_workers-0.13.0.tar.gz
| Download URL | pilot_workers-0.13.0.tar.gz |
|---|---|
| Size | 224.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3a775613b082aa1f79d51d8ec0069d726d5c8fb8adf89493f3107d374c74542b
|
|
BLAKE2b-256 checksum How to use checksums |
6b97ed2e212be1a6a6828e8ebf9726b1f0dcdb7e369688b3fb6fc776b465ccb7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 16, 2026.
Transparency logRelease files / pilot_workers-0.13.0-py3-none-any.whl
| Download URL | pilot_workers-0.13.0-py3-none-any.whl |
|---|---|
| Size | 161.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8561758c83d3458481dc91449a590ff9ca38d1f5b697f6a305860477b8c937e7
|
|
BLAKE2b-256 checksum How to use checksums |
6477a16c190108726e57e153c3ed513b854ba356833e3ff5d8394c760c1e3abf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 16, 2026.
Transparency logSecurity for pilot-workers 0.13.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pilot_workers-0.13.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 16, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.