grave0x/statepod-open

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

See the code

See what people are saying

SourceMessageScoreDate

HarnessTax: How Much Does the Harness Matter for Coding Agents?

https://github.com/grave0x/statepod-open Its literally me realizing they don't have a good solution for it. Context should be local. It saves money and potential LLM confusion. Plus i can foresee a bunch of other deterministic context and session handling being just plain unrealized due to the…

0

Sep 25, 2026

README

SwarmState (open port)

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.

Repository layout

PathWhat it is
kernel.hPublic C API of the kernel
libswarmstate.so / libswarmstate.aPrecompiled 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

Quick start

Python bindings

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.

Kernel C API

#include "kernel.h"
gcc -O2 mytool.c -I. -L. -lswarmstate -o mytool

Windows node

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.

Licensing

  • Harness, infer, py, scripts, win node, UI kit — GNU Affero GPL v3.0 (LICENSE).
  • Kernel binary (libswarmstate.so, libswarmstate.a) — proprietary; see KERNEL-LICENSE.
  • Third-party components — see NOTICE.

Status

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.

Contributors

grave0x

1 commits

grave0x/statepod-open

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

See the code

See what people are saying

SourceMessageScoreDate

HarnessTax: How Much Does the Harness Matter for Coding Agents?

https://github.com/grave0x/statepod-open Its literally me realizing they don't have a good solution for it. Context should be local. It saves money and potential LLM confusion. Plus i can foresee a bunch of other deterministic context and session handling being just plain unrealized due to the…

0

Sep 25, 2026

README

SwarmState (open port)

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.

Repository layout

PathWhat it is
kernel.hPublic C API of the kernel
libswarmstate.so / libswarmstate.aPrecompiled 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

Quick start

Python bindings

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.

Kernel C API

#include "kernel.h"
gcc -O2 mytool.c -I. -L. -lswarmstate -o mytool

Windows node

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.

Licensing

  • Harness, infer, py, scripts, win node, UI kit — GNU Affero GPL v3.0 (LICENSE).
  • Kernel binary (libswarmstate.so, libswarmstate.a) — proprietary; see KERNEL-LICENSE.
  • Third-party components — see NOTICE.

Status

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.

Contributors

grave0x

1 commits

Languages

Python

64.5%

C

19.3%

JavaScript

9.0%

Shell

7.2%