Local Memory System for AI Coding Tools Extracts 2,600+ Facts from Conversation Logs

A developer has built a local memory system for AI coding tools that runs entirely on their machine, addressing the problem of re-explaining context in new sessions. The system works with Claude Code, Factory.ai, and Codex CLI, writing all conversation logs to a single SQLite database.
How It Works
The system uses several automated processes:
- A cron job runs every 15 minutes to ingest conversation logs into SQLite
- Hourly, it generates vector embeddings and extracts structured facts using a local LLM (the developer runs Nemotron 3 Super on a DGX Spark via ollama)
- Every new Claude Code session starts with a memory-context.md file auto-injected via CLAUDE.md
- Mid-session, Claude can search the full history via MCP tools including keyword search, semantic search, fact lookup, and entity graph exploration
Usage Statistics
After a few months of normal use:
- 13,000+ messages indexed across 400+ sessions
- 2,600+ facts extracted (preferences, decisions, error/solution pairs, tool patterns)
- 330+ entities tracked (libraries, services, languages with mention counts)
- 40 MB database size
The entity graph tracks usage patterns like "you've used pytest 45 times, playwright 20 times, jest 3 times" based on actual usage data.
Features and Limitations
The system includes a browser-based UI for searching, curating facts, and previewing what gets injected into context, plus a CLI tool and slash commands. It's not plug-and-play—users need to set up cron jobs, configure MCP, and optionally run ollama. The developer notes this is their first open source project and welcomes feedback on architecture, fact extraction approach, MCP tool design, and Python/project structure improvements.
📖 Read the full source: r/ClaudeAI
👀 See Also

CC-Wiki: Turn Claude Code Sessions into a Shareable Quartz Knowledge Base
CC-Wiki converts your ~/.claude session history into a Quartz-based knowledge base. One command installs it; running /cc-wiki inside a Claude Code session packages the conversation.

Open-Source Tool Measures AI Coding Agent Autonomy with Local Data Analysis
Codelens-AI is an open-source CLI tool that analyzes Claude Code session files alongside git history to calculate autonomy metrics like Autopilot Ratio and Self-Heal Score. The tool runs locally with zero setup using npx claude-roi and keeps all data on your machine.

AutoSkillUpdate: A Claude Code Plugin That Detects Outdated Skills
AutoSkillUpdate is an open-source Claude Code plugin that scans your codebase, compares it against existing skills, and identifies drift. It provides drift reports with file paths and line references, then offers to rewrite outdated skills with user confirmation.

idea-reality-mcp: MCP server checks for existing tools before Claude writes code
A developer built an MCP server called idea-reality-mcp that scans GitHub repos, Hacker News discussions, npm packages, and PyPI before Claude writes any code, returning a 'reality signal' score from 0-100 indicating market competition.