NexusMem is designed to solve the problem that coding agents can only read the git log but cannot see which failed commands you actually tried. It writes events that actually happened on the machine—shell commands and their exit codes, git history (including patches for each changed file), project documentation, and optionally assistant conversation records—into a local SQLite database, and returns sorted fragments limited by a token budget on demand. All data stays on disk, with no account, no cloud, and no telemetry.
Main capabilities: shell history is the core, recording the order of command attempts and non-zero exit codes; an optional hook provides the working directory, exit code, and real timestamps, and wraps rather than replaces the existing PowerShell prompt, and can be removed with nexusmem hook remove. The failure-to-fix chain is an optional feature that uses two heuristics—retrying the same command and conversation bridging—to associate failed commands with whatever later resolved them, and returns them immediately after the failed item in query results. Retrieval uses BM25 over FTS5, and if an embedding model is reachable, layers on sqlite-vec vector search, fuses them with RRF by rank position, and then multiplies by three factors: relevance, signal, and recency.
How to use: after running initialization in any git repository, you can query; it provides three MCP tools over stdio—search_memory, sync_project, and get_status—all of which require an explicit projectRoot. Optional session summaries use a local Ollama model (default qwen2.5:3b) and run only during ingestion. The optional GitHub issues/PR source requires the gh CLI and authentication.
Limitations: requires Node 22 or newer and git; Node 20 is not supported; without Ollama, only BM25 is used, which is a fully supported state. Assistant conversation records are off by default and must be explicitly enabled. The GitHub source is off by default and makes live network calls. The installation environment must match the environment in which Claude Code runs, otherwise the hook may silently fail to collect.