{"by":"alexmrv","descendants":45,"id":44969622,"kids":[44970042,44973543,44970643,44970439,44970646,44976171,44970745,44970011,44970308,44971239,44969976,44971010,44969997,44980773,44971269,44970109,44970057,44970801,44970132,44971300,44970168,44970433,44971316,44970670,45015749,44978795,44969992,44970015],"score":198,"text":"Hey HN! I built a proof-of-concept for AI memory using Git instead of vector databases.<p>The insight: Git already solved versioned document management. Why are we building complex vector stores when we could just use markdown files with Git&#x27;s built-in diff&#x2F;blame&#x2F;history?<p>How it works:<p>Memories stored as markdown files in a Git repo\nEach conversation = one commit\ngit diff shows how understanding evolves over time\nBM25 for search (no embeddings needed)\nLLMs generate search queries from conversation context\nExample: Ask &quot;how has my project evolved?&quot; and it uses git diff to show actual changes in understanding, not just similarity scores.<p>This is very much a PoC - rough edges everywhere, not production ready. But it&#x27;s been working surprisingly well for personal use. The entire index for a year of conversations fits in ~100MB RAM with sub-second retrieval.<p>The cool part: You can git checkout to any point in time and see exactly what the AI knew then. Perfect reproducibility, human-readable storage, and you can manually edit memories if needed.<p>GitHub: <a href=\"https:&#x2F;&#x2F;github.com&#x2F;Growth-Kinetics&#x2F;DiffMem\" rel=\"nofollow\">https:&#x2F;&#x2F;github.com&#x2F;Growth-Kinetics&#x2F;DiffMem</a><p>Stack: Python, GitPython, rank-bm25, OpenRouter for LLM orchestration. MIT licensed.<p>Would love feedback on the approach. Is this crazy or clever? What am I missing that will bite me later?","time":1755757211,"title":"Show HN: I replaced vector databases with Git for AI memory (PoC)","type":"story","url":"https://github.com/Growth-Kinetics/DiffMem"}