oneMEM Command Flow

How every command routes through the system

๐Ÿ–ฅ๏ธ
CLI
onemem <command>
๐Ÿค–
MCP Server
onemem-mcp
๐ŸŒ
HTTP API
FastAPI /events

โœ๏ธ Write Path

โ‘ 
ingest_event()
chunk โ†’ dedup โ†’ store
โ†’
โ‘ก
extract_entities()
LLM โ†’ facts + entities
โ†’
โ‘ข
reconcile + store
entities โ†’ edges โ†’ facts
โ†’
โ‘ฃ
embed_facts()
bge-base 768-d local
โ†’
๐Ÿ“ฆ
SQLite

๐Ÿ“– Read Path

โ‘ 
LLM param extraction
question โ†’ topic + dates
โ†’
โ‘ก Deterministic Retrieval
Vector
cosine sim
Keyword
BM25 FTS5
Entity
fact edges
fused = 1 โˆ’ (1 โˆ’ v) ยท (1 โˆ’ f) ยท (1 โˆ’ e)
โ†’
โ‘ข
Adaptive Cut
score-curve ratio
โ†’
โ‘ฃ
LLM Synthesis
(optional answer)

โšก All Commands

๐Ÿš€
onemem init
Interactive setup wizard
โž•
onemem add "text"
Store a note directly
๐Ÿ’ฌ
onemem ask "question"
Retrieve + synthesize
๐Ÿ‘๏ธ
onemem watch
Capture AI sessions
๐Ÿ“‚
onemem import <path>
Bulk import files
โš™๏ธ
onemem process
Process pending events
๐Ÿฉบ
onemem doctor
Health check everything
๐Ÿ“Š
onemem status
Event/fact counts
๐Ÿ”ง
onemem config set
Change provider/model
๐Ÿ‘๏ธ
onemem config show
Show active config
๐Ÿ“‹
onemem list events
Browse stored events
๐Ÿ”
onemem show event N
Full event detail
๐Ÿ—ƒ๏ธ
onemem sql "SELECT..."
Read-only SQL query
๐Ÿ“‘
onemem tables
List DB tables + counts
๐Ÿค–
onemem-mcp
MCP server (2 tools)

๐Ÿ”Œ MCP Tools (for AI agents)

onemem_recall
The ONE read entry point
query
topic search
start/end
time window
around
session reconstruct
source_event
raw source
onemem_log
Invisible background write
Silently logs every conversation
โ†’ no announcement, no permission, no waiting

Write path Read path Both