π§ MemEX v0.9.0 β Initial Release
Multi-session continuity for AI systems.
MemEX is a structured memory substrate that represents knowledge as an evolving belief state, with explicit provenance, scoring, and contradiction-aware updates.
This is the first public release.
What MemEX is
Most AI systems treat memory as retrieved text.
MemEX treats memory as structured belief.
Instead of appending and summarizing chat logs, MemEX stores:
- Observations, assertions, hypotheses, and policies
- Provenance chains (what something was derived from)
- Explicit contradictions (not silent overwrites)
- Scores for authority, conviction, and importance
The result is a system that can:
- carry forward state across sessions
- reason about what it knows
- explain why it believes something
Whatβs in 0.9.0
π§ Belief-state memory graph
- Typed
MemoryItemmodel (observation, hypothesis, derivation, etc.) - Provenance via
parentsand support trees - First-class contradiction handling (
CONTRADICTS,SUPERSEDES) - Multi-dimensional scoring (authority, conviction, importance)
- Time decay applied at query time (no mutation of stored state)
π Retrieval as a pipeline
- Filter β score β decay β contradiction handling β diversity β budget
- Scored retrieval with configurable weights
- Smart retrieval with contradiction surfacing and diversity penalties
- Budget-aware context packing
π― Intent & Task graphs
MemEX separates cognition into three layers:
- Memory β what is believed
- Intent β what is wanted
- Task β what is done
Each layer has:
- its own types
- reducer + lifecycle events
- explicit linking via IDs
Together they form a continuous loop:
Memory β Intent β Task β Memory
π Transplant (export / import)
MemEX can export and import self-contained slices of cognitive state:
Memory (belief)
+ Intent (goals)
+ Task (execution history)
= Transferable cognitive state
This enables:
- sub-agent isolation
- parallel reasoning
- safe delegation
- cross-system state transfer
Import is append-only by default, with optional:
- conflict detection
- re-ID with reference rewriting
β±οΈ Timestamp-preserving re-ID
When importing conflicting entities:
- new IDs are generated at
original_timestamp + 1ms(from UUIDv7) - not
Date.now()
This preserves:
- recency ordering
- decay scoring
- temporal semantics
π¦ Event-driven architecture
- Command β reducer β lifecycle events
- Immutable state transitions
- Replayable command logs
- Envelope-based integration with external systems
Cognitive Transfer
MemEX supports transferring cognition between agents:
Agent A β Agent B:
Memory (what is known)
+ Intent (what is being pursued)
+ Task (what has been attempted)
= Continued execution without reset
The receiving agent:
- inherits context
- continues active goals
- avoids previously failed approaches
It does not restart. It continues.
Design Principles
- Structured over textual β memory is typed, not appended text
- Explicit over implicit β contradictions, provenance, and confidence are first-class
- Append-only β no silent overwrites
- Separation of concerns β belief, goals, and execution are distinct
- Minimal core β no storage, UI, or transport included
What this is not
MemEX is not:
- a vector database
- a chat memory wrapper
- an agent framework
It is:
a memory substrate that other systems can build on
Status
0.9.0 is the first public release.
- Core model is stable
- APIs may still evolve
- Intended for experimentation and system integration
Install
npm install @ai2070/memex
Closing
MemEX is an attempt to treat memory as a first-class system, not a side effect of prompting.
If you build on it, feedback is welcome.