Open-core port of SwarmState: context-containing C kernel for AI agents (precompiled kernel + AGPL harness/node/UI)
Python
1
1 commits
updated Sep 24, 2026
Context-containing, state-first C kernel for AI agents. The kernel holds
and exposes project context; the LLM sees only summaries, diffs, and plans
(m#:d#:b# resource tags), so an agent never has to read — or overflow on —
the full context.
This repository is the open-source port of SwarmState. It ships the
AGPL-licensed harness, inference handler, Python bindings, demo scripts,
Windows node, and UI kit, together with the precompiled proprietary
kernel (libswarmstate.so / libswarmstate.a) and its public API header
(kernel.h). The kernel source (kernel.c) is not distributed here.
| Path | What it is |
|---|---|
kernel.h | Public C API of the kernel |
libswarmstate.so / libswarmstate.a | Precompiled kernel (proprietary — see KERNEL-LICENSE) |
harness/ | Agent harness: planner, orchestrator, governance, pool, LoRA, identity |
infer/ | Embedded inference handler (llama.cpp) |
py/ | Python bindings (ctypes) + tests |
scripts/ | Mesh, governance, pool, and acceptance demos |
win/ | Windows node (C) — mesh daemon + embedded web UI |
ui/ | UI Kit spec + role-based widget config |
The bindings load libswarmstate.so from the repository root:
cd py
python3 - <<'PY'
from swarmstate import SwarmState
with SwarmState("/path/to/some/repo") as s:
print(s.grep("main"))
PY
Set SWARMSTATE_LIB to point at a different libswarmstate.so if needed.
#include "kernel.h"
gcc -O2 mytool.c -I. -L. -lswarmstate -o mytool
win/ holds the node source (swarmstate-node.c), the vendored QR
library, the Windows shims, and the cross-compile recipe (win/build.sh).
The node links the shared C mesh base and the kernel; see NOTICE and
win/README.txt.
LICENSE).libswarmstate.so, libswarmstate.a) — proprietary;
see KERNEL-LICENSE.NOTICE.Open-core port for evaluation, field trials, and community feedback. See
the UI Kit spec (ui/ui-kit-spec-v1.md) and win/README.txt for the
shipped feature surface.
1 commits
Python
64.5%
C
19.3%
JavaScript
9.0%
Shell
7.2%
Open-core port of SwarmState: context-containing C kernel for AI agents (precompiled kernel + AGPL harness/node/UI)
Python
1
1 commits
updated Sep 24, 2026
Context-containing, state-first C kernel for AI agents. The kernel holds
and exposes project context; the LLM sees only summaries, diffs, and plans
(m#:d#:b# resource tags), so an agent never has to read — or overflow on —
the full context.
This repository is the open-source port of SwarmState. It ships the
AGPL-licensed harness, inference handler, Python bindings, demo scripts,
Windows node, and UI kit, together with the precompiled proprietary
kernel (libswarmstate.so / libswarmstate.a) and its public API header
(kernel.h). The kernel source (kernel.c) is not distributed here.
| Path | What it is |
|---|---|
kernel.h | Public C API of the kernel |
libswarmstate.so / libswarmstate.a | Precompiled kernel (proprietary — see KERNEL-LICENSE) |
harness/ | Agent harness: planner, orchestrator, governance, pool, LoRA, identity |
infer/ | Embedded inference handler (llama.cpp) |
py/ | Python bindings (ctypes) + tests |
scripts/ | Mesh, governance, pool, and acceptance demos |
win/ | Windows node (C) — mesh daemon + embedded web UI |
ui/ | UI Kit spec + role-based widget config |
The bindings load libswarmstate.so from the repository root:
cd py
python3 - <<'PY'
from swarmstate import SwarmState
with SwarmState("/path/to/some/repo") as s:
print(s.grep("main"))
PY
Set SWARMSTATE_LIB to point at a different libswarmstate.so if needed.
#include "kernel.h"
gcc -O2 mytool.c -I. -L. -lswarmstate -o mytool
win/ holds the node source (swarmstate-node.c), the vendored QR
library, the Windows shims, and the cross-compile recipe (win/build.sh).
The node links the shared C mesh base and the kernel; see NOTICE and
win/README.txt.
LICENSE).libswarmstate.so, libswarmstate.a) — proprietary;
see KERNEL-LICENSE.NOTICE.Open-core port for evaluation, field trials, and community feedback. See
the UI Kit spec (ui/ui-kit-spec-v1.md) and win/README.txt for the
shipped feature surface.
1 commits
Python
64.5%
C
19.3%
JavaScript
9.0%
Shell
7.2%