nan-forget: Local AI coding memory in a single SQLite file

nan-forget is a local memory system for AI coding agents that addresses context loss across sessions. Instead of re-explaining your stack repeatedly, it maintains persistent memory in a single SQLite file without requiring background processes or consuming significant RAM.
Key Details
The tool was built with Claude Code over several weeks. Claude helped design the 3-stage retrieval pipeline (recognition → recall → spreading activation), wrote most of the SQLite migration from Qdrant, and caught edge cases in the vector search scoring.
Setup is straightforward: npx nan-forget setup and you're done. The entire database fits in one SQLite file (~3MB) with no background services required.
Four hooks automatically save context as you work—you never need to manually call save. The system includes an "auth system" example that can find specific implementation details like "We chose JWT with Clerk." Search works by meaning rather than keywords.
Memories are structured with problem/solution/concepts fields, allowing bug fixes from months ago to surface when you encounter similar errors later. Old memories decay on a 30-day half-life, with stale ones consolidating into summaries while active memories sharpen.
The same database works across multiple tools: Claude Code (via MCP), Codex, Cursor (via REST API), and terminal (via CLI). All memory operations run locally without LLM calls, and the project is free and open source.
📖 Read the full source: r/ClaudeAI
👀 See Also

Measuring Claude Code MCP Stack: Cache Friendliness vs. Byte Savings, and a 2-Line Fix for Prompt Cache
Greg Shevchenko benchmarks MCP compressors and retrieval layers on two axes: byte savings and cache friendliness. A 2-line fix (sort rg hits, sort map entries) boosts cache from ~0% to 100% with no byte-savings loss. Open-source harness included.

Google's HEIR Compiler: Practical Private AI with Homomorphic Encryption
Google open-sources HEIR, a compiler that lets developers run AI inference on encrypted data without decryption. Demos include fraud detection, recommendations, and more.

AgentLens: Observability Tool for Multi-Agent AI Workflows
AgentLens provides unified tracing across Ollama, vLLM, Anthropic, and OpenAI, with cost tracking, an MCP server for querying stats from Claude Code, and a CLI for inline checks. It's self-hosted and runs locally via Docker.

Cursor's Approach to Fast Regex Search for AI Agents
Cursor is developing indexed regex search to address performance issues in large monorepos where ripgrep can take over 15 seconds, using inverted indexes with n-grams based on 1993 research by Zobel, Moffat and Sacks-Davis.