agent-fleet
Assembles a minimal Claude Agent SDK agent from a problem statement and a capability corpus, then runs and resumes it. The generation path is deterministic — no LLM and no network in it, so the same request and corpus produce a byte-identical agent. Running the agent is the part that talks to the SDK.
Repository layout
Python only. One PyPI package (claude-sdk-agent-fleet), three subpackages layered so each depends on the ones
below it. pip install claude-sdk-agent-fleet gets the core engine and MCP pool server;
claude-sdk-agent-fleet[api] (or [all]) adds the FastAPI service.
| Path | What it is | Run or import | Install |
|---|---|---|---|
src/agent_fleet/ |
core engine: pipeline, router, pool | imported | claude-sdk-agent-fleet |
src/agent_fleet_api/ |
FastAPI service over the core | run | claude-sdk-agent-fleet[api] |
src/agent_fleet_mcp/ |
MCP server exposing the pool as tools (pool-mcp) |
run | claude-sdk-agent-fleet |
agent_fleet_api ─┐
├─imports──▶ agent_fleet ──imports──▶ capdisc
agent_fleet_mcp ─┘
The API front-end carries the web dependencies as an optional extra so the core engine carries none by default. Environment scanning lives in capdisc, a separate, public repo consumed as a pinned git dependency.
Pipeline
ProblemRequest ─▶ recall ─▶ select ─▶ compose ─▶ score ─▶ render
(source) (budget) (AgentSpec) (efficiency) (SDK program)
- recall — a
CatalogSourceranks the corpus by lexical relevance (a pluggableRanker) and trims to a limit. - select — keep candidates above a relevance threshold (plus pinned), capped by tool/skill budgets.
- compose — map the selected refs into an
AgentSpecwith a templated system prompt. - score — check the spec against tool/skill/prompt budgets (
efficiency). - render — emit a runnable Claude Agent SDK program.
Pool
AgentPool (SQLite) keys each pooled agent by a stable AgentKey and stores the AgentSpec and
session id that built it, so a run can be retrieved, resumed against the same live SDK
conversation, or found fuzzily. run_with_capture observes the live message stream to record the
real, resumable session id of every agent a run involves — the top-level agent and each dispatched
subagent. Runs, per-agent runs, and findings are persisted alongside the entry.
Develop
uv sync --extra api
uv run pytest
uv run ruff check
uv run mypy src
make coverage # test coverage, printed to the terminal
Details: docs/OVERVIEW.md · docs/pipeline.md · docs/catalog-boundary.md
Coverage
Metadata
Release files for claude-sdk-agent-fleet 0.1.2
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 |
|---|---|---|---|---|
| claude_sdk_agent_fleet-0.1.2.tar.gz | 188.1 kB | With provenance | Details for claude_sdk_agent_fleet-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| claude_sdk_agent_fleet-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for claude_sdk_agent_fleet-0.1.2-py3-none-any.whl |
Total release size: 264.6 kB
Release files / claude_sdk_agent_fleet-0.1.2.tar.gz
| Download URL | claude_sdk_agent_fleet-0.1.2.tar.gz |
|---|---|
| Size | 188.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dff30c4f28496667c38f97fe454e792c4dcbffe291df09ab5f6f28b3958a9e04
|
|
BLAKE2b-256 checksum How to use checksums |
58ed6f718a9493136a4625740f24c8dae39e0f9afcf48e2130dddfae2c328e4d
|
| 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 Jul 18, 2026.
Transparency logRelease files / claude_sdk_agent_fleet-0.1.2-py3-none-any.whl
| Download URL | claude_sdk_agent_fleet-0.1.2-py3-none-any.whl |
|---|---|
| Size | 76.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7e311fefab236c1821b07c40ee6d3bf83cd918ba92b47be72e4392f98da2be54
|
|
BLAKE2b-256 checksum How to use checksums |
031e4325b4293a2515a899dd19be1ab3274f5716ba32e782512aa85741105f64
|
| 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 Jul 18, 2026.
Transparency logSecurity for claude-sdk-agent-fleet 0.1.2
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 claude_sdk_agent_fleet-0.1.2.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 Jul 18, 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.