How leninejunior/engrene-memory-bridge works
Engrene Memory Bridge is a local-first memory service for AI coding agents. Agents or developers resume prior context, search sessions and decisions, record new activity, and consolidate a handoff; the CLI is the primary command dispatcher. Memory is stored locally, with optional semantic indexing. Separate interfaces include shared agent wrappers, an MCP server, and a web dashboard. The README also documents Obsidian sync, Compound Engineering rule sync, skill installation, capture, redaction, and encryption; some of these implementations were not sampled, so their internal wiring is not inferred.
Main entry points: bin.ts CLI dispatcher · store.ts Memory records · server.ts Web dashboard · context.ts Resume context
Components 22
Agent interfaces
- CLI dispatcher
src/cli/bin.ts - Agent wrappers
src/wrappers/common.ts - MCP server
src/mcp/server.ts - Web dashboard
src/ui/server.ts - Dashboard client
src/ui/public/app.js
Memory lifecycle
- Resume context
src/core/context.ts - Hybrid search
src/core/search.ts - Handoff builder
src/core/consolidate.ts - Session capture
src/core/capture.ts - Memory records
src/core/store.ts - Semantic index
src/core/vector.ts
Integrations
- Obsidian sync
src/core/obsidian.ts - CE rule sync
src/core/ce.ts - Skill installer
src/cli/install.ts
Local operations
- Workspace config
src/core/config.ts - Secret redaction
src/core/redaction.ts - Memory encryption
src/core/crypto.ts - Health checks
src/core/doctor.ts
Other components
- Developer
- AI agents
- Obsidian vault
- MCP clients
Connections 32
- Developer → CLI dispatcher: runs commands
- AI agents → Agent wrappers: requests context
- Agent wrappers → CLI dispatcher: dispatches commands
- CLI dispatcher → Resume context: builds resume
- CLI dispatcher → Hybrid search: runs search
- CLI dispatcher → Memory records: records sessions
- CLI dispatcher → Handoff builder: builds handoff
- CLI dispatcher → MCP server: starts server
- CLI dispatcher → Obsidian sync: runs sync
- CLI dispatcher → CE rule sync: syncs rules
- CLI dispatcher → Skill installer: installs skill
- CLI dispatcher → Health checks: checks health
- MCP clients → MCP server: sends tool calls
- MCP server → Resume context: renders resume
- MCP server → Handoff builder: rebuilds handoff
- Web dashboard → Dashboard client: serves interface
- Dashboard client → Web dashboard: calls API
- Web dashboard → Resume context: builds snapshot
- Web dashboard → Memory records: reads and writes
- Web dashboard → Semantic index: indexes records
- Web dashboard → Health checks: checks health
- Resume context → Memory records: reads records
- Hybrid search → Memory records: reads memory
- Hybrid search → Semantic index: queries index
- Handoff builder → Resume context: uses snapshot
- Obsidian vault → Obsidian sync: provides vault notes
- Obsidian sync → Memory records: imports and exports
- Obsidian sync → Semantic index: indexes decisions
- Session capture → Memory records: captures observations
- Workspace config → Memory records: configures workspace
- Secret redaction → Memory records: protects recorded text
- Memory encryption → Memory records: protects memory