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, eject
├── 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,eject, 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 |
swarmkit eject topology.yaml |
Export LangGraph code |
Development
uv sync --package swarmkit-runtime
uv run pytest packages/runtime/tests
uv run swarmkit --help
Release files for swarmkit-runtime 1.164.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.164.0.tar.gz | 832.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| swarmkit_runtime-1.164.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:1.4 MB
Release files / swarmkit_runtime-1.164.0.tar.gz
| Download URL | swarmkit_runtime-1.164.0.tar.gz |
|---|---|
| Size | 832.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b05f456c30dd4ba4988a6588ed9c7c3f9bb3f50540016b87aa9ac1da82acebf6
|
|
BLAKE2b-256 checksum How to use checksums |
71c276b9c6c617ffcd95bd8c3cbd180ede5171a5dc9ed356f404a67b10ff643f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.2 {"installer":{"name":"uv","version":"0.12.2","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.164.0-py3-none-any.whl
| Download URL | swarmkit_runtime-1.164.0-py3-none-any.whl |
|---|---|
| Size | 611.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
02cb40356b98d50ce5d1e2f4f5fcfbe4b385c407386d83d141168cf38bbb2883
|
|
BLAKE2b-256 checksum How to use checksums |
4a220a033d80995c4e5550ecf41e9fd99eed12a15126731b2b829c3c543f3769
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.2 {"installer":{"name":"uv","version":"0.12.2","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}
|