swarmkit-runtime
Python runtime for SwarmKit. Interprets topology files, compiles them into LangGraph StateGraphs, enforces governance via the GovernanceProvider abstraction (AGT-backed in v1.0), and exposes the swarmkit CLI plus a persistent HTTP server.
Layout
src/swarmkit_runtime/
├── cli/ # Typer-based CLI: init, author, run, serve
├── topology/ # Topology loader, validator, resolver (archetype + skill refs)
├── skills/ # Skill registry, category-specific semantics, composition
├── archetypes/ # Archetype registry and instantiation
├── governance/ # GovernanceProvider interface + AGTGovernanceProvider impl
├── langgraph_compiler/ # Topology → StateGraph compilation (design §14.3)
├── mcp/ # MCP client, server lifecycle, sandbox supervision
└── audit/ # Append-only audit log adapters, skill gap log surfacing
Design references
- §7 Architectural Principles —
topology as data,portability, never lock-in - §8 Separation of Powers —
governance/module is the SwarmKit side; AGT is the implementation - §9 System Architecture — this package is component #1 of 3
- §14 Runtime Architecture — three execution modes (one-shot, persistent, scheduled)
Entry points (design §14.2)
| Command | What it does |
|---|---|
swarmkit init |
Launch Workspace Authoring Swarm in terminal chat mode |
swarmkit author topology [name] |
Launch Topology Authoring variant |
swarmkit author skill [name] |
Launch Skill Authoring Swarm |
swarmkit author archetype [name] |
Launch Archetype Authoring variant |
swarmkit run topology.yaml |
One-shot execution |
swarmkit serve workspace/ |
Persistent / scheduled mode |
Development
uv sync --package swarmkit-runtime
uv run pytest packages/runtime/tests
uv run swarmkit --help
Metadata
Release files for swarmkit-runtime 1.261.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| swarmkit_runtime-1.261.0.tar.gz | 1.2 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| swarmkit_runtime-1.261.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.0 MB
Release files / swarmkit_runtime-1.261.0.tar.gz
| Download URL | swarmkit_runtime-1.261.0.tar.gz |
|---|---|
| Size | 1.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fa5c4770db520d33162af5659426ba1d58b86c81374b36f5441df67a981aa0c1
|
|
BLAKE2b-256 checksum How to use checksums |
758aee83e51c7f3199918e099d6606c714f43a62ab0301aae7dbbd5d058374a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / swarmkit_runtime-1.261.0-py3-none-any.whl
| Download URL | swarmkit_runtime-1.261.0-py3-none-any.whl |
|---|---|
| Size | 842.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6f79cde19e9dd8db7fb9d523d1ca340291d99c8e70e9676779af1cb4e284ac14
|
|
BLAKE2b-256 checksum How to use checksums |
6d8d7a054291c5ec91518f69c82a6245af8eca2b6fea5919d6a72f9e678aca32
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|