Hey folks,
I've been hanging around this community for a bit and figured it was time to actually share something.
I built a memory plugin for OpenClaw called episodic-claw. It's v0.1.1, it has rough edges, and I won't pretend otherwise. But the thing it's trying to solve is real, and the approach is grounded in actual arXiv research rather than vibes.
The problem with most memory plugins
They either clip a sliding window (so you just lose old context), or they do naive RAG (dump everything into a vector store and hope the right chunk floats up).
Neither one really fixes agent amnesia. The agent isn't remembering anything, it's just doing text similarity on whatever you stuffed into a database.
What episodic-claw does instead
It pulls from three papers on episodic memory in language agents:
- Bayesian Surprise scoring (arXiv:2310.08560) detects when a topic actually shifts and seals that chunk as an episode. No fixed schedule, no noise, just real conversation boundaries.
- HNSW vector search (arXiv:2407.09450) means recalled memories are semantically ranked, not keyword matched.
- A D0/D1 memory hierarchy (arXiv:2502.06975) lets raw episodes get distilled into summaries over time, so recall doesn't slow down as memory grows.
In practice: every prompt your agent sees already has the most relevant past episodes prepended, automatically. It'll
remember what it was working on three weeks ago without you touching anything.