Deterministic generator that assembles a minimal Claude Agent SDK agent from a problem statement and a capability corpus, with an HTTP API and MCP pool server.
Project description
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
Project details
Release history Release notifications | RSS feed
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 claude_sdk_agent_fleet-0.1.2.tar.gz.
File metadata
- Download URL: claude_sdk_agent_fleet-0.1.2.tar.gz
- Upload date:
- Size: 188.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dff30c4f28496667c38f97fe454e792c4dcbffe291df09ab5f6f28b3958a9e04
|
|
| MD5 |
86d170063bdcd16bb33a9fd2b3cc5cfe
|
|
| BLAKE2b-256 |
58ed6f718a9493136a4625740f24c8dae39e0f9afcf48e2130dddfae2c328e4d
|
Provenance
The following attestation bundles were made for claude_sdk_agent_fleet-0.1.2.tar.gz:
Publisher:
publish.yml on Magic-Man-us/claude-sdk-agent-fleet
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
claude_sdk_agent_fleet-0.1.2.tar.gz -
Subject digest:
dff30c4f28496667c38f97fe454e792c4dcbffe291df09ab5f6f28b3958a9e04 - Sigstore transparency entry: 2195093096
- Sigstore integration time:
-
Permalink:
Magic-Man-us/claude-sdk-agent-fleet@8b42b34b8129d7ed61079cc4252ef448051c48c0 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/Magic-Man-us
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@8b42b34b8129d7ed61079cc4252ef448051c48c0 -
Trigger Event:
release
-
Statement type:
File details
Details for the file claude_sdk_agent_fleet-0.1.2-py3-none-any.whl.
File metadata
- Download URL: claude_sdk_agent_fleet-0.1.2-py3-none-any.whl
- Upload date:
- Size: 76.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e311fefab236c1821b07c40ee6d3bf83cd918ba92b47be72e4392f98da2be54
|
|
| MD5 |
59a43a35c40bb6f0c2122a3eb4ceddfa
|
|
| BLAKE2b-256 |
031e4325b4293a2515a899dd19be1ab3274f5716ba32e782512aa85741105f64
|
Provenance
The following attestation bundles were made for claude_sdk_agent_fleet-0.1.2-py3-none-any.whl:
Publisher:
publish.yml on Magic-Man-us/claude-sdk-agent-fleet
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
claude_sdk_agent_fleet-0.1.2-py3-none-any.whl -
Subject digest:
7e311fefab236c1821b07c40ee6d3bf83cd918ba92b47be72e4392f98da2be54 - Sigstore transparency entry: 2195093100
- Sigstore integration time:
-
Permalink:
Magic-Man-us/claude-sdk-agent-fleet@8b42b34b8129d7ed61079cc4252ef448051c48c0 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/Magic-Man-us
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@8b42b34b8129d7ed61079cc4252ef448051c48c0 -
Trigger Event:
release
-
Statement type: