Zouroboros is a self-evolving AI operating system built natively on Zo Computer. It is a governed control layer for persistent memory, multi-agent orchestration, and procedure evolution — in one monorepo.
- Memory — hybrid SQLite + vector store (episodic, procedural, and cognitive) with domain context injection.
- Swarm — multi-agent DAG execution across 8 executors with adaptive routing and mandatory quality gates.
- Self-healing — a daily introspect → prescribe → evolve loop, guarded by a multi-vendor consensus gate.
- Local deterministic replay — secret-redacted HTTP and ACP tool cassettes feed ZouroBench, Snakepit, and skill crystallization; automated promotion requires a replay pass.
- Workflow & personas — spec-first interview / evaluate / gap-audit tools and a SOUL/IDENTITY persona framework.
Zouroboros has two layers, so there are two installation paths:
- Compute layer — the npm packages (CLI + libraries). Portable: runs on any Bun/Node system.
- Experience layer — skills, hooks, MCP servers, scheduled agents, conditional rules. Zo-Computer-native (hooks live in
~/.claude/settings.json, skills in~/Skills/, agents/rules via the platform API — no standalone equivalent).
Pick the path that matches your platform.
You get the compute layer plus the self-evolving experience layer that only a Zo Computer provides:
- Everything in Path B (CLI, memory, swarm, consensus gate + MoA, workflow, self-heal, personas)
- Skills surface (
~/Skills/) and the~/.zo/memorypersona store UserPromptSubmit/PostToolUsehooks wired into~/.claude/settings.json.mcp.jsongraph + RAG MCP servers- Scheduled agents — the daily memory-capture → decay → introspect → prescribe → evolve loop
- Conditional rules
Clone the repo, run bun install && bun run build, then follow the installation guide. Scheduled agents and rules are created from Zo Chat (there is no HTTP API for them).
On any Bun/Node box you get the full compute layer as a CLI and libraries — no Zo Computer required:
npm install -g zouroboros-cli
zouroboros init # scaffold config, memory database, and bundled skills
zouroboros doctor # verify your environmentOr embed the libraries directly:
npm install zouroboros-core zouroboros-memoryWhat you get: the unified zouroboros CLI, hybrid SQLite + vector memory, multi-agent swarm orchestration, the multi-vendor consensus gate + MoA (Mixture-of-Agents) panel, spec-first workflow tools, self-heal, and personas — all usable as CLIs or imported libraries. See Packages.
What you don't get (Zo-only, see Path A): the Skills surface, UserPromptSubmit/PostToolUse hooks, .mcp.json graph + RAG MCP servers, the ~/.zo/memory persona store, scheduled agents (the governed self-evolution loop), and conditional rules.
Requires Bun 1.x (both paths) — the memory layer imports
bun:sqlite. SetOPENAI_API_KEYto enable semantic vector search; without it, memory degrades gracefully to full-text search. SetOPENROUTER_API_KEYto activate the 3-model consensus / MoA panel. Multi-agent campaigns additionally need at least one general-purpose executor binary (claude,codex,gemini,hermes,opencode,kimi, orpi) —zouroboros doctorreports what's available.
The Observatory is available through the unified CLI or as a standalone package. Both require Bun 1.1 or newer.
For an existing or new Zouroboros installation:
npm install -g zouroboros-cli
zouroboros observatory init
zouroboros observatory doctor
zouroboros observatory startFor the standalone dashboard only:
npm install -g zouroboros-observatory
zouroboros-observatory init
zouroboros-observatory doctor
zouroboros-observatory startOpen http://127.0.0.1:4178. The Observatory is read-only and binds to loopback by default. Binding to a non-loopback address requires ZOUROBOROS_OBSERVATORY_TOKEN; see the Observatory guide for telemetry configuration and private Zo deployment.
| Package | Version | What it provides |
|---|---|---|
zouroboros-cli |
Unified CLI — init, doctor, memory, swarm, workflow, heal |
|
zouroboros-core |
Types, config, and shared utilities | |
zouroboros-memory |
Hybrid SQLite + vector memory and the memory-gate daemon | |
zouroboros-swarm |
Multi-agent orchestration: DAG execution, adaptive routing, pipeline gates | |
zouroboros-workflow |
Spec-first interview, evaluate, gap audit, unstuck, autoloop | |
zouroboros-selfheal |
Introspection, prescription, and autonomous evolution | |
zouroboros-personas |
SOUL/IDENTITY persona framework with scoped fact storage | |
zouroboros-rag |
RAG enrichment: OpenAI embeddings + Qdrant retrieval | |
zouroboros-observatory |
0.1.0 | Private, read-only operational dashboard with portable telemetry adapters |
The CLI + core + memory are the validated MVP. The remaining packages extend the platform and install the same way.
# Memory
zouroboros memory store --entity user --key preference --value "dark mode"
zouroboros memory search "technology preferences"
# Multi-agent campaign
zouroboros swarm run --tasks campaign.json
# Spec-first workflow
zouroboros workflow interview --topic "Design a database schema"
# Self-healing loop
zouroboros heal introspect && zouroboros heal prescribe && zouroboros heal evolve
# Portable operations dashboard
zouroboros observatory init
zouroboros observatory doctor
zouroboros observatory startOr use it programmatically:
import { Memory } from 'zouroboros-memory';
const memory = new Memory({ dbPath: './memory.db' });
await memory.store({ entity: 'user', key: 'preference', value: 'TypeScript', category: 'preference' });
const results = await memory.search({ query: 'programming languages' });Swarm campaigns run through mandatory quality gates end to end:
Seed Spec → Seed Eval Gate → Execute DAG → Post-Flight Eval → Gap Audit Loop
Eight executors (Claude Code, Hermes, Gemini, Codex, OpenCode, Kimi, Pi, and Mimir) are chosen by an adaptive router, protected by circuit breakers and retry/fallback cascades. Procedure changes are validated by a multi-vendor consensus gate before they land. See the architecture overview and executor capability matrix for the full picture.
- Installation and Quick Start
- Architecture Overview — layers, executors, routing, resilience
- Health Council — the self-monitoring watchers
- CLI Reference — complete command list
- Observatory — portable dashboard, adapters, security, and private Zo deployment
MIT — see LICENSE. Built natively on Zo Computer; inspired by Q00/ouroboros and Karpathy's AutoResearch / 2ndBrain concepts.
