Skip to main content

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

PyPI Python versions License CI codecov

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 CatalogSource ranks the corpus by lexical relevance (a pluggable Ranker) 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 AgentSpec with 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

codecov sunburst

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

claude_sdk_agent_fleet-0.1.2.tar.gz (188.1 kB view details)

Uploaded Source

Built Distribution

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

claude_sdk_agent_fleet-0.1.2-py3-none-any.whl (76.5 kB view details)

Uploaded Python 3

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

Hashes for claude_sdk_agent_fleet-0.1.2.tar.gz
Algorithm Hash digest
SHA256 dff30c4f28496667c38f97fe454e792c4dcbffe291df09ab5f6f28b3958a9e04
MD5 86d170063bdcd16bb33a9fd2b3cc5cfe
BLAKE2b-256 58ed6f718a9493136a4625740f24c8dae39e0f9afcf48e2130dddfae2c328e4d

See more details on using hashes here.

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

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

File details

Details for the file claude_sdk_agent_fleet-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for claude_sdk_agent_fleet-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7e311fefab236c1821b07c40ee6d3bf83cd918ba92b47be72e4392f98da2be54
MD5 59a43a35c40bb6f0c2122a3eb4ceddfa
BLAKE2b-256 031e4325b4293a2515a899dd19be1ab3274f5716ba32e782512aa85741105f64

See more details on using hashes here.

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

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