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

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.1.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.1-py3-none-any.whl (76.4 kB view details)

Uploaded Python 3

File details

Details for the file claude_sdk_agent_fleet-0.1.1.tar.gz.

File metadata

  • Download URL: claude_sdk_agent_fleet-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 b5ca133185cf7f04f01fb10a0a2cdb7c44ac8525cd61ee0666efa343df3ebff5
MD5 80351ffc5d1c59a28ed66d7f568dff21
BLAKE2b-256 f126ee58d30703a016c730c73c7cf25373a3520731f508f4c61ce7150140e348

See more details on using hashes here.

Provenance

The following attestation bundles were made for claude_sdk_agent_fleet-0.1.1.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.1-py3-none-any.whl.

File metadata

File hashes

Hashes for claude_sdk_agent_fleet-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 84da837f28beb4e5520135d903bc6a2d31350933d52cd50f060728a5a7a9280d
MD5 1a89ab07456a2ef21b1ec17cb301bdfa
BLAKE2b-256 61bcfb9759ec0213d7013b82b51f60159d3d909163a8ba0561d2abff72362985

See more details on using hashes here.

Provenance

The following attestation bundles were made for claude_sdk_agent_fleet-0.1.1-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