r/AIMemory • u/FoxFire17739 • Oct 21 '26
Discussion My agents' memory branches with the code.
Enable HLS to view with audio, or disable this notification
I put my project knowledge in its own repo and made it snapshot code movements. It ties code, tests and whatever proof you have to invariants and their families, right at implementation time. That connects parts of the codebase grep would miss.
So an agent can later ask: what else breaks across the codebase (or beyond) when I touch this symbol? Which designs were tried here before, why were they rejected, and under which conditions can they come back on the table?
Memory curation isn't a one-time effort or an afterthought. It's a byproduct of getting work done. It informs the intended changes at the start and the intent review at the end, with a strict pipeline connecting both ends.
Lots still has to land on main. But I use it daily, for dogfooding and at work, where I keep tabs on several repos that revolve around one product.
Too early to say if the benefits outweigh the obvious costs. Housekeeping first, then a ton of benchmarks.
It may all be for naught. The memories we made along the way. Or it turns out actually useful. Who knows. What's certain is my stubbornness to see it to the end. ^^
Where am at it currently, if you want to poke at it:
https://github.com/Foxfire1st/agents-remember/tree/ar/260928_maintained-invariant-knowledge
8
u/jackalop211 Oct 21 '26
Nice to see someone else converging on claims and evidence instead of flat notes. Recording rejected designs with the conditions under which they'd come back is exactly what flat memory loses. The next step is making that structure compute: when one claim changes, what else should change? A rejected design coming back should shift the tradeoffs downstream automatically. I work on Tortoise, which does this. It's a graph of claims with support/contradiction links to evidence, resolved with a custom algorithm based on prediction markets, so every claim carries a confidence and beliefs propagate through dependencies. Curious how you handle two invariants that contradict each other across branches.
7
u/jonah_omninode Oct 21 '26
We’re working on similar ideas in OmniNode: connecting invariants to contracts, code changes, and verification evidence, then turning failures into checks that prevent recurrence. Happy to share notes if you’re interested.
Here’s a relevant design from our public knowledge base: Drift Control and Contract-Gated PRs.
3
u/Primary_Form4396 Oct 22 '26
Docops aproch literally
1
u/FoxFire17739 Oct 21 '26
This is an example for a curator bringing up an earlier design decision on its own. It highlighted the accepted design and its rejected alternatives for a feature and in the process also discovered a product gap. It brought that to the developer facing "architect" that then helped me understand the situation. The condition was in the end improved but not all the way, so the alternative design remains rejected. But the gap was real. And it found another gap soon after.
1
u/stianhoiland Oct 26 '26
I cannot express my disdain of this hyperinflation of significance and emotionality enough. Chill the fuck down.
2
u/Zero_resonance Oct 23 '26
Cool ❤🔥