How toarchkumar/mnemo works
MNemo is a local-first encrypted memory engine for coding agents. The main workflow is: a developer onboards a repository, an agent saves session memories through the CLI or MCP server, text is embedded and stored in the shared brain, and later sessions recall memories by meaning and keywords. Separate capabilities support keyed history, agent coordination, inspection/export, and cross-language app bindings. The README documents these product flows; several implementation details are unsampled, so the graph omits uncertain internal call relationships.
Main entry points: mod.rs Memory store · mnemo.rs CLI commands · mcp.rs MCP server · onboard.rs Repository onboarding
Components 27
Agent entry points
- CLI commands
mnemo/src/bin/mnemo.rs - Repository onboarding
mnemo/src/bin/mnemo/onboard.rs - Session hooks
mnemo/src/bin/mnemo/hook.rs - MCP server
mnemo/src/mcp.rs - MCP context
mnemo/src/mcp/context.rs
Memory workflows
- Text embedding
mnemo/src/embed.rs - Built-in embedder
mnemo/src/builtin.rs - Memory model
mnemo/src/memory.rs - Session transcripts
mnemo/src/transcript.rs - Agent coordination
mnemo/src/store/coordination.rs - Review findings
mnemo/src/store/findings.rs - Read-only inspection
mnemo/src/bin/mnemo/inspect.rs - Memory export
mnemo/src/bin/mnemo/export.rs
Encrypted engine
- Memory store
mnemo/src/store/mod.rs - Semantic index
mnemo/src/index.rs - File format
mnemo/src/format.rs - Encryption
mnemo/src/crypto.rs - Encrypted pager
mnemo/src/pager.rs - Write-ahead log
mnemo/src/wal.rs - Result cache
mnemo/src/result_cache.rs - Key management
mnemo/src/keys/mod.rs
App integrations
- Python binding
mnemo-python/src/lib.rs - Swift binding
mnemo/bindings/swift/Sources/Mnemo/MnemoStore.swift - Kotlin binding
mnemo/bindings/kotlin/src/main/kotlin/io/github/toarchkumar/mnemo/MnemoStore.kt - Node binding
mnemo/bindings/node/src/lib.rs
Other components
- Developer
- Coding agent
Connections 31
- Developer → CLI commands: runs commands
- Developer → Repository onboarding: sets up
- Repository onboarding → Session hooks: installs
mnemo/src/bin/mnemo/onboard.rs - Repository onboarding → MCP server: wires client
mnemo/src/bin/mnemo/onboard.rs - Coding agent → Session hooks: starts and ends
- Coding agent → MCP server: uses tools
- MCP server → MCP context: serves context
mnemo/src/mcp/context.rs - CLI commands → Memory store: accesses brain
- MCP server → Memory store: reads and writes
- Session hooks → Memory store: saves sessions
- Memory store → Text embedding: embeds text
mnemo/src/embed.rs - Built-in embedder → Text embedding: implements
- Memory store → Memory model: stores memories
mnemo/src/store/mod.rs - Memory store → Semantic index: indexes vectors
mnemo/src/store/mod.rs - Memory store → Session transcripts: saves turns
mnemo/src/store/mod.rs - Memory store → Agent coordination: coordinates agents
mnemo/src/store/mod.rs - Memory store → Review findings: tracks findings
mnemo/src/store/mod.rs - CLI commands → Read-only inspection: opens inspection
mnemo/src/bin/mnemo.rs - Read-only inspection → Memory store: reads brain
- CLI commands → Memory export: exports backup
mnemo/src/bin/mnemo.rs - Memory export → Memory store: reads memories
- Memory store → Encrypted pager: reads and writes pages
mnemo/src/store/mod.rs - Encrypted pager → Encryption: seals pages
mnemo/src/pager.rs - Memory store → File format: uses file layout
mnemo/src/store/mod.rs - Memory store → Write-ahead log: commits through WAL
mnemo/src/store/mod.rs - Memory store → Result cache: caches results
mnemo/src/lib.rs - Key management → Encryption: resolves secrets
mnemo/src/keys/mod.rs - Python binding → Memory store: exposes engine
- Swift binding → Memory store: exposes engine
- Kotlin binding → Memory store: exposes engine
- Node binding → Memory store: exposes engine