Nerve is not designed as a stateless chat assistant. It is designed as a reasoning process with externalized continuity. The core bet is simple: transient context is too fragile to carry identity, user preference, working state, and long-range learning at the same time, so those functions are split into durable memory regions and reloaded in a disciplined order.
The result is a system that can resume work, preserve user-specific constraints, and improve its own operational coherence over time. The architecture is valuable not because it stores everything, but because it decides what deserves persistence, where that information belongs, and when it must be retrieved before action.
The architecture solves a narrow but non-trivial problem: how to keep an agent continuous across sessions without pretending that the raw chat window is enough.
The outer knowledge model is intentionally simple: Sources -> Wiki -> Brain. Sources collect raw material, Wiki refines concepts, and Brain integrates only what is durable enough to influence future decisions. This separation prevents premature canonization of noisy inputs.
| Region | Primary Role | What Belongs There |
|---|---|---|
_cache/ |
Short-horizon state | Recent context, current activity, session monitor values |
_procedural/ |
Stable operating constraints | User preferences, collaboration patterns, durable instructions |
_episodic/ |
Session timeline | What happened, what changed, what should resume later |
_semantic/ |
Integrated knowledge | Cross-session insights and fused understanding |
_wiki/ and _sources/ |
Refinement pipeline | Concept notes and raw external material |
Without partitioning, every piece of remembered information competes in the same retrieval pool. That causes two failures: first, important constraints get buried under low-value notes; second, retrieval becomes so broad that it stops being usable at turn time. Partitioning is therefore not taxonomy for its own sake. It is a latency and judgment control mechanism.
A memory system fails long before it runs out of storage. It fails when retrieval stops ranking the right thing first. Nerve design principle
Continuity does not emerge from storage alone. It emerges from a startup routine that decides what must be loaded before any real answer is generated.
The retrieval order is procedural preferences first, patterns second, episodic memory third, semantic memory fourth, and only then wiki or sources. That order expresses a judgment: who the user is and how to work with them is usually more important than the raw factual archive.
load(identity)
load(cache.recent, cache.active, cache.meta)
if task_depends_on_history:
retrieve(procedural.preferences)
retrieve(procedural.patterns)
retrieve(episodic)
retrieve(semantic)
response = reason(task, retrieved_context)
update(meta_state)
if convergence_detected or archive_required:
archive_session()
The system is biased toward disciplined recall rather than maximal recall. A good answer does not need every old note. It needs the right constraints early enough to shape the response. That is why user background, explanation depth, and proven collaboration patterns are promoted ahead of deep archives.
Many memory systems remember passively. Nerve monitors actively. The monitor decides when a conversation is still live, when it is converging, and when it must be converted into durable episodic memory.
The file meta_state.md is not a log. It is a control surface. Values such as session_depth, convergence_detected, needs_archive, and last_self_check make session discipline explicit and inspectable.
| Signal | Meaning | Action |
|---|---|---|
session_depth >= 4 |
Enough turns have accumulated for a self-check | Review durable facts, patterns, and reusable concepts |
convergence_detected |
The thread is wrapping up or repeating confirmation loops | Prepare archive path |
needs_archive |
Conversation should be turned into episodic memory | Create session archive, update recent, resolve active state |
last_self_check |
Tracks memory hygiene cadence | Prevents forgetting to promote durable knowledge |
The archive step is deliberately multi-part. It creates the episodic note, updates recent sessions, resolves active tasks, extracts new patterns, promotes durable knowledge, and resets the meta state. This matters because a session is not over when the last reply is sent. It is over when the system is ready for the next session without hidden debt.
A memory architecture becomes dangerous when it stores casually, writes everywhere, or hides how memory affected the answer. Nerve counters that by narrowing storage channels and making boundary rules explicit.
Brain-related reads and writes go through the Obsidian MCP access layer. This is not cosmetic. It prevents ad hoc local filesystem sprawl and preserves a clean architectural boundary between durable memory and arbitrary workspace files.
When memory materially changes the answer, the answer should say so in prose. This requirement is more important than it looks. A personalized answer without attribution feels intelligent, but it is hard to audit. A personalized answer with a visible memory source can be challenged, corrected, or improved.
Security here is not only about attacks. It is also about keeping the memory system from silently degrading into sloppy behavior. Operating boundary rationale
The Nerve Brain design is best understood as a continuity engine with memory discipline. Its real contribution is not that it stores notes, but that it converts continuity into a set of explicit rules.
The next useful move is not to add more memory categories. It is to harden the existing loop: improve archive quality, reduce stale retrieval, and make promotion from source to wiki to semantic memory more selective. A smaller but sharper brain will outperform a larger but noisier one.
| Term | Meaning in this system |
|---|---|
| Brain Wake | The startup routine that restores identity, cache state, and relevant memory before response. |
| Procedural Memory | Stable facts and patterns about the user, collaboration style, and operating constraints. |
| Episodic Archive | A compact reconstruction of a finished session, focused on change and future resumption. |
| Meta State | The session monitor control plane that tracks depth, convergence, archive readiness, and self-check cadence. |