Sovereign AI Lab · Open Tooling

Libcage

A 21KB zero-dependency pure-C LLM agent that fixes broken code on its own — then compiles and tests until it's green. No Python. No Node. No venv. Runs anywhere cc exists.

Buy Libcage — $29
One-time purchase · instant download · local-first binary

Zero dependencies

Single static binary. Only libc + POSIX sockets. No curl, no jansson, no runtime to provision.

Works where others can't

Air-gapped CI, embedded boxes, minimal containers, bare metal. Python agents can't reach these.

Any model

OpenAI-compatible /chat/completions. Point it at Ollama, OpenAI, or your local EPYC inference lane.

Self-healing loop

Applies the fix, compiles, runs your test. On failure it feeds the error back and retries up to N times.

How it works

libcage "Fix the off-by-one in parse()" broken.c \
  "cc -o out broken.c" "./out"

# iteration 1/5
#   compiling...
#   testing...
# SUCCESS after 1 iteration(s)

Why pure C?

Built with Antigravity, ships as C

Libcage was scaffolded and iterated using an LLM code-edit IDE (Google Antigravity / Gemini), proving the dogfood loop: the agent writes the C, the C agent runs the agent. The runtime itself is dependency-free C — so you get the leverage of LLM edits without the runtime baggage.

What you get

Buy Libcage — $29
Local-first · instant delivery · non-refundable digital good