agent-fleet (Python)
Idiomatic Python port of
@p-vbordei/agent-fleet(on npm as@p-vbordei/agent-fleetv0.1.3). Autonomous OSS-repo health for solo maintainers — one config, one cron, N repos kept reviewed and dep-current. The CLI drives an Anthropic loop through a strictgh-only command allowlist (sandbox) gated by a C3 single-issue interlock. 78 tests — the most of any port in the family — cover config validation, enroll, sandbox, the tick loop, and S1/S3/S5/S6 security invariants.
What's in the box
agent-fleet enroll <name>— bootstrap one repo with the five-filetypescript-buntemplate kit plus a.release-please-manifest.jsonseeded from the target'spackage.json.agent-fleet tick [<name>]— single Anthropic-loop iteration against one or every fleet entry; opens at most one summary issue per repo.agent-fleet(no args) — usage hint; exits64.- Strict
fleet.yamlschema (Pydantic-grade validation in pure Python). - Sandbox:
gh-only allowlist with a forbidden-prefix table for mutating subcommands, enforced before every shell call. - DI-friendly:
AnthropicClientandExecFnare injectable — no network or realghin CI.
Install
pip install agent-fleet
Quickstart
# Configure one repo:
cat > fleet.yaml <<'EOF'
fleet:
- name: agent-id
repo: yourname/agent-id
path: ../agent-id
template: typescript-bun
EOF
# Bootstrap the five-file kit + release-please manifest:
agent-fleet enroll agent-id
# enrolled agent-id: 6 files written
# Run one tick (reads ANTHROPIC_API_KEY from env, calls real gh):
ANTHROPIC_API_KEY=sk-ant-... agent-fleet tick agent-id
# tick agent-id: issue-created https://github.com/yourname/agent-id/issues/42
Library use with no network — both Anthropic and gh are stubbed — see examples/quickstart.py:
python examples/quickstart.py
# tick agent-id: issue-created https://github.com/yourname/agent-id/issues/123
How it relates
| Repo | Role |
|---|---|
agent-fleet |
TypeScript reference (npm @p-vbordei/agent-fleet) — source of truth. |
agent-fleet-py |
Python port (this repo). |
agent-fleet-rs |
Rust port. |
Conformance + Security
The 78-test suite covers every clause in SPEC.md:
- C1 — enroll idempotency: second run produces a byte-identical tree.
- C2 — enroll bounded write set: only the five template files (+ release-please manifest) are touched.
- C3 — tick at-most-one issue: the loop refuses a second
gh issue createin the same run. - C4 — tick read-only on code: forbidden-prefix table rejects mutating
gh pr/issue/release/repo/workflow/secret/variable/labelsubcommands. - C5 —
fleet.yamlstrict schema: missing fields, extras, empty list, bad name/template all fail fast. - S1/S6 — secrets never appear in rendered prompts or sandbox rejection reasons.
- S3 — sandbox rejects shell metacharacters (
|&;\$<>(){}\`) before any allowlist check. - S5 —
enrollmakes zero network calls (templates are vendored).
uv sync --extra dev
uv run pytest -v
# 78 passed
See the TS reference's conformance suite for the canonical fixtures.
Architecture
See docs/architecture.md.
Development
git clone https://github.com/p-vbordei/agent-fleet-py
cd agent-fleet-py
uv sync --extra dev
uv run pytest -v
License
Apache-2.0 — see LICENSE.
Metadata
Release files for kindred-agent-fleet 0.1.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 | |
|---|---|---|---|---|
| kindred_agent_fleet-0.1.0.tar.gz | 85.6 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kindred_agent_fleet-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 104.3 kB
Release files / kindred_agent_fleet-0.1.0.tar.gz
| Download URL | kindred_agent_fleet-0.1.0.tar.gz |
|---|---|
| Size | 85.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c6636bc4abc72cdcf168ec15d1b877830dcd3f8f2cd518e3130b36db62fdb327
|
|
BLAKE2b-256 checksum How to use checksums |
e7670ccb06db8f34f33de29e613b9ef86d21dd5cfcd7d2f4e81371a915df796d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 May 20, 2026.
Transparency logRelease files / kindred_agent_fleet-0.1.0-py3-none-any.whl
| Download URL | kindred_agent_fleet-0.1.0-py3-none-any.whl |
|---|---|
| Size | 18.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
32c780caa5304e75f21e57984a5992b2f331037088456db9c6686b5e404e981d
|
|
BLAKE2b-256 checksum How to use checksums |
5fcc88bd657dc875a8d760f647b082b9799e136907d5a208f2f74b6fc14bcf10
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 May 20, 2026.
Transparency logSecurity for kindred-agent-fleet 0.1.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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for kindred_agent_fleet-0.1.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 May 20, 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.