Lossless long-term memory for a personal AI: never summarize, keep every line, put a timestamp on everything. - aru-labs/lossless-memory
34 comments
aru-labs6 days ago
Thank you for your questions.
I have posted all the answers in the GitHub FAQ.
Please take a look.
Best regards.
https://github.com/aru-labs/lossless-memory/blob/main/docs/f...
StilesCrisis10 days ago
Is the date really useful? Usually I want the AI to remember rules, like "always do X before committing Y" and a timestamp doesn't change anything there.
CharlieDigital9 days ago
The specific design of this system uses the raw memories and allows rebuilding the operational memory from the raw memory (the LLL "Left Leg Layer").
To do this requires that there is an ordering of which memory came last.
"always do X before committing Y"
"always do X before committing Y except after Z"
Which of these is the current state? Without the date, it is not possible to rebuild the operational state of the rule from the raw records.StilesCrisis9 days ago
When I look at Claude's memory markdown it tends to list dates for significant requests already, so it can untangle this sort of thing. And if it can't it will just ask directly.
jv222229 days ago
Oh cool. I'm working on exactly that here!
StilesCrisis9 days ago
If you can make an agent reliably follow instructions, you've solved alignment completely. So I'd be particularly surprised if you can square that circle as a hobby project!
skinfaxi9 days ago
Am interested but don't want to sign up for discord to try something out.
TimByte9 days ago
A timeline turns contradictory instructions into an orderly sequence of updates. Without it the model just gambles between the old guideline and the new one on every run
aru-labs9 days ago
Thanks for the question. For a fixed rule like that, you're right, a date adds nothing. What the dates are really for is letting the AI live on the same clock as you. A model has no sense of time on its own, so it can't tell whether we last talked five minutes ago or two days ago. My setup injects the current time plus a timestamped index of past conversations into every turn. That way it notices on its own that it's been two days and asks how I've been, and it can answer "what were we working on yesterday?" The hook isn't in the repo yet, but I'm happy to add an example.
0xbadcafebee9 days ago
It may seem useful at first, but eventually you'll hit a wall where this doesn't work, and you have to add another memory technique. Eventually you end up with a complex multi-layered system, because what people want by "memory" is actually 10 different things which all need their own solution.
TimByte9 days ago
As long as the relative time parser is hardcoded for japanese, english sessions are stuck with manual ISO dates. Wiring up dateparser or duckling would take an evening , so leaving that on the roadmap is an odd choice
theresLand9 days ago
Seems like this would break the cache often. That would increase billing rates with certain providers and, for local models, take a while to generate responses, especially with long-running agentic sessions. Interesting idea though.
MikhailTal9 days ago
No? from a quick skim it doesnt look like it goes into the system prompt everytime, you just use search/grep over it. Pretty much most memory approaches relying on a big set of info where agent chooses what to 'recall'. Its like any other tool
messh9 days ago
If there are no summaries then when context is full messages need to get evicted. If doing so one by one then it would indeed destroy the cache. Of course... maybe the implementation evicted 50% of messages at once, I didnt verify in code
TimByte9 days ago
Placing LLL inside the user message right ahead of the new query keeps the common conversation prefix fully intact
Read the full thread on Hacker News →
Related stories
- The Verge · 0 points · 2 days ago
- Can you forget how you feel about Meta?theverge.comThe Verge · 0 points · 9 days ago
- The Verge · 0 points · 4 days ago
- Can John Ternus find Apple’s next big thing?theverge.comThe Verge · 0 points · 9 days ago
- Hacker News · 73 points · 9 days ago
- The Verge · 0 points · 11 days ago