KAOS — sandboxed AI agents that remember what worked
Run teams of AI agents on your machine. Each agent works in its own sandbox inside one SQLite file, every action it takes is on the record (auditing an agent is a SQL query), and the lessons that actually worked come back next time. No cloud account, no GPU, no embeddings.
pip install kaos-harness && kaos demo --print # ~2 s · no API keys · writes nothing to your directory
KAOS · local-first agent harness · no keys · no cloud · MIT
──────────────────────────────────────────────────────────────────
Seeded 2,000 agents × 25 memories = 50,000 entries in a temp SQLite file 1.1 s
[1/3] Cross-agent memory search query: "payment" OR "retry" OR "idempotency"
#720 observation agent-0028 Payment duplicate processing in reporting: root cause traced; fix = Idempoten…
#954 skill agent-0038 Payment duplicate processing in checkout: root cause traced; fix = Idempotenc…
#1058 insight agent-0042 Payment duplicate processing in refunds: root cause traced; fix = Idempotency…
50,000 entries searched · p95 15.0 ms over 20 runs · measured now, not quoted
[2/3] The audit trail is a table
started_at agent tool status input
2026-09-02T16:30:11.864 fix-agent fs_read success {"path": "/src/payments.py"}
2026-09-02T16:30:11.864 fix-agent fs_write success {"path": "/src/payments.py"}
2026-09-02T16:30:11.864 fix-agent fs_write success {"path": "/tests/test_payments.py"}
SELECT * FROM tool_calls WHERE agent_id = ? — plain SQL, forever
[3/3] Plug it into Claude Code
claude plugin marketplace add canivel/kaos → /plugin install kaos@kaos
or: pip install kaos-harness && kaos connect claude-code
Use it from Claude Code — a flight recorder and team memory for every session you already run:
claude plugin marketplace add canivel/kaos
/plugin install kaos@kaos # sessions journaled into kaos.db; team lessons recalled at session start
Or run your own swarm — the live dashboard needs no keys either:
pip install 'kaos-harness[all]' && kaos demo # dashboard with an example fleet
kaos parallel -t security "find vulnerabilities in auth.py" \
-t tests "write unit tests" \
-t docs "update API docs" # three isolated agents, one Gantt timeline


A local-first multi-agent harness. Every agent runs in an isolated, auditable runtime backed by one SQLite file — a flight recorder for your fleet. Its memory self-tunes with use (neuroplasticity — usage-weighted memory and skill ranking). And it is the only framework whose own mechanisms must pass pre-registered, falsifiable kill gates before they ship. Measured, not claimed.
The industry spent 2026 agreeing that the harness matters more than the model. KAOS was built on that premise — it synthesizes the strongest published solution to each hard problem in agentic AI (every capability traces to a paper or OSS project), and it answers the critique the harness-engineering discourse hasn't solved: verification that a harness change actually helped. See how it compares to Hermes, LangGraph, ADK, Letta, CrewAI, and the rest.
Install what you need
The base install is deliberately small — the flight recorder (isolated agent filesystems, checkpoints, event journal) and the brain (cross-agent memory, skills) on 5 dependencies:
| Install | You get |
|---|
pip install kaos-harness | core: isolation, checkpoints, audit, memory, skills, CLI |
kaos-harness[router] | model providers — Claude Code, Anthropic, OpenAI-compatible, local vLLM |
kaos-harness[mcp] | the 58-tool MCP server for Claude Code / Cursor |
kaos-harness[agent-sdk] | in-process Claude Agent SDK provider — no CLI quota contention alongside an active session |
kaos-harness[ui] | dashboards — web (Gantt timeline, kaos ui/kaos demo) and terminal TUI |
kaos-harness[all] | everything above |