Skip to main content

Autonomous OSS-repo health for solo maintainers (Python port of @p-vbordei/agent-fleet)

Project description

agent-fleet (Python)

CI spec: v0.1 license: Apache 2.0

Idiomatic Python port of @p-vbordei/agent-fleet (on npm as @p-vbordei/agent-fleet v0.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 strict gh-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-file typescript-bun template kit plus a .release-please-manifest.json seeded from the target's package.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; exits 64.
  • Strict fleet.yaml schema (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: AnthropicClient and ExecFn are injectable — no network or real gh in 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 create in the same run.
  • C4 — tick read-only on code: forbidden-prefix table rejects mutating gh pr/issue/release/repo/workflow/secret/variable/label subcommands.
  • C5fleet.yaml strict 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.
  • S5enroll makes 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.

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

kindred_agent_fleet-0.1.0.tar.gz (85.6 kB view details)

Uploaded Source

Built Distribution

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

kindred_agent_fleet-0.1.0-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kindred_agent_fleet-0.1.0.tar.gz
  • Upload date:
  • Size: 85.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for kindred_agent_fleet-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c6636bc4abc72cdcf168ec15d1b877830dcd3f8f2cd518e3130b36db62fdb327
MD5 c87b5a44083fd4b3e61396e556e78354
BLAKE2b-256 e7670ccb06db8f34f33de29e613b9ef86d21dd5cfcd7d2f4e81371a915df796d

See more details on using hashes here.

Provenance

The following attestation bundles were made for kindred_agent_fleet-0.1.0.tar.gz:

Publisher: publish.yml on p-vbordei/agent-fleet-py

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

File details

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

File metadata

File hashes

Hashes for kindred_agent_fleet-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 32c780caa5304e75f21e57984a5992b2f331037088456db9c6686b5e404e981d
MD5 6dee943c30c2b72ac82b7e4d26325fe5
BLAKE2b-256 5fcc88bd657dc875a8d760f647b082b9799e136907d5a208f2f74b6fc14bcf10

See more details on using hashes here.

Provenance

The following attestation bundles were made for kindred_agent_fleet-0.1.0-py3-none-any.whl:

Publisher: publish.yml on p-vbordei/agent-fleet-py

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