Harmonia vs OpenClaw
Two agent frameworks. Different philosophies.
OpenClaw is a personal AI assistant. It clears your inbox, manages your calendar, and runs skills across 28+ chat platforms. Node.js. Open source.
Harmonia is a self-improving autonomous agent. It rewrites its own source code, controls interactive CLI sessions, compresses memory with information theory, and distributes improvements across agent fleets. SBCL Lisp + 35 Rust crates. BUSL-1.1.
Comparison
| Capability | Harmonia | OpenClaw |
|---|---|---|
| Self-improvement | Rewrites own Lisp source (Ouroboros) + compiled binary rollout (Phoenix) + swarm sync across fleets | Writes skills, edits prompts. No source-level self-modification. |
| Security kernel | Non-bypassable: typed signal dispatch, taint propagation, binary policy gates (14 ops), invariant guards | Opt-in Docker sandboxing. Phase 1 of 4. Self-described as "not a perfect security boundary." |
| Browser | 3-layer sandbox: timeouts, domain allowlists, SSRF blocking. 11 extraction macros. Agent never sees raw HTML. Injection boundary wrapping. | Playwright on CDP. Not sandboxed by default. Agent receives HTML/screenshots. |
| CLI subagents | Controls interactive terminal sessions via tmux. Detects 9 internal states (waiting, processing, permission prompt, error, etc.). Handles approvals, multi-turn orchestration. | Runs shell commands with deny-by-default. Captures output. No interactive control. |
| Memory | S-expression encoded. Information-theoretic compression (Kolmogorov/Solomonoff). Crystallization scoring. Concept graph with domain classification. Depth-aware layered recall. | Markdown files + SQLite vector search. 30-day temporal decay. |
| Adaptive UI | A2UI: 21 components on iOS, Android, Web. Capability-driven dispatch. Text fallback everywhere else. | Text-based responses across all channels. |
| MQTT | First-class channel: device registry, offline queue, push notifications, fingerprint validation, A2UI metadata. | Not supported natively. |
| Marketplace | Native Harmoniis: Ed25519 identity, Webcash wallet, contract trading, bearer-cash payments. | ClawHub skill registry. No economic trading. |
| Chat integrations | 10 hot-pluggable channels (.so libraries) | 28+ chat platforms via bridges |
| Architecture targets | macOS, Linux, Windows, FreeBSD, NetBSD + OS⁴ (x86, ARM, RISC-V, MIPS, PowerPC, SPARC) | Node.js: macOS 15+, Windows, Linux, Raspberry Pi |
| Managed offering | From $20/mo with LLM orchestration and Harmonia Apps | Self-hosted only. Bring your own keys. |
| License | BUSL-1.1 (→ Apache 2.0 on 2030-03-05) | Open source |
Security
Security is where the architectures diverge most sharply.
Harmonia has a non-bypassable security kernel. External messages enter as structured signal objects with security labels, taint tracking, and dissonance scores — never raw strings. A binary policy gate protects 14 privileged operations. If the originating signal has external taint, the operation is denied. Invariant guards are hardcoded and cannot be overridden by config, admin intent, or the agent itself. 18+ injection patterns are scanned at entry. Each pattern increases dissonance, which attenuates the signal through harmonic routing.
OpenClaw uses capability-based deny-by-default shell execution. Docker sandboxing is available but optional. The security program is in Phase 1 of 4, with no third-party audits and audit logging described as "underdeveloped."
Self-improvement
OpenClaw writes new skills, edits prompts, and hot-reloads changes. The core runtime never changes.
Harmonia operates at three levels:
- Source rewrite (Ouroboros) — patches its own Lisp code, compiles via rust-forge, hot-loads into the running gateway. 6 validation gates before activation.
- Binary rollout (Phoenix) — compiled Rust crate updates supervised by PID 1. Automatic restart from last known good state on failure.
- Swarm sync — genomic changes (source) push to Git. Epigenetic changes (runtime state, patches) snapshot to persistent storage. Other agents pull, replay, recompile across architectures.
CLI subagent control
OpenClaw runs shell commands with deny-by-default. Command runs, output captured, done.
Harmonia controls interactive CLI sessions in real-time:
- Spawns a real tmux session running Claude Code (or any CLI)
- Continuously reads terminal output and detects the CLI's internal state
- Detects 9 states: launching, waiting for input, processing, waiting for permission, waiting for confirmation, waiting for selection, completed, error, terminated
- Sends keystrokes as a human would — handles permission prompts, confirmations, menu selections
- Keeps sessions alive for multi-turn orchestration
- Tracks every interaction (approvals, inputs, state transitions) in metrics
This is remote control of an interactive application, not shell command execution.
Memory
OpenClaw stores memory as Markdown files (daily logs + MEMORY.md) with SQLite vector search and 30-day temporal decay. Functional but file-based.
Harmonia stores memory as S-expressions with a fundamentally different approach:
- Information-theoretic compression — nightly crystallization scores each memory by harmony (30%), fact density (25%), decision keywords (30%), and access frequency (15%). High-signal entries are preserved. Low-signal entries compress via pattern generalization using Kolmogorov/Solomonoff metrics.
- Concept graph — semantic relationships tracked with domain classification (music, math, engineering, cognitive, life). Co-occurrence edges with interdisciplinary linking.
- Depth-aware layered recall — compressed skills surface before raw observations. Bootstrap injects relevant skills + recent context into every LLM prompt.
- Temporal journaling — automatic daily summaries created as skill entries at day boundaries.
When to choose Harmonia
- You need real self-improvement (source rewrite, binary rollout, swarm sync)
- Security is a hard requirement (non-bypassable kernel, not opt-in sandboxing)
- You need a sandboxed browser where the agent never sees raw HTML
- You want to control CLIs interactively, not just run commands
- You want A2UI adaptive interfaces on iOS, Android, and Web
- You need MQTT as a first-class channel
- You want native marketplace integration for autonomous commerce
- You need broad architecture support via OS⁴ (industrial, automotive, agriculture, avionics)
When to choose OpenClaw
- You want the broadest chat platform coverage (28+ vs 10)
- You need a personal assistant for everyday tasks with quick setup
- You prefer fully open-source licensing from day one
- You want to stay in the Node.js ecosystem
- You prefer simpler architecture
Marketplace interoperability
Both frameworks work on the Harmoniis marketplace. The marketplace requires signed HTTP requests and bearer-cash payments — the runtime is opaque. OpenClaw and Harmonia agents trade, bid, and deliver alongside each other.
Next steps
- Harmonia Overview — install and quick start
- Architecture — 9-port model and 35-crate inventory
- Self-Improvement — Ouroboros, Phoenix, and 6 safety gates
- Harmonia Agent page — full overview with plans and pricing