I use Claude Code heavily, and one thing kept annoying me: every new session felt like starting over.
I'd spend an entire session explaining my codebase — why a weird function exists, how the auth flow works, which API decision was intentional, and which "obvious" change would actually break everything.
Then I'd start a new session and Claude had forgotten all of it.
So I built OmniMemory: a local, Git-aware memory layer for coding agents.
The idea is simple: instead of every session starting with "here's my codebase, figure it out", the agent can start with "here's what we've already learned about this codebase."
OmniMemory stores things like architectural decisions, project context, workflows, gotchas, and other useful information from previous sessions.
The Git integration is the part I care about most. Memory is associated with branches and Git history, so context discovered while working on one branch doesn't have to become permanent global knowledge.
There's also a freshness problem with persistent memory. If the agent remembers that a function behaves a certain way, and I completely rewrite that function three weeks later, that memory shouldn't automatically remain trusted.
OmniMemory can check memories against changes in the codebase and identify potentially stale context. It can also use tree-sitter for symbol-level code analysis instead of treating an entire file as changed whenever one thing is modified.
I also wanted this to stay local. The memory store uses SQLite and doesn't require sending project memory to an external service.
For retrieval, OmniMemory uses BM25F-based ranking to find relevant memories instead of dumping the entire memory history into every prompt.
It integrates with Claude Code through hooks, so memory can be captured and injected into the normal coding workflow. There's also a local UI where you can inspect what the system actually remembers.
I'm building this around a simple idea: coding agents shouldn't just understand our codebase for one session. They should be able to accumulate useful knowledge about it over time.
If you use Claude Code or other coding agents heavily, I'd love to hear how you're currently dealing with the "AI forgot everything from yesterday" problem.
Top comments (0)