engram-rs
Free三层记忆引擎(Buffer→Working→Core),记忆根据重要性自动晋升、衰减和合并。混合语义+关键词召回,单 Rust 二进制文件。
About engram-rs
Engram-rs is a memory engine for AI agents that implements a two-axis memory model: a time axis with three-layer decay/promotion (Buffer, Working, Core) inspired by the Atkinson–Shiffrin memory model, and a space axis with a self-organizing topic tree. It uses LLM-guided quality gates for memory promotion, automatic decay following the Ebbinghaus forgetting curve (activity-driven, not wall-clock), and hybrid semantic+keyword search. The engine is packaged as a single Rust binary (~10 MB) with one SQLite file and zero external dependencies—no Python, Redis, or vector DB required. It provides REST API endpoints to store memories, recall by meaning, and resume full context. Installation is via 'curl | bash'. Search latency is single-digit milliseconds, and RSS memory is ~100 MB.
Key Features
Pros & Cons
- Extremely lightweight: single ~10 MB binary, ~100 MB RSS, no external dependencies
- Intelligent memory lifecycle: automatically promotes important memories and decays noise
- LLM-guided quality gates ensure promotion decisions are context-aware, not rule-based
- Hybrid search combines semantic understanding with keyword precision
- Simple setup: 'curl | bash' installs and runs, no Python or Redis needed
- Fast search latency in single-digit milliseconds
- Zero external services: uses SQLite for storage, runs as a standalone binary
- Requires an LLM for the quality gate, adding external cost and dependency
- Relatively new project (28 stars, small community) — may have limited support and documentation
- Promotion and decay mechanisms may need tuning for specific use cases
- Does not include built-in embedding model; requires external embedding provider configuration during install