Show HN: I replaced vector databases with Git for AI memory (PoC)

Hacker News (score: 51)
Found: August 21, 2025
ID: 978

Description

Other
Show HN: I replaced vector databases with Git for AI memory (PoC) Hey HN! I built a proof-of-concept for AI memory using Git instead of vector databases.

The insight: Git already solved versioned document management. Why are we building complex vector stores when we could just use markdown files with Git's built-in diff/blame/history?

How it works:

Memories stored as markdown files in a Git repo Each conversation = one commit git diff shows how understanding evolves over time BM25 for search (no embeddings needed) LLMs generate search queries from conversation context Example: Ask "how has my project evolved?" and it uses git diff to show actual changes in understanding, not just similarity scores.

This is very much a PoC - rough edges everywhere, not production ready. But it's been working surprisingly well for personal use. The entire index for a year of conversations fits in ~100MB RAM with sub-second retrieval.

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.

GitHub: https://github.com/Growth-Kinetics/DiffMem

Stack: Python, GitPython, rank-bm25, OpenRouter for LLM orchestration. MIT licensed.

Would love feedback on the approach. Is this crazy or clever? What am I missing that will bite me later?

More from Hacker

Tidewave Web: in-browser coding agent for Rails and Phoenix

Tidewave Web: in-browser coding agent for Rails and Phoenix

Show HN: The missing link of a bookstore's tech stack

Show HN: The missing link of a bookstore's tech stack Hi HN!<p>I built Bookhead because I used to work as a bookseller and I wasn&#x27;t happy with the software options when I decided to sell my own collection online (with the hopes of one day growing so I can open my own brick &amp; mortar). So I decided to make my own bookselling app...a classic hacker distraction.<p>Bookhead has two main parts: 1. an inventory management app that allows a bookseller to list their books anywhere they want to sell books (like Squarespace, Biblio, eBay, Shopify (coming soon!), etc) 2. an e-commerce platform with a CMS for selling books and letting a store control their online brand<p>I have a very exciting roadmap that I&#x27;m not ready to fully reveal, but it&#x27;s all based on books. I&#x27;m building a sorta Zapier-like platform for independent booksellers. Everything is so fragmented and disconnected, which makes it hard for booksellers to do their work. I&#x27;m hoping to change that. I have a blog post that lays out my vision here: <a href="https:&#x2F;&#x2F;bookhead.net&#x2F;blog&#x2F;fragmented&#x2F;" rel="nofollow">https:&#x2F;&#x2F;bookhead.net&#x2F;blog&#x2F;fragmented&#x2F;</a><p>The current iteration is like &quot;data engineering as a service for books.&quot; A book is a powerful thing. I&#x27;m hoping to give a bookstore everything they need to sell books online. Inventory, e-commerce, marketing, etc. It&#x27;s a crowded market but I&#x27;ve had fun making the bookselling app that I believe should exist.<p>If you know any booksellers, please let them know about this! I&#x27;m onboarding my first customer right now and the biggest bottleneck is the other bookselling software providers, despite my intention to collaborate instead of compete. It&#x27;s frustrating to wait for two weeks for a point of sale provider to setup an integration. It&#x27;s almost like they don&#x27;t care about their customers. Some providers even require ethernet cables for their software...still partying like it&#x27;s 1999. Perfect for early-adopter booksellers frustrated with current tech who understand the power of automation.<p>I&#x27;m currently looking for funding so I can focus on this full-time. My biggest problem right now is time (aka money) because I have to sell my time to make rent etc, and can&#x27;t focus on this project like I need to. I&#x27;ve gotten good validation from booksellers and other technically savvy folks in the industry (I&#x27;ve heard from two different companies that they&#x27;ve considered building something like this), so I believe I have something valuable. I&#x27;m not interested in funding from somebody who doesn&#x27;t share my love for books or doesn&#x27;t support my mission: help people use technology to promote literature. I believe that literature is one of humanity’s most prized creations, and we can use technology as a tool to keep this gift alive.<p>Please email me at sam@bookhead.net if you know of booksellers who might want to be an early adopter, or know of any funding opportunities that might be a good fit.

No other tools from this source yet.