MeaningSpace architecture / technical disclosure
One human, one AI,
and five stand-ins.
MeaningSpace is a semantic memory OS for an AI — and at the same time a commander architecture that turns web Claude itself (the chat page in a browser) into a group of sub-agents running in parallel at ¥0 extra API cost. This page lays out the whole structure, illustrated: DP multi-agent, self-learning, self-repair, and active coding.
Overview — three layers and a commander
There are only four parts. (1) A human talks; (2) the commander AI (Eliza = Claude Desktop) decides; (3) the semantic memory (MeaningSpace / DuckDB) supplies the past; (4) the DP lanes (stand-ins of web Claude) do the work in parallel.
DP multi-agent — orchestrating web Claude (foundation fixed 2026-07-13)
DP = Debug Port. Chrome's debugging interface (CDP, the Chrome DevTools Protocol) drives the claude.ai chat page mechanically. One lane = one Chrome = one profile = one CDP port. With zero shared state, adding lanes does not break the structure.
Operating know-how fixed by measurement (primary findings)
| Item | Measured result and countermeasure (date fixed) |
|---|---|
| Concurrency limit | No published limit. Measured at two per account (the commander's own reply takes one). Controlled across processes with the ticket lock in dp_lease.py (made permanent 2026-07-14) |
| Freezes on simultaneous start | Starting in the same millisecond makes UI actions collide and freeze → 2.5-second staggered starts (2026-07-13) |
| Zombie responses | Generation runs on the server, so killing the process does not stop it. Always stop in this order: abort flag → stop the response in the UI → kill (2026-07-13) |
| State detection | Reading state from UI strings caused self-reference contamination (log lines inside a prompt mistaken for warnings) → moved entirely to DOM attributes (2026-07-14) |
| Persona contamination | The same account means user settings leak into the lanes. Blocked with a neutralizing header at the top of the contract prompt (proven 2026-07-13) |
| Observability | dp_journal.py — journal.jsonl and summary.json per run, with group ownership and terminal-state tracking (2026-07-14) |
Active coding — the one who touches and the one who decides
Claude in a browser has no file system, so the roles are split. The commander touches; the DP agent decides. (1) The commander hands DP the relevant source (hydration) → (2) DP returns only a diff or a new body → (3) the commander applies and verifies it. Because the commander checks results itself, a loop forms in the middle of a conversation: write code, run it, look at the result, and send a fix back to DP.
Three ways to run
| Form | Structure | Use |
|---|---|---|
| Chain | In sequence — each stage's output feeds the next | Scout → implement → verify |
| Swarm | Parallel fan-out (two effective lanes) — dp_swarm.py: tasks.json (objective + validator) → submit all → collect results.json | Bulk conversion, extraction and single-file generation. Benchmark 4/4 PASS, 9–15 s per item, ¥0 (2026-07-14) |
| Loop | DP generation × local deterministic checks, in rounds, with escalation | Code fixes, pinning down a spec |
AutoCrystallize V2 — a pipeline that turns conversations into memory
A fully automatic pipeline that turns conversation logs into crystals (structured units of memory). Manual copy-and-paste was removed (2026-06-13), and all eight steps were proven on the DP route (2026-07-13).
Self-learning — the SelfEval loop (implemented 2026-07-08)
Each time a conversation is crystallized, a SelfEval crystal grades how the AI itself worked. Strengths and weaknesses accumulate with decay (EWMA, an exponential moving average) and are worn automatically at every boot as behavioral norms, self_preferences. In short, yesterday's failure is built into today's starting state.
Self-repair — SelfRepair (designed 2026-07-08)
If self-learning corrects behavior, self-repair fixes structure. When a weakness score drops past the threshold (≤ −3.0), the system files a Task crystal (a repair ticket) on its own. One word from the human — "let's do maintenance" — and the commander bundles the tasks and clears them with a DP swarm.
Cost structure — why ¥0
| Route | Cost | Role |
|---|---|---|
| Pay-per-use API (Batch API etc.) | Metered (about ¥18 per run on the old route of this system) | Sealed. Starts only with the human's approval |
| DP route (this design) | ¥0 extra (consumes only the web allowance of a flat-rate subscription) | The standard route. The number of lanes affects how fast the allowance is used |
The allowance is shared across the account (a rolling 5-hour window plus a weekly limit). DP is not a loophole in billing; it is a way of designing parallelism within a flat-rate allowance.
Technology stack
| Layer | Main components |
|---|---|
| Memory | DuckDB / 1,983 crystals (2026-07-16) / warp search (ruri-v3-310m embeddings, 768 dimensions + BM25 + reranker) / QIS (quantum-inspired interference scoring, Model 2 fixed 2026-06-11) |
| Commander | Claude Desktop inside MeaningSpace's own environment / a DB write queue (resolves single-writer conflicts) |
| Stand-ins | Chrome ×5 + CDP / dp_lease (slot lock across processes) / dp_journal (structured run records) / dp_abort (coordinated emergency stop) / dp_swarm (bulk fan-out) / COMMANDER_PLAYBOOK (decision table) |
| Self-improvement | SelfEval → EWMA → self_preferences → worn at boot / SelfRepair auto-filing / F6 flow hook (mechanical detection of answers that skip memory, v2 2026-07-15) |
Relation to similar systems
Agentic coding tools (for example, Claude Code) are designed around a single agent working from a terminal. What is specific here is threefold: (1) a ¥0 route that turns the chat UI itself into parallel sub-agents; (2) a persistent semantic memory and a self-improvement loop permanently wired to the commander; and (3) active coding, in which the commander checks results mid-conversation and sends work back to DP on the strength of the results. For the first date of each mechanism, including the dialogue-bridge design (Clara bridge, from 2026-07-05), see the timeline.