Lethe: local markdown memory for Claude Code, DuckDB per project, no server

Posted by Technical_Gur_3858@reddit | LocalLLaMA | View on Reddit | 5 comments

Memory store for coding agents that lives entirely in a .lethe/ directory per project. Markdown files for the source of truth, DuckDB for the index, BM25 + dense + cross-encoder rerank for retrieval. Cross-project search via DuckDB ATTACH instead of a central store. Ships as a Claude Code plugin (writes session summaries via hooks, retrieves via a memory-recall skill) and also works as a CLI and Python library.

A learned per-cluster suppression layer on top of the hybrid pipeline adds a statistically significant +0.017 NDCG@10 on LongMemEval's full benchmark. The arXiv draft in the repo includes a second-dataset replication on NFCorpus where the mechanism does not transfer, so it's scoped to long-term conversational memory specifically.

Link in comments.