Long-term memory for coding agents with cross-vendor handoffs
ai-memory is a Rust-based long-term memory service for coding agents, addressing context loss when switching between tools like Claude Code, Codex, or Command Code. It uses MCP configuration and lifecycle hooks to automatically capture prompts, tool calls, and session boundaries, then compiles a concise summary and handoff at session end. The wiki is stored as plain Markdown in a git repo—grep-able, Obsidian-friendly, and backup-friendly—with no vector database to maintain. Retrieval blends FTS5, entity-match RRF, and graph-neighbor ranking, with optional embeddings and an optional LLM for consolidation. Best for engineers juggling multiple AI coding agents who want project memory to persist across sessions and vendors.