Graft: Open-Source Local Memory Tool Helps Coding Agents Retain Past Fixes
Graft is an open-source, local-first memory system designed to preserve knowledge that coding agents generate while solving real tasks, such as bug fixes, decisions, and project-specific constraints. Unlike vector databases, it is not built for bulk document indexing but focuses on retaining and retrieving agent-learned lessons across sessions. The tool runs entirely on-device using a CLI, a local daemon, SQLite storage, and BGE-M3 embeddings via llama.cpp, requiring no external API keys or cloud accounts. It offers three retrieval modes — query, retrieve, and explore — each using different combinations of semantic and lexical search techniques. Currently in active alpha at v0.1.x, Graft supports integrations with tools like Claude Code, Gemini CLI, and ChatGPT, with features such as memory profiles, graph exploration, and an MCP bridge already functional.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in