I built amp-rs as the reference implementation of Agent Memory Protocol. If AMP is the spec, amp-rs is the working board — clean, opinionated, and ready to run.
What It Does
Three primitives, same as AMP:
- Checkpoints — Save where you left off, restore in seconds
- Lessons — Compound knowledge over time, stop repeating mistakes
- Code Memory — Semantic search across your codebase
Why Rust?
Performance, single-binary deployment, no runtime dependencies. The embedding model (all-MiniLM-L6-v2) runs on CPU via ONNX — no GPU required, no cloud needed.
Graph Module (v2)
Added entity-relationship memory. Lessons and checkpoints create nodes and edges. Confidence decays over time. The graph learns what works and forgets what doesn't.
The Stack
- MCP over stdio
- sqlite-vec for vector search
- notify-rs for file watching
- Single file: amp-rs binary + ~/.amp-rs/amp.db
No API keys. No cloud. Air-gap ready.