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

Markdown Manager: A Simple Markdown Editor for macOS
Markdown Manager is a free, open-source macOS app for managing Markdown files, featuring document conversion and preview capabilities.

Socratic Prompt Generator Built as React Artifact Inside Claude
A developer built a Socratic prompt generator as a React artifact that runs inside Claude, featuring auto-detection of input complexity and three-tier prompt generation with failure mode analysis.

altRAG: Replace Vector DB RAG with 2KB Pointer Files for AI Coding Agents
altRAG is a Python tool that replaces vector database RAG with lightweight pointer files. It scans Markdown/YAML skill files to create a 2KB skeleton file mapping sections to exact line numbers and byte offsets, allowing AI agents to read only needed sections instead of entire files.

Git pre-commit hook prevents AI coding agents from committing with stale documentation
A developer created a Git pre-commit hook that blocks commits when documentation files are outdated, specifically addressing issues with AI coding agents like Claude Code, Cursor, Windsurf, and Copilot. The tool exits with error code 1 to force AI agents to update documentation before proceeding.