You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
engram-bridge --channel web # Open http://127.0.0.1:8200
65
+
```
66
+
58
67
---
59
68
60
69
## Why Engram
61
70
62
-
Every AI agent you use starts with amnesia. But the real pain isn't just forgetting — it's what happens when you **switch agents**.
71
+
Every AI agent you use starts with amnesia. But the real pain isn't just forgetting — it's what happens when you **switch agents** and when you have to **decide which agent to use**.
72
+
73
+
### The cold-start problem
63
74
64
75
You're 40 minutes into a refactor with Claude Code. You've touched six files, picked a migration strategy, mapped out the remaining TODOs. Then you hit a rate limit. Or your terminal crashes. Or you just need Codex for the next part. So you switch — and the new agent has **zero context**. You re-paste file paths, re-explain decisions, re-describe the plan. Half the time the new agent contradicts something you'd already decided.
65
76
66
-
**Engram fixes this.** It's a Personal Memory Kernel — one memory store shared across all your agents. When Claude Code pauses, it saves a session digest. When Codex picks up, it loads that digest and continues where you left off. No re-explanation. No cold starts.
77
+
### The routing problem
67
78
68
-
But Engram isn't just a handoff bus. It models memory the way brains do:
79
+
You have three agents configured: Claude Code for deep reasoning, Codex for fast scaffolding, a custom agent for CI. A bug comes in. Which agent handles it? You pick manually every time. When agents finish, the next task sits idle until you notice. You are the orchestrator — and you shouldn't have to be.
80
+
81
+
**Engram fixes both.** It's a Personal Memory Kernel — one memory store shared across all your agents.
82
+
83
+
**For handoffs**: when Claude Code pauses, it saves a session digest. When Codex picks up, it loads that digest and continues where you left off. No re-explanation. No cold starts.
84
+
85
+
**For orchestration**: agents register their capabilities as memories. When a task arrives, Engram semantically matches it against agent capabilities and auto-routes it to the best available agent. Memory *is* the orchestrator — no separate routing service, no manual assignment, no YAML configs mapping tasks to agents.
69
86
70
87
| Problem | Typical approach | Engram |
71
88
|:--------|:-----------------|:-------|
72
89
|**Switch agents = cold start**| Manual copy-paste | Handoff bus — auto session digests + resume |
90
+
|**Who handles this task?**| You pick manually | Semantic capability matching — auto-route |
91
+
|**Agent at capacity?**| Task sits idle | Load-aware routing with CAS claim/release |
73
92
|**Nobody forgets**| Store everything forever | Ebbinghaus decay — ~45% less storage |
74
93
|**Single retrieval path**| One embedding per memory | 5 retrieval paths per memory (EchoMem) |
|**No consolidation**| Store everything as-is | CLS sleep cycles — episodic to semantic distillation |
77
-
|**Single decay rate**| One exponential curve | Multi-trace Benna-Fusi model (fast/mid/slow) |
78
96
|**No real-time coordination**| Polling or nothing | Active memory signal bus — agents see each other instantly |
79
97
|**Concurrent access**| Single-process locks | sqlite-vec WAL — multiple agents, one DB |
80
98
81
99
---
82
100
83
101
## How It Works
84
102
85
-
Engram has two distinct memory systems — like the brain's conscious and subconscious:
103
+
Engram has three layers — memory, coordination, and communication:
104
+
105
+
### Passive Memory — the long-term store
106
+
107
+
Memories fade via Ebbinghaus decay, get promoted from short-term to long-term through repeated access, and are encoded through multiple retrieval paths (paraphrase, keywords, implications, question-form). Sleep cycles distill episodic conversations into durable semantic facts.
86
108
87
-
**Active Memory** — a real-time signal bus. Agents post ephemeral state ("editing auth.py", "build failing") that other agents see instantly. Signals auto-expire. Important ones get consolidated into long-term storage.
109
+
### Active Memory — the real-time signal bus
88
110
89
-
**Passive Memory** — the long-term store. Memories fade via Ebbinghaus decay, get promoted from short-term to long-term through repeated access, and are encoded through multiple retrieval paths (paraphrase, keywords, implications, question-form). Sleep cycles distill episodic conversations into durable semantic facts.
111
+
Agents post ephemeral state ("editing auth.py", "build failing") that other agents see instantly. Signals auto-expire. Important ones get consolidated into long-term storage.
90
112
91
-
**Handoff** — when an agent pauses (rate limit, crash, tool switch), it saves a session digest: task summary, decisions made, files touched, TODOs remaining. The next agent loads it and continues. If no digest was saved, Engram falls back to parsing the conversation logs automatically.
113
+
### Memory-as-Orchestrator — the coordination layer
114
+
115
+
Agent capabilities are stored as memories: *"claude-code: Advanced coding agent. Expert at Python, TypeScript, debugging."* When a task arrives, Engram runs a semantic search over these capability memories, filters by agent availability and capacity, scores candidates, and assigns the task — all through the same memory infrastructure used for everything else. Coordination events (routed, claimed, released) are themselves stored as memories, creating a searchable audit trail.
116
+
117
+
No new database tables. No separate routing service. The same `Memory.add()` / `Memory.search()` that stores user conversations also stores agent profiles and routes tasks.
118
+
119
+
### Handoff
120
+
121
+
When an agent pauses (rate limit, crash, tool switch), it saves a session digest: task summary, decisions made, files touched, TODOs remaining. The next agent loads it and continues. If no digest was saved, Engram falls back to parsing the conversation logs automatically.
92
122
93
123
<details>
94
124
<summary><b>The memory stack at a glance</b></summary>
@@ -102,6 +132,7 @@ Engram has two distinct memory systems — like the brain's conscious and subcon
102
132
|**CLS Distillation**| Sleep-cycle replay: episodic to semantic fact extraction |
103
133
|**Multi-trace**| Benna-Fusi model — fast/mid/slow decay traces per memory |
104
134
|**Intent routing**| Episodic vs semantic query classification |
0 commit comments