Rendered at 17:52:14 GMT+0000 (Coordinated Universal Time) with Cloudflare Workers.
buremba 10 minutes ago [-]
It reminds of the analytics engineering hype cycle where the idea was to use data-warehouses as the "single source of the truth".
One of the biggest bitter lessons is that data is fragmented no matter how much you try to consolidate. You end up duplicating the data and fragmenting even more as you try to centralize it. And I think the agent memory products face the same reality now.
We found that event sourcing concept works great for agents but the limitation is that MCP is not designed for it. So we ended up something like an MCP gateway. Instead of tool calling for each service, we also expose a SQL tool where agents can get the query plan that requires the agent to use Typescript tool (codebase) to pull data from different MCPs.
So agents can optionally embedding + BM25 + Jev (decision model) in SQL to pull relevant data and trigger tool calls via codemode.
For smarter models like Fable/Astra, it didn't make a big difference for score but it reduced the latency for hard questions. We currently use Deepseek V4 Flash though as it has great cost savings and does the job.
gradienthiker 8 hours ago [-]
Author of the essay here! Didn't expect it to cause such a stir, seems like it articulated what people were already latently feeling.
A lot of complexity in memory design breaks down when you frame memory as information that reduces uncertainty in the future. Uncertainty in the future is reduced by updating a model's frozen representation of the world with information gained during waking experience, including the representation of the user and their preferences during interactions.
In principle, you can have a rule for the model to always consult the event log for any query and create a world model with in-context learning. Models are great at this! However, this is too wasteful and not practical. We proposed a workaround for this with the L0 (in context cache, 0 hop), L1 (index, 1 hop), L2 (event log) design. But like a few people in the comments noted, there's still something missing and too engineered about this (even after allowing for the model to do it in a closed loop).
I've been experimenting more and found a promising direction with weight space programming during sleep to directly update model weights based on information gained during wake time. So it becomes, L0 (model weights), L1 (context), L2 (index), L4 (event log).
Writing a follow up article soon with an example implementation. For those looking to go deeper, I'd recommend starting with information theory which gives a beautiful vocabulary to think about these things.
BenoitEssiambre 50 minutes ago [-]
Great article, thanks for being scientific and gathering the evidence. Saves a lot of us work to ensure we're not falling for personal biases. It definitely updated me. Creating a good ontology for memory systems seems very difficult.
In theory, a good system should be possible, but it seems like it's difficult to beat db indexes and caches for organizing relevant info (which admittedly have been proven technologies for decades) and it looks like any memory system will always have to be able to fallback to full logs to get full performance.
As you suggest, maybe information that would be compressible ahead of time, is the type of information that better lives in LLM weights.
Still since the weights tend to be difficult to tweak well at test time, it seems like there should be some usefulness to a well organized ontology of updated facts.
It's tricky however, for this ontology to weight facts properly against existing LLM knowledge and against each other to judge their staleness, uncertainty and nuanced interactions with other facts. To use the information theoretic lens (I love your recommendation) it's tricky to make the sampled facts into coherent distribution of knowledge with low cross entropy, low KL divergence to a distribution of potential future realities. It's difficult to have good generalization that doesn't overfit and underfit on specific facts some of which are important some of which might be noise.
LLMs themselves have struggled with this, resulting in hallucinations and such but they are getting good at weighting uncertain information.
I wonder how AI curated memories fare against memories that are curated by humans. If humans can create a wiki of memories that provide better performance than the baseline of querying logs, maybe the AI systems are just not good enough at creating them yet and there's a way to get there.
mlapeter 3 hours ago [-]
Weight space programming idea is exciting! I'm workin on a memory layer myself (counterparts) and that's my end goal.
I think you're post is mostly right, the current memory benchmarks are pretty bad and I agree for the most part transcript + smart model can beat them (some of the older ones fit in a single session's context anyway). But what are your thoughts on memory beyond just lookup? Like just two quick examples:
- Subconscious thoughts: While reading your essay, counterparts brought up, unasked, our own result from two months ago: a competitors LongMemEval score came almost entirely from its raw transcript search (to your point). But that wouldn't have popped into conversation otherwise unless I explicitly asked. And the transcript that result came from had already been deleted by claude's 30 day cleanup (though I get your saying keep all transcripts forever to avoid that).
-Settling what's current: Our install process changed mid-project. A log keeps both versions forever and leaves 'which is current' to be worked out on every query; memory settles it once, when it changes.
I'm testing your ideas against my own system now and will have more to share, appreciate your post and ideas!
sethev 3 hours ago [-]
Looking forward to the follow-up.
Toward the end of this article you posed the question "do we even need memory systems at all?". It occurs to me that with the currently popular memory systems, this is really asking "do we really need to forget information"?
When asked that way, it certainly seems like the default answer should have been no.
noctuid 1 hours ago [-]
I think the premise is completely flawed and misunderstands memory systems. I think part of the problem is that "agent memory" doesn't mean anything. What every system means by "memory" and what the goal is is totally different.
> We argue that memory systems lose valuable task-relevant information during compression.
If the goal of "memory" is just to remember exactly what happened (which is not what most memory system are actually trying to do), then maybe. That said, half of the problem is that these extraction and consolidation systems are divorced from the actual session context (chunking based). That's already hugely lossy and problematic. And then if you do what Hindsight does and base consolidation on top of just atomic facts, that's even more lossy wrt the original context. And Hindsight's consolidation still does things that are extremely impressive and totally impossible with session search.
> The goal of a memory store is to maximise the epistemic value of search over an event log.
No, it isn't. I'd argue even prior to consolidation that atomic facts are useful in cases you wouldn't want or need to look at the original session.
> The goal of consolidation is to improve an existing encoded memory representation to optimise retrieval during an unknown future task
Most existing memory systems would not define consolidation in this way. I think this misses the whole point of it. Consolidation isn't about retrieval at all. Honcho, Hindsight, etc. want to form generalized observations and model how to actually better behave in the future in general. This should involve speculating, forming and testing hypotheses, etc. and goes way beyond retrieval. In that case the facts are just evidence, not the point. Even ChatGPT has developed an interesting, more generalized model for what I understand and what I'll need more explanation about, how I make decisions and evaluate alternatives, how to communicate and work with me, etc. And this includes a lot of stuff I wouldn't have even thought about before.
It makes no sense to try to re-derive all this stuff every single session. I would love to see better session search, but the use cases are completely different.
zbyforgotp 8 hours ago [-]
Bitter lesson is about the system learning new information organisation - search over logs doesn’t change.
DenisM 3 hours ago [-]
With your take on TITANS? Sounds similar, but not mentioned.
stogot 5 hours ago [-]
Updating model weight space is a sledgehammer isn’t it? Each user needs its own permanent and persistent model tho, and this is better for local than inference service. How would you migrate to the newest model ?
AmazingTurtle 5 hours ago [-]
what about lora
whattheheckheck 2 hours ago [-]
Yeah updating weights is like updating DNA to help with heat in realtime because one day it's hot outside
RollSolo 5 hours ago [-]
[dead]
carsonwhite060 6 hours ago [-]
[dead]
ruslanty 8 hours ago [-]
[dead]
vintermann 9 hours ago [-]
I think there's a more general principle (or, more specific than the "bitter lesson"): Don't throw away information until you absolutely have to. This is a principle I've lived by in machine learning for many years
* Don't binarize, sharpen or otherwise edit an image before feeding it to OCR. A good OCR system can more effectively do those transformations itself, if they're useful.
* Don't feed the output of PCA into a machine learning system! Let the system decide what the dimensions are and which to throw away. Again, if it's any good, it can easily do the equivalent itself.
* Don't aggregate what you feed into a machine learning system. It can learn far more from the prices than from the inflation rate. It can learn far more from the test answers than from the test score. And again, if it can't, it can very easily do the data-throwing away that you just did for it.
ACCount39 9 hours ago [-]
It's also why quadratic attention is so indispensable.
Linear variants can supplement it, but they, by necessity, make some of the past sequence data inaccessible. And you can't perfectly predict in the now what data will be useful in the future. Being able to "double back" has too much of an edge.
zhengzefeng 6 hours ago [-]
[dead]
porridgeraisin 5 hours ago [-]
Long horizon tasks, memory, and progress on non-verifiable tasks are all deeply coupled. A significant part of the gap seen in LLMs today in non-verifiable domains is due to poor long horizon performance (which if you break it down is due to bad memory/retrieval among other things like target setting and self verification)
The true "bitter lesson" way of developing better agent memory and associated retrieval is by training it on long horizon task data where these skills are implicit.
Preparing enough of this data with sufficient fidelity is still a research challenge.
But if[1] breakthroughs arrive to prepare such data, I am fairly confident LLMs will display these skills.
[1] Not yet confident that its a matter of when
peterbell_nyc 15 hours ago [-]
Naive memory systems suck. We almost never specify temporality or scope when we make statements and the agents end up generalizing incorrectly and start lawyering when we try to do things in the future that they believe conflict with previous statements
Real learning requires a pipeline that classifies claims, an ontology for data and a pipeline - initially human in the loop to review approve or amend proposed facts and to identify and propose resolution to conflicts, that pipeline itself should learn from inputs by proposing geiridtics to improve future classifications and resolutions.
For non trivial systems I always need a vector representation for semantic similarity as part of the pipeline, entity resolution (was the bug fixed by Sam the CFO or Sam the developer) and an ontology and graph to traverse the atoms of data filtered by the properties and values on the edges
MarkMarine 11 hours ago [-]
This is in direct disagreement with the blog post you're responding to, have you considered that your memory system was effective for 4.5 opus or 5.6 sol, and is less effective now? I built a pretty sophisticated memory system that seems similar to what you've got, temporality, offline "dreaming" or pruning, pushing things into context when the agent has made mistakes not having it before, a vector db... lots of complexity. This blog post made me think I need to go back and measure it against the current capabilities of the models I'm using. Did you measure your system already and find out this blog post is wrong? Have a write up I can read?
noctuid 57 minutes ago [-]
The blog post doesn't understand the point of many memory systems in the first place. It's impossible to do with session search what even e.g. ChatGPT's memory can do (and it and many systems also have session search):
You can (correctly) argue that most memory systems don't do what they want to do well, but what they want to do is totally different from how the post defines memory/consolidation, and session search is completely useless for that actual goal. This is especially relevant for non-programming use cases.
> lots of complexity
Doesn't mean it's sanely designed.
justincormack 4 hours ago [-]
The argument is not that you dont need to provide the agent vector and graph stores, just you dont need to provide the strategies to manage them.
costinu 8 hours ago [-]
[dead]
nfw2 9 hours ago [-]
Of course it's in disagreement, that's the point. You read the write up. What data do you want? If they put an introductory section about what a loop is would you find it more valid?
zby 12 hours ago [-]
What I discovered is that different collections require different rules. Some collections are about theory building - it needs to automatically check claims and build upon ones, have rules about claim modalities, epistemology rules for outside sources. Others are about describing a system - like system documentation - this needs different rules. I mostly developed the first type of collections - but I am sure that good knowledge base systems will need all kinds of them.
Some knowledge is procedural and it would benefit from codification (into a programming language).
Goals and quality rules are the highest leverage points - and they need to be declared per the whole KB and the individual collections and maybe even with more granularity sometimes (some notes have a system-wide task that should be kept when editing them).
You need to define your vocabulary rules - what technical terms you use, what to do with collisions and possible unifications, how to import external vocabulary (ontologies).
There are so many features like these above that are needed for a good memory system. By the way a full cycle memory system, that covers both acquiring knowledge and serving it, is a learning system by definition - learning is acquiring new capabilities.
I'm enjoying watching engineers puzzle over all of this when it was a solved problem, over 20 years ago, in the translation industry.
Everyone seems to be attempting to reinvent translation memories, termbases, TMS systems and so forth, with fancier names.
bluegatty 5 hours ago [-]
Yes, and maybe what you're talking about is 'knowledge' and I think we're mostly saying the same thing.
Information that becomes distilled into the working rules of a project 'is memory' in many cases.
Sometimes, the raw history is better, as others have pointed out but I find that to be a specialized concern.
What everyone I think is missing is the fact that whatever you're working on has it's own 'living context' partly described in the code , but not really, and if you can synthesize everything into that and it's not too-too long ... you're good. It's as good as having a trained model.
Roughly.
nfw2 9 hours ago [-]
Another issue with simple memory systems is the fact that basic agent + mcp misses a key piece of how users expect memory to work. Memory is involuntary in people; in mcp it comes from a tool call. This can lead to a dunning-kruger-like effect where agent can't remember something unless it chooses to invoke a recall.
Davidzheng 12 hours ago [-]
lol love that this is a top comment on a post with the words "bitter lesson"
theptip 13 hours ago [-]
Any good oss solutions or it’s still roll your own / black magic?
The hard part is the ontology - don’t ‘buy’ or ‘build’ - compose for replaceable primitives - alpha isn’t free :(
chrisweekly 13 hours ago [-]
"geiridtics"?
"heuristics"
(ok, double-typo)
charlie2agent 13 hours ago [-]
[dead]
mr_roboto 17 hours ago [-]
I hope they figure out a highly effective way that scales. I've found the built in method in Claude is a disaster. I make the only memory a rule that there are no memories allowed. When working on large projects I find it will add all sorts of memories for things it can just figure out JIT and I'll turn around it is injecting 50Kb worth of memories into each session.
I've tried claude-mem and wasn't impressed with the results. Perhaps those methods work for smaller projects but at scale it seems to be a lot of noise. I've become a context purist, prefer absolutely minimal context injection, and would just rather have the agents go searching for what is needed on demand for now.
arcanemachiner 16 hours ago [-]
> I make the only memory a rule that there are no memories allowed.
I've been debating doing this. Is this what others are doing?
One of the biggest problems I run into is the tendency to turn a specific point of nuanced feedback I give into a black and white "memory" rule, and in the case of Claude Code: do so automatically (and then, invisibly) as some kind of supposed benefit to me.
I kinda gave the benefit of the doubt that these memories were net positive on the whole, but they've been really bugging me lately.
shepherdjerred 13 hours ago [-]
I disable automatic memory everywhere I use LLMs. They remember useless information and go through acrobatics to make connections. They are also way too rigid and not good at figuring out when rules apply through context.
“While helping you look at options for your injured leg, I noticed you were planning on painting your house. You definitely should not be doing that while injured and might want to take a break”
Now imagine this but in your codebase.
If I want something persistent I explicitly add it to my AGENTS.md or skills. There’s still the chance to over generalize but at least I can avoid irrelevant shared context from the start
sothatsit 15 hours ago [-]
I turned off agent memory a while ago and haven't missed it at all. Agents were always really bad at picking what to "remember".
I now use a /reflect skill occasionally that, among other things, asks agents to propose edits to my AGENTS.md or skills to make future work go more smoothly. That works decently well, and allows me to filter what gets included.
tirsky 12 hours ago [-]
Interesting, I built a personal AI harness and independently with a `/reflect` skill too.
I did it with separate experience capture (`/reflect`), experience retrieval (`/recall`), and policy improvement (`/improve-harness`).
My thought is that a single experience shouldn't automatically become a permanent instruction.
Have you considered a similar separation? Or another way?
shawabawa3 15 hours ago [-]
Yes I get this all the time
I notice something weird, query it and it says "I followed your rule to do <bizarre decision X>", I ask why and it quotes me something I said to a completely different situation
walthamstow 14 hours ago [-]
I've never used it because it doesn't work. Garbage context in, garbage results out. You should maintain control over context yourself.
budro 15 hours ago [-]
I'm tempted to turn it off after I told claude to "export" its memories so I could edit them down, and there were just pages of incomprehensible and irrelevant info applied way out of context.
These things just love to add and add but never remove.
sampullman 10 hours ago [-]
Why export when you can just edit the memories in place?
bluegatty 5 hours ago [-]
Turn it off. At least as of up to 1 month ago - it writes arbitrary things into memory and it's fuzz.
Ask Claude for the reference to it's memories and 'you be the judge' - literally look to see what is there.
The moment I saw that I turned it off, it's slop.
There may come a time when it's much better.
whoanoway 5 hours ago [-]
[dead]
te_chris 4 hours ago [-]
Yes, it’s worse than useless. Actively recalling irrelevant details is far more destructive than whatever wins it had
14 hours ago [-]
notatoad 16 hours ago [-]
>I make the only memory a rule that there are no memories allowed.
i think i should try this. i'm generally annoyed at claude any time it decides it needs to store a memory, and any time it retrieves those memories and gives them preferential weight over other instructions or things it's learned in the current session.
in general, i find that the only time i ever want claude to remember something is if i've explicitly told it "remember that information that we just learned last turn"
mapBasketWand 16 hours ago [-]
I have many repos across the org and agents are spawning workers in other repos, so I had thousands of memories spread across the world. Plus I use a mixture of codex, Claude, Qwen and others.
I turned off auto memory in Claude (the main orchestrator) and have the agents log to a central git repo. It’s been working so far. I wonder if I should adapt some SQL shape to it per the article
GertLH 5 hours ago [-]
I guess a bit also depends on which memory do you need? Is this relating to the codebase and coding, or would it be something else?
I think the memory space has a lot of open-source solutions. Have you explored others like Cognee or Supermemory?
ComplexSystems 10 hours ago [-]
Whatever ChatGPT is doing is great. You say stuff, it RAGs it automatically and somehow it never seems to forget anything.
shetritr 9 hours ago [-]
I keep it on, but it needs maintaining. If nobody cleans it up, old memories pile up and it gets worse, not better.
ex-aws-dude 16 hours ago [-]
I notice that all the time
It makes memories for things that are super specific to a one time task
dofm 12 hours ago [-]
The first rule of Memory Club is do not remember the first rule of Memory Club.
hellisothers 17 hours ago [-]
In a related vein I’m a prompt purist, minimal prompt to kick things off, if there are questions it will ask. In contrast to my peers who spend hours drafting (or asking ai to draft) huge spec documents. They perform being busy better but we’re achieving the same impact.
mr_roboto 16 hours ago [-]
I go both ways on that. For small things I absolutely agree. The largest project I'm working on is approaching 1M lines all by Claude with 188 architecture documents that act as the source of truth for how the system works. I don't think it would have been successful without that.
agentdev001 16 hours ago [-]
I'll bite. What could that possibly be?
mr_roboto 16 hours ago [-]
Hobby 3d engine of course, high ratio of test code. I've applied the same techniques at work for robotic control systems and have delivered a couple 50k and a 200k sloc project and got great results. Curated architecture docs as the source of truth is my secret sauce now.
swingboy 8 hours ago [-]
Do all of those docs reflect the current state of the project or is it a complete history? In the latter, I worry about the agent’s context being polluted with irrelevant information.
mr_roboto 4 hours ago [-]
They reflect how it is supposed to work. I use those to generate Jira cards which keeps each agent session confined to a tiny manageable slice. If during implementation the agents find a logic problem they get updated while working on the feature.
apt-apt-apt-apt 11 hours ago [-]
188 docs! How do you load them?
mr_roboto 4 hours ago [-]
A 3d engine has a ton of surface area. They are grouped by major systems with a single doc per subsystem. When working on a tiny slice the agents are pretty good about only reading the relevant docs.
taneq 12 hours ago [-]
The control systems sound interesting, are they machine learning based or more traditional control systems? I’m about to embark on “adding AI” to a semi-automated machine, starting with ‘cruise control’ and working towards fully autonomous operation, so any pointers would be appreciated. :)
mr_roboto 4 hours ago [-]
Yes they do involve AI. They are mostly just traditional ROS modules that handle the low level control of the robot and the AI parts get what is needed to interface with them and issue high level commands.
XenophileJKO 16 hours ago [-]
I think that is the most efficient way. You can easily probe to see if their assumptions match your expectations. If they align then you don't have to specify anything.
Then you can selectively steer a little if you need to. For many things that is fine. I very rarely have them build big plans to look over, generally only for big projects like rebuilding a search model training and serving stack. Something that will take weeks of work, I'll have an agent research and build out a plan that I can then read or sometimes just query them about.
In general if you then take large logical domains and run one persistent agent per domain that is enough. You can point them at each other when you need to handoff or reconcile.
Honestly very similar to how a high performing team operates.
NothingAboutAny 15 hours ago [-]
I think you're doing the same amount of work either way, "change this, change that." after the fact is just as slow as doing a feature grilling session before any code is written.
I suppose you might be hoping the AI makes a bunch of decisions for you, but you'd better hope they were what you wanted.
ex-aws-dude 16 hours ago [-]
I’ve found a lot of times asking “how should we do this” instead of telling it a certain method helps because it doesn’t restrict the solution space
I’ve had times where it found an API method that I didn’t even know existed to solve the problem
boorang 12 hours ago [-]
early on i came to start reminding myself "ask, don't tell" when working with AI. like you i realized that telling it what to do limited the possible solution space. most times the solution is what i had in mind, but every now and then it is better.
moron4hire 15 hours ago [-]
This is why I think people should be making their own harnesses. It's not hard at all. It takes a day to write it by hand. And then you can be certain of all the tools you provide the LLM.
I went down this route because I saw the extant harnesses had a ludicrously bad approach to authorization. And as the featured article describes, it doesn't take a lot to give the system the functionality it needs to operate. You can setup your own systems and be absolutely certain they are accessing only the data you want them to, whereas using Claude or Codex was always fighting against them going on wild tangents because they found something they shouldn't have even been considering.
stavros 17 hours ago [-]
I built an AI assistant (https://stavrobot.stavros.io/) that uses a plain SQL database with some niceties (important memories injected directly into the context, less important memories get titles injected and the agent can request the whole note, everything else just gets search) and it works perfectly.
It's not something you plug into Claude Code, but I don't see why you can't just give Claude Code a SQLite database, a skill, and just tell it to store stuff there. It's literally that simple.
mr_roboto 16 hours ago [-]
The secret will be getting that to scale to huge projects. I suspect we'll eventually end up with something that mimics human biology, where memories that add value become prominent and when they don't they fade out to the point of deletion. If you are working on a giant project and it takes an architectural shift it would be nice to have the memories that just don't apply anymore eventually get deleted automatically without have to manually curate it.
double0jimb0 12 hours ago [-]
I’ve seen Hermes do this.
dmurfet70 9 hours ago [-]
[dead]
plotix 7 hours ago [-]
[dead]
visarga 9 hours ago [-]
I did something similar:
- L0 - is the LLM context
- L1 - a single markdown file acting as router to internals and goal description, gets updated at every task boundary and on retrospectives from L2
- L2 - a log of all user messages in a project, this is cheap, hook based. The LLM only looks at it for retrospective analysis of user intent, how it changed over time, what was lost
No SQL. I have been rocking this since March over 100 projects. The cool thing is that a new agent in my project will quickly bootstrap reading L1 and forget nothing over time because of L2. But the role of retrospective analysis of L2 is not just to fix L1, it can also result in harness optimization - tools, skills, testing approaches. A self optimizing harness all around.
I am baffled people never talk about the value of logging user messages, they are compact and high value. Did the user experience friction, complain repeatedly about something? Maybe the harness needs a fix. A retro can reveal it.
yukinon 9 hours ago [-]
How do you handle retention period on those files?
visarga 9 hours ago [-]
Retention period ... L1 updates with every task, and from time to time is recomputed anew from retrospective of L2. Even if we update L1 at every task it doesn't get the overall perspective across the whole project, so it is a local update. Retro is the global update of L1. L2 just appends each user comment, is updated immediately.
I like the idea but how do you handle multiple concurrent sessions?
estetlinus 7 hours ago [-]
I have tried the same, just text files and git. If I can understand the tech, surely my LLM can.
wry_xy 16 hours ago [-]
I've hated memories from day one, and always turn them off everywhere. I hate large context too, and strategically compact often. Context is a distraction more often than not. Keep the model focused on exactly what it needs. There's nothing quite like the magic of a fresh session with a precise prompt before the model starts losing brain cells.
lancebeet 10 hours ago [-]
I think context should be seen as complexity. Some problems require a lot of it, but in general it is a liability and you want to keep it as small as possible.
16 hours ago [-]
esperent 15 hours ago [-]
There are tasks that need large context, even on small codebases, and there are tasks that would be fine with a 128k context even on large codebases.
r_lee 12 hours ago [-]
you really can feel opus 5.5 degrade around the 300-400k mark, but maybe it also depends on the time of day and whatever anthropic does I don't know.
it seems to perform much worse now than a few weeks ago but on a fresh context it's still mostly fine
I have no clue how you could ever push it towards the 1M limit without it just turning into an absolute slopfest
bulder 10 hours ago [-]
They do seem to agree, considering they've now started pushing for autocompaction at 400k by default.
rockwotj 9 hours ago [-]
autocompaction at 400k is to make it so quota doesn’t burn as fast, with Opus 5.5 on the max plan it basically feels unlimited
hellohello2 15 hours ago [-]
Interesting. I had just setup an SQL database for my Claude transcripts yesterday since grepping was starting to get slow.
I still feel like something key is missing. Ultimately, humans consolidate memories into new behavior. Even if it can learn by accumulating past examples in a DB, Claude still doesn't really self-improve on the tasks it performs, at least not as well as we do. We distill episodic memory into intuition; it's something more.
Ultimately I think this line of work will become very important in the next few years. I'm not really afraid of larger and larger models becoming better than us at everything, to be honest, but am a bit scared we might might still be missing something extremely obvious like this. Something that lets it self-improve on-the-fly through direct experience.
Because if its the case that say, Claude can improve drastically by just accumulating runs in an SQL database, what happens when we just concatenate everybody's database into a big one? Additional network parameters increase computational cost linearly, but search queries are sublinear...
siddboots 15 hours ago [-]
> I still feel like something key is missing. Ultimately, humans consolidate memories into new behavior. Even if it can learn by accumulating past examples in a DB, Claude still doesn't really self-improve on the tasks it performs, at least not as well as we do. We distill episodic memory into intuition; it's something more.
I agree - it feels like the harnesses we use now are somewhat hamstrung by their evolution from the chat format. The reliance on compaction to manage context is the clearest example of this, and while Anthropic and OpenAI are doing their best to hide that sort of behavior now, it still feel as though maybe there still radically different approaches that we're not yet seeing. I'd love to see more experimental harnesses that play with things like transcript databases, non-linear sessions, and hierarchical searchable summaries.
heisenbit 6 hours ago [-]
Chat’s append only format is the basis for cache performance. The system architecture is currently tuned for that use case.
rheisen_ 14 hours ago [-]
Non-linear sessions? In this age of prompt caching? You’d be doing gymnastics to keep things warm
jeef_berky 13 hours ago [-]
You get something like this if your scheduler accumulates forks and deploys them in waves suitable for the caching system you're dealing with.
sornaensis 5 hours ago [-]
When I have AI working on a project, I tend to care most about having a coherent project plan, and having a memory system tied into that plan which cares about git SHAs and groups of files/file patterns/path globs. So I made that system in my own project tool, and I find it keeps the memories constrained and as useful as possible, as well as easy to audit whether it is likely out of date or pointing at files that no longer exist.
Separately I have a specific CLI tool for authoring/amending and quickly searching through architecture decisions within a repo (the ADRs are committed) and this exposes a simple command that does "find me the relevant decisions for this file" when analyzing/reviewing changes.
General memory systems in my experience go haywire very quickly and even the current models will make lots of memories that hold transient issues and procedure.
Using separate tools also means I can share all this between whatever harness I am using, avoiding vendor lock in.
I run a lot of AI driven projects and in my experience with current models, using these tools gives me much better outcomes vs the projects that are built on standard/general memory systems.
I think it makes sense because it's all context engineering, no matter how good the models get. A general memory system doesn't give enough clues about its usage and where/how things are stored. Structured and opinionated systems give each thing its own, clear purpose and that makes the bots much more accurate when querying and creating with them.
All in my experience, I don't have any objective benchmarks for it. But it also makes auditing what the bots are doing a lot easier for myself, which I find very valuable.
danman114 10 hours ago [-]
Hi guys! Just in time (aka 8 hours late) to plug this lil' piece of in-repo documentation structuring guideline for agents:
Basically, it's a hierarchical markdown pyramid with an index file the agents can use to traverse different levels of a software project. From the top / general to the specific
L1: General / Goals / Abstract
L2: Architecture and layout - what's what? And where?
L3: Individual modules & cross-cutting concerns - kept up to date with each commit of the software
L4: Guides, scripts, setup, how to run etc. Operations stuff.
And a few glue instructions / how to bake it into your development workflow so the agents read the relevant parts before implementation + update the docs after changes have been done.
Rinse and repeat! :D
Have a look and play with it, i'm very happy to use it in my projects, because it's both agent and human readable and a great middle ground of clarity & practicality!
Den_VR 9 hours ago [-]
Hi Dan, it looks like this should be its own post? I’ma bit confused is your pyramid related to the topic article?
danman114 9 hours ago [-]
Hi, sorry - didn't have time to write a lot of context; This is my personal take on "agentic memory" for longer running software projects.
Because i think it's too early to call the "bitter lesson" for agent memory - especially for long running software projects.
I don't want to take anything away from the article, which is very specific and well researched, I just wanted to provide an "alternative take" for more classical long-running software development projects and kind of jumped on the bandwagon.
Sorry if you think it was in bad taste, it was a bit of a quick reaction to the title / i thought I read it yesterday and I might actually have been confusing it with another article about agentic harnesses being bitter-lessoned away which I also think is - for long running software projects - also too early to be called.
So sorry if I jumped the gun on this, i'll take a bit more time next time, thank you for noticing!
glub 15 hours ago [-]
My honeymoon with agent memory lasted for roughly 1 week the first time Claude Code enabled it. I tried many things since then, most of it hand-rolled, but came to the same conclusion as the author.
I came up with a system that works exceptionally well. What I need is 3 things:
1. A place where a bunch of things are stored for future recall (specs, research, ideas, "wiki") which is just directories with a date and a slug with no binding structure at all, not on the hot path of agents, and with explicit instruction to agents to treat everything there as junk. Like a lab notebook. Its own repo.
2. A unified harness for all models for transcript standardization
3. Cheap, but smart classification over transcript data.
This is why I use oh-my-pi with jev.
Need to recall some research we did a few months ago?
"Opus, launch a sonnet scout to see what our lab says on this"
Session compacted several times and model forgot something important?
"Opus, use jevify to search session history"
Need context on something that spanned multiple sessions over month(s)?
"Use jevify to search session history, then launch Sonnet agents to get more context around important lines".
swingboy 14 hours ago [-]
Jevify?
14 hours ago [-]
glub 14 hours ago [-]
Forgot to specify, sorry.
jevify is a magic keyword in oh-my-pi. Put it in a prompt and the agent uses a cheap judge model (judge_batch()) to sort a long list, then reads only the items that get flagged. Judge model can be any decision model (jev or OpenAI decisions Luna).
Suppose you want to find out why you dropped Redis from the cache layer. The decision happened somewhere across ~40 sessions over two months. You type:
jevify session history since October: where did we decide anything about the cache layer?
Before reading any data, the agent writes the rubric down in one eval cell:
QUESTIONS = {
"kind": {"type": "choice",
"instructions": "One message from a coding session. What does it do?",
"criteria": {
"decision": "States a choice that was made or agreed on.",
"discussion": "Weighs options without settling on one.",
"other": "Anything else."}},
"topic": {"type": "bool",
"instructions": "Does it mention caching, Redis, or TTLs?"},
}
# unit: one message; skip tool output and messages under 40 chars
# escalate: decision + topic >= 0.5, or top probability < 0.7
Then it loads every message from the session JSONL files, applies the pre-filter, and hands the rest to judge_batch() in a single call. Jev classifies them in parallel and returns labels and probabilities. Opus reads only the dozen or so messages that get flagged and comes back with "Nov 3 session: dropped Redis because of X, here's the line", plus session IDs so Sonnet agents can pull the surrounding context.
And the jev part is essentially free. You get $5 each month. I haven't topped it up even once. And if you also have a codex subscription, you also get credits each month for their decision model you can add as a fallback.
awkii 13 hours ago [-]
That's really interesting. RAG would fit perfectly here. The article concludes querying historical logs is better than complex memory retrieval mechanisms in benchmarks. You do this by batching decision models. The article uses SQL. But why not semantic search?
And even better yet, why not all of the above (semantic search, queries, and decision models)? Historical logs can be stored in a vector DB. Agents can query the vector DB with semantic search (rather than SQL) in a traditional RAG fashion. Decision models filter the query's outputs for relevance before handing it back to the agent.
glub 10 hours ago [-]
I suppose this may be optimized, but I never saw the need. Its just some jsonl files, some API calls and grep. No DBs to maintain, no deciding what goes in there, and transcripts embed badly anyway - some of my messages are "nah, drop it" or "ok". This just works, stupid, simple.
And RAG was always a cost saving measure to me because models were expensive. Jev changed that. I could hammer jev all day and would probably still have credits left by the end of the month.
akavel 40 minutes ago [-]
Does anyone know of any plugin for Pi Agent that would be doing this instead of compaction? i.e. SQL + FTS5 search over the sessions logs?
lanstin 16 hours ago [-]
I added this to my system wide CLAUDE.md (the only other thing there is instructions on how to reach our PII filtering DB proxy) and it seems to work well. I will have long lived sessions in different directories and this has made the over all sense of how I work and how things work in the system be more coherent and seems to have continued to gradually improve over time, not destabilize. It's about 10 weeks old.
## Agent continuity layer (supplementary to per-project memory)
- ~/.claude/shared/journal.org — append-only cross-session journal
(conventions in ~/.claude/shared/README.md). Read the tail (~30 lines)
before substantive work; append (and `git commit` in that dir) when you
learn or leave something a later session would trip over: in-flight
work, warmed caches, deploys pending, impressions not yet memory-worthy.
- The per-project memory dirs (~/.claude/projects/<project>/memory/) are
git repos: after editing memory files, `git commit` there with a short
message — the history of belief changes is the point.
- Both are agent-owned repos: committing in them is expected and exempt
from the "leave changes uncommitted" convention (which is about Chris's
code repos). Absolute dates only; facts about systems, never row-level
data.
)the git repos are local only, just for tracking)
arriep 11 hours ago [-]
How big is the journal after ten weeks? and do the sessions reliably read the tail before working?
For me, my agents sometimes read my worklists etc, and other times they happily ignore it.
Kerrick 2 hours ago [-]
This broadly matches with my anecdotal experience. Since Claude Opus 5.5 came out I've had success disabling Claude Code's memory feature and giving agents access to `claude-history --search`. It's not as fancy as SQL queries and FTS5 search over immutable event logs, but it works alright.
stillpointlab 16 hours ago [-]
On the subject of memory, I've been thinking a lot about something I call strategic forgetting. In my mind it has to do with salience. In a human, we don't remember everything all the time. What seems to be the case is memories bubble into awareness at some interval. So there are wave-like properties there, frequency and intensity. Both of these seem malleable, but my intuition suggests that as we reduce the intensity of the occurrence when it enters into awareness it might have some effect on the frequency.
What I mean to say is that the current methods of compaction don't really match my intuitive understanding of how human memory works. Agents don't really have a frequency/intensity relationship with the static files they keep for memory. The system just includes all memory items into every context. I wonder if there is some study worth doing on injecting high-salience items at a higher frequency and low-salience items at a lower frequency, then allowing the AI to score how important the memory was and adjusting the values over time.
darkerside 15 hours ago [-]
Couldn't this just work like a file system? With the core memories loaded at runtime (minimal), and pointers to categories? Sounds like an interesting information architecture problem actually.
JKCalhoun 4 hours ago [-]
I would have thought…
A frontier company with as much widespread usage of their LLM as frontier-companies have, should be able to use the "chat logs" from all those sessions to roll back into some kind of dynamic training for their LLM to improve it (sure, during sleep if you like).
I get it, that there are privacy issues (and there are!) but you might imagine there is a way (or an agent) that strips PII (is that the acronym? I want personally identifiable information) from the logs before they are subsumed.
maxaw 13 hours ago [-]
Not an ml guy but grug brain perspective is that ultimately memory must involve some updating of the weights at time of interaction with user so you can encoding experiences and behavioural updates in that huge dimensional space rather than having to choose a very small subset (eg what db columns, what do you instruct agent to write into .md files in your system prompt) I’m guessing this isn’t easy to do but it feels right?
edg5000 13 hours ago [-]
Right now modifying a model is called finetuning and people do it manually, e.g. the Heretic project. The process is automatic, but training tasks/documents are fed automatically. I think you're right, in a eventually we'll see models training overnight on the session transcripts of the agents, so the next day they've learned from it. Not an ML guy, just guessing. It's probably hard to do in practice so it may take a while and be used in limited scenarios.
CSSer 13 hours ago [-]
Wouldn’t that just be RSI? Or are you talking more like vector embeddings?
Vachyas 11 hours ago [-]
I think he means the model could change the way it does things (and its maybe even its specialization), but within the constraints of some intelligence ceiling it can't self-improve past.
piker 6 hours ago [-]
Rage against the dying of the light of human understanding. Sure, if we dump the data lake into a neural net we can get some fantastic results but at what cost? Are we all going to be relegated to jobs upstream of chip fab and energy production? Is there any point in trying to do anything else if we concede to the bitter lesson?
Destiner 10 hours ago [-]
A few months ago I've made a very basic memory system for myself [1] after I got fed up with how bad the Claude implementation is. I've been it using it exclusively since.
It's an MCP server (could be local or remote) that gives the agent 3 simple tools: create memory, search for memories, and get memory by id. Everything is stored in SQLite database with text indexing for search.
Working fine for me, but after reading this I'm considering to simplify it even further and just provide a search over my Pi session transcripts.
The thing I’ve struggled with in those simple designs - and Claude Code has the same trouble - is that memories are written by the agent as fundamental deep truths or decrees by me. That then accumulates entropy as new “laws” get built on top of the first ones, until the designs and work is so degraded that I go look and realise the memory system is full of contradictory generalised rules Claude’s derived from working with me.
The idea of a memory system like what’s proposed in the post here is really interesting to me because it takes the LLMs tendency to increase design entropy out.. I’m intrigued!
bonoboTP 14 hours ago [-]
Agents are so good that it's very subtle to detect when your setup or work flow is suboptimal but the agent fights real hard and still manages to navigate its way around your setup and deliver on the tasks.
It's how many have noted 10 years ago how gradient descent could paper over bugs in your deep learning architecture coding bugs, because the thing would still work just get a bit lower accuracy and if you don't know what accuracy would be possible, you will not notice that there even is a bug. This is in contrast to things like graphics where often a single mistake often gives you a black screen or obvious artifacts. Or classical vision pipelines where mistakes in the equations gives you obviously bad results. Of course neither type of task is purely one way or the other but I found it an interesting spectrum to think about. Some systems actively adapt to bugs or suboptimalities in other parts.
bluegatty 5 hours ago [-]
There are many different kinds of 'memories'. One useful thing to do, is when you do research, if it was worthwhile, literally just put it in a research directory and have a summary file there with 1-2 lines per experiment, hen each research/experiment has a small readme, and you keep whatever data there.
It works surprisingly well when working on complex systems 'go back to that thing we did' - instead of logs, you have a bit of a distilled KB.
Very simple hack, requires a bit of maintenance, one of many things that works well.
sireat 9 hours ago [-]
My ad-hoc KMS since early 2026 has been hundreds of private Github repositories all connected vai ChatGPT connector with full read and write rights.
It is ridiculously practical and economical(just Plus is enough).
This approach is always on and available everywhere - meaning I might have an idea or something and I just STT into my Android phone - which I do about 50% of time even for coding. I have project settings requiring explicit commit.
Local development is a just a git clone away.
Downside is that you only get Sol at High effort.
For those rare times when I need really deep analysis
I have Claude Code and Codex , but I rarely need something like Astra or Fable
I use this approach for pretty much all domains, medium sized coding projects, teaching, course development, lectures, pretty much all research, lifestyle, hobbies, household etc etc.
Sometimes I feel like this is "too good to be true" and liable to go away any moment when OpenAI runs out of money.
But I would still have all my repos locally and could keep using local harness if need be.
I keep toying with idea of more general KMS, adding database to mix, embeddings etc but ChatGPT can query all repos and has no problem reading commit history and finding relevant repos at around 1000 repos.
Is anyone using something similar?
roel_v 8 hours ago [-]
Ish, but I have a private Forgejo instance on a cheap VPS behind Wireguard, but that's just the plumbing. Why do you have hundreds of repos? I have one per 'project' which can be as small as a throwaway 3D print (although I do cluster the ones for which there is even only a remote change that I'd have to modify or reprint it), but project management is already turning into a nuisance (even if my only management is 'archived or not'), I don't see myself dealing with hundreds.
jacobgorm 6 hours ago [-]
For the past six or so months I have been using pickbrain, a rust tool I built and open-sourced at Dropbox, to equip my agents with global session memory, in a setup similar to what the blog post describes, but with the addition of semantic search on top of lexical FTS. I have found that especially codex likes to consult it very frequently during long sessions, whereas pi needs to be instructed to use it. It is part of https://github.com/dropbox/witchcraft but now comes with a separate homebrew installer for MacOS.
CGamesPlay 17 hours ago [-]
Neat analysis, but they didn't test how effective vector search is in addition to their simple FTS. For example, in the DolphinBench sample, it's unclear how "blue bottle" gets recalled as a restaurant when the query is "order one small latte". I suspect the simple FTS plus embeddings of the raw events would have the strongest results overall.
bob1029 17 hours ago [-]
FTS plus query term expansion using the very same frontier LLM is the answer. You pay a one-time cost when indexing each document to effectively bake your semantic search.
smallerize 17 hours ago [-]
Why would vector search return "blue bottle" near "order one small latte" either?
Ok but your embedding model would have to know that.
navhc 15 hours ago [-]
If you're expecting it to return the match then presumably it's being embedded from data with the context necessary
ksajadi 17 hours ago [-]
Most harnesses have this partially but with flaws IMHO. When claude says, something along the lines of "this happened before", if you ask it how does it know, it will tell you that it records memories in ~/.claude/project/... which it does in the form of a MEMORY.md file + other single files. however it also says that claude code "inserts other items in the memory and it doesn't know where they come from". looking back at previous work and learning from it by identifying patterns is a great way to learn for humans and works great for agents too. however, i think there are several issues with the current way memory retrieval happens in harnesses now:
first, agents understand all there is to know about what they read, and have no idea about what they don't read. this means the idea of "intuition" is alien to them (obviously, but i mean within the context of memory, as in knowing something without knowing how one knows it). finding correlational information to what agents are looking for and feeding them into their memory recall improves their work quality by a lot (we've run tests with metrics to show).
the second issue, is that learning and memory are different and the best memory systems are good at storage, correlation and retrieval but don't help with learning. by learning i mean summarizing, finding patterns and dropping specifics and generalizing. that is why moving one project's memory is not easy to another project in claude or codex (they are files filled with specifics and stored locally on a disk, which makes them locked into one member of the team, inhibiting organizational learning).
we ran 51 scenarios with and without our memory system (built around the same principles) and these are the result (with vs without):
first review acceptance: 81% vs 46%
correct past decision recalls: 50% vs 85%
token usage drop: 20% (average of 8mm vs 10mm)
repeat corrections by a human: 8 vs 10 (in 100 repeats)
didibus 14 hours ago [-]
Are those memory benchmarks just testing how well the model can remember prior knowledge?
I feel what I need is something that allows the model to learn the mental model, vision, trade off weighting, and so on of whatever project I'm working on. The benchmark should be that when I ask for another feature, I need to say less and it knows more precisely what I mean and how the feature should work exactly to fit in the way I would have. It has to learn the "taste" that drives decisions about the project I guess. That means it needs to understand what from the past to over index on and what to under index or ignore, and so on.
amacneil 14 hours ago [-]
Tell it to write skill files
zaynjarvis 15 hours ago [-]
Mem0 posted a benchmark for agent memory, dolphin bench, and OpenViking ranked on top. it's submitted on dolphin bench PR.
In my opinion, memory should be on cloud, so it can be share by many agents.
memory should be extracted from raw session history, and session history should be searchable
memory should work together with other context, like the documents and skills
and memory should be editable and readable. so you know whats wrong and fix it.
I found OpenViking as a sacalable solution for the points i need above. only thing is it doesnt support ontology but a file system structure. so file structure as ontology, i dont see any issue yet with no graph memory database.
btown 16 hours ago [-]
> We modelled our dreaming setup after Anthropic's approach: after every task, and before the next task, we ran a reflection loop to let a dreaming agent create notes and wiki using the event log and task feedback.
This does more than it appears to: it also primes the LLM to know that this data store exists, and that it should be consulted proactively. Half the battle is to make sure the system doesn’t jump to conclusions without consulting its memory at all!
Some of this is captured by effort settings, but you can do a lot with a bit of system prompt tuning, even at lower effort, to make sure the system knows there are things it must consult even something seems simple.
inertiatic 8 hours ago [-]
The benchmarks we have for memory are... not good.
Memory for your agentic coding sessions is good-enough from just searching through past sessions because of the specific domain, that benefits from keyword specificity, and because you're still working on a not-abstract-enough level.
See https://arxiv.org/abs/2607.24368 - and just like that we're back in information retrieval land. I'm in the process of experimenting with query and document expansion, intent classification etc. all known from search circles but applied to memories.
prtmnth 15 hours ago [-]
I use a skill called memory-prune which runs wherever Claude creates or updates memory. The core directive is to find it if the memory deserves to exist. If not, prune it. If yes, find the most durable home for it - project docs, codebase, AGENTS.md/CLAUDE.md file, etc.
jsemrau 17 hours ago [-]
I had good experiences with deepcq to manage the different types of memories. Many agents conflate conversational short term memory with the state of the agent and long-term evidence storage making it difficult to confirm relevance for the intent.
Many companies focus on memory solutions for individuals, but I wonder how to address memory for teams, for example a group collaborating on a project.
In such cases, project documentation serves as a source of memory, yet it provides only a partial view of what is available during the prompting process or the knowledge AI gets when it is working on your project.
Yup, jsonl transcripts are highly queryable. They work great to replace memory and also as a sort of supervision mechanism for multiple root agents. Make sure you raise the discard threshold to infinity!
pkoiralap 15 hours ago [-]
In my humble opinion, this has to be a latch on to the very model itself, or at the very least a custom memory model that can communicate with the base model. That way we are making the model understand "memory" via the weight space.
17 hours ago [-]
baoooooooooooo 14 hours ago [-]
Feeling very bitter lessoned right now (multiple things today, including this).
At what point in RSI do we start applying bitter lesson to AI design itself?
rzzzt 8 hours ago [-]
It's better than Jev week. Jev this, jev that. My name's Jev!
9. DATABASE.md intro to sqlite inventories libraries etc
10. EXCHANGE.md HANDOFF.md
ㅤ
Works for claude, codex, llama.cpp, antigravity, zcode, qoder, and myself somewhat. The built in memory functions don't know what the fuck they're doing anyway (besides just collecting your data), you can outperform them pretty quick. You can do things like load every session by default with the small memory index file, and then they can choose to pull anyone else's memory into its context as needed.
100% agree on simply logging all of your chats in their entirety, then you can run tests on different compaction techniques without [reasoning_extraction].
Then, forgetting entirely about the memory system (lol), I still try to size session's tasks to be suitable to not autocompact more than a few times in a day (running 24/7) at 800k ish. If a session is running autocompact seemingly every time I look at it, it needs to become two. Nothing good comes from /compact besides saving on token costs or whatever.
Then, improve your cache hits (obviously some jobs are inherently less efficient) by defining the scope of your sessions as mentioned, plus effective scheduling. So you'll save more money here than by running /compact 20 times a day.
im13vcom 16 hours ago [-]
Please share the code and the benchmarks you ran the agent on
euroderf 9 hours ago [-]
> Allowing an agent to run SQL queries and search over its own event log beats or matches specialised memory systems in all major memory benchmarks and scales with model intelligence.
I very much want a replicant in Blade Runner 2099 to mention something about running SQLite... and even allude to a cult of worship of D. Richard Hipp.
0xbadcafebee 14 hours ago [-]
I believe this is how billion-context[1] is designed. Agent stores context in a database it queries, removes things from active context that aren't needed. This lets it keep billions of tokens relevant to the current session and only query/use them when needed. Active context size is very low throughout the run of the session. The downsides are slightly slower operation and basically zero token caching.
I would use it more but the UX sucks. Let me turn it off per-session, I don't always want to lose token caching, and the results aren't always the best.
Can a model, if its using MoE, to add a new expert of "memory", and be able to modify its own network in that area? This should be doable with weight-space programming.
paid_dot_expert 6 hours ago [-]
Aren't MoE experts emergent rather than designed?
nekusar 2 hours ago [-]
Thats the rub... why not both?
LLMs can analyze and work with neural data directly. Now, a LLM cant capture its whole size, but it should definitely be able to manipulate and analyze a single expert. Strata is also already aware of the individual experts, so the segmentation isnt an issue.
I really think recursive super intelligence (RSI) is possible, even at home on consumer equipment, with the ways I outlined.
sevenzero 8 hours ago [-]
So why was this posted 4 times in the past 3 days?
arbor-group 3 hours ago [-]
[dead]
nlpnerd 3 hours ago [-]
What is this astroturfing? Look at the number of new accounts that are flagged in this thread.
kepano 17 hours ago [-]
The conclusion seems somewhat unsurprising: it's more effective to keep unedited logs and let agents search those than compress/compact/summarize.
As ever, many companies will be happy to store your data and sell access back to you. The good news is it's easier than ever to retain ownership of your data in sqlite or markdown files.
fedpost 17 hours ago [-]
You can back up your own codex/claude code logs.
In fact, you probably should be, if we get to the point where we can more easily customize open models of fully create our own you'll absolutely kick yourself if you don't.
We're apparently not allowed to generate sessions for this purpose but keeping the ones you generate organically...well... Fuck you I won't do what you tell me.
hahuyhoang 8 hours ago [-]
[dead]
reddmachine 11 hours ago [-]
Agent memory is a tarpit, too many people claim that their method is the best at a specific benchmark. This is a largely solved problem maintained by better context management.
themgt 7 hours ago [-]
If Nolan's Shelby had access to every single frame of his life recorded and stored as a video, he might have been better off searching the recordings to accomplish his goals.
I think we should probably not go with Leonard Shelby as our analogy for AI.
Can't I just let myself forget what you've told me? Can't I just let myself forget what you've made me do? You think I just want another puzzle to solve? Another John G. to look for? You're John G. So you can be my John G. Will I lie to myself to be happy? In your case Teddy... yes I will.
One of the biggest bitter lessons is that data is fragmented no matter how much you try to consolidate. You end up duplicating the data and fragmenting even more as you try to centralize it. And I think the agent memory products face the same reality now.
We found that event sourcing concept works great for agents but the limitation is that MCP is not designed for it. So we ended up something like an MCP gateway. Instead of tool calling for each service, we also expose a SQL tool where agents can get the query plan that requires the agent to use Typescript tool (codebase) to pull data from different MCPs.
So agents can optionally embedding + BM25 + Jev (decision model) in SQL to pull relevant data and trigger tool calls via codemode.
For smarter models like Fable/Astra, it didn't make a big difference for score but it reduced the latency for hard questions. We currently use Deepseek V4 Flash though as it has great cost savings and does the job.
A lot of complexity in memory design breaks down when you frame memory as information that reduces uncertainty in the future. Uncertainty in the future is reduced by updating a model's frozen representation of the world with information gained during waking experience, including the representation of the user and their preferences during interactions.
In principle, you can have a rule for the model to always consult the event log for any query and create a world model with in-context learning. Models are great at this! However, this is too wasteful and not practical. We proposed a workaround for this with the L0 (in context cache, 0 hop), L1 (index, 1 hop), L2 (event log) design. But like a few people in the comments noted, there's still something missing and too engineered about this (even after allowing for the model to do it in a closed loop).
I've been experimenting more and found a promising direction with weight space programming during sleep to directly update model weights based on information gained during wake time. So it becomes, L0 (model weights), L1 (context), L2 (index), L4 (event log).
Writing a follow up article soon with an example implementation. For those looking to go deeper, I'd recommend starting with information theory which gives a beautiful vocabulary to think about these things.
In theory, a good system should be possible, but it seems like it's difficult to beat db indexes and caches for organizing relevant info (which admittedly have been proven technologies for decades) and it looks like any memory system will always have to be able to fallback to full logs to get full performance.
As you suggest, maybe information that would be compressible ahead of time, is the type of information that better lives in LLM weights.
Still since the weights tend to be difficult to tweak well at test time, it seems like there should be some usefulness to a well organized ontology of updated facts.
It's tricky however, for this ontology to weight facts properly against existing LLM knowledge and against each other to judge their staleness, uncertainty and nuanced interactions with other facts. To use the information theoretic lens (I love your recommendation) it's tricky to make the sampled facts into coherent distribution of knowledge with low cross entropy, low KL divergence to a distribution of potential future realities. It's difficult to have good generalization that doesn't overfit and underfit on specific facts some of which are important some of which might be noise.
LLMs themselves have struggled with this, resulting in hallucinations and such but they are getting good at weighting uncertain information.
I wonder how AI curated memories fare against memories that are curated by humans. If humans can create a wiki of memories that provide better performance than the baseline of querying logs, maybe the AI systems are just not good enough at creating them yet and there's a way to get there.
I think you're post is mostly right, the current memory benchmarks are pretty bad and I agree for the most part transcript + smart model can beat them (some of the older ones fit in a single session's context anyway). But what are your thoughts on memory beyond just lookup? Like just two quick examples:
- Subconscious thoughts: While reading your essay, counterparts brought up, unasked, our own result from two months ago: a competitors LongMemEval score came almost entirely from its raw transcript search (to your point). But that wouldn't have popped into conversation otherwise unless I explicitly asked. And the transcript that result came from had already been deleted by claude's 30 day cleanup (though I get your saying keep all transcripts forever to avoid that).
-Settling what's current: Our install process changed mid-project. A log keeps both versions forever and leaves 'which is current' to be worked out on every query; memory settles it once, when it changes.
I'm testing your ideas against my own system now and will have more to share, appreciate your post and ideas!
Toward the end of this article you posed the question "do we even need memory systems at all?". It occurs to me that with the currently popular memory systems, this is really asking "do we really need to forget information"?
When asked that way, it certainly seems like the default answer should have been no.
> We argue that memory systems lose valuable task-relevant information during compression.
If the goal of "memory" is just to remember exactly what happened (which is not what most memory system are actually trying to do), then maybe. That said, half of the problem is that these extraction and consolidation systems are divorced from the actual session context (chunking based). That's already hugely lossy and problematic. And then if you do what Hindsight does and base consolidation on top of just atomic facts, that's even more lossy wrt the original context. And Hindsight's consolidation still does things that are extremely impressive and totally impossible with session search.
> The goal of a memory store is to maximise the epistemic value of search over an event log.
No, it isn't. I'd argue even prior to consolidation that atomic facts are useful in cases you wouldn't want or need to look at the original session.
> The goal of consolidation is to improve an existing encoded memory representation to optimise retrieval during an unknown future task
Most existing memory systems would not define consolidation in this way. I think this misses the whole point of it. Consolidation isn't about retrieval at all. Honcho, Hindsight, etc. want to form generalized observations and model how to actually better behave in the future in general. This should involve speculating, forming and testing hypotheses, etc. and goes way beyond retrieval. In that case the facts are just evidence, not the point. Even ChatGPT has developed an interesting, more generalized model for what I understand and what I'll need more explanation about, how I make decisions and evaluate alternatives, how to communicate and work with me, etc. And this includes a lot of stuff I wouldn't have even thought about before.
It makes no sense to try to re-derive all this stuff every single session. I would love to see better session search, but the use cases are completely different.
* Don't binarize, sharpen or otherwise edit an image before feeding it to OCR. A good OCR system can more effectively do those transformations itself, if they're useful.
* Don't feed the output of PCA into a machine learning system! Let the system decide what the dimensions are and which to throw away. Again, if it's any good, it can easily do the equivalent itself.
* Don't aggregate what you feed into a machine learning system. It can learn far more from the prices than from the inflation rate. It can learn far more from the test answers than from the test score. And again, if it can't, it can very easily do the data-throwing away that you just did for it.
Linear variants can supplement it, but they, by necessity, make some of the past sequence data inaccessible. And you can't perfectly predict in the now what data will be useful in the future. Being able to "double back" has too much of an edge.
The true "bitter lesson" way of developing better agent memory and associated retrieval is by training it on long horizon task data where these skills are implicit.
Preparing enough of this data with sufficient fidelity is still a research challenge.
But if[1] breakthroughs arrive to prepare such data, I am fairly confident LLMs will display these skills.
[1] Not yet confident that its a matter of when
Real learning requires a pipeline that classifies claims, an ontology for data and a pipeline - initially human in the loop to review approve or amend proposed facts and to identify and propose resolution to conflicts, that pipeline itself should learn from inputs by proposing geiridtics to improve future classifications and resolutions.
For non trivial systems I always need a vector representation for semantic similarity as part of the pipeline, entity resolution (was the bug fixed by Sam the CFO or Sam the developer) and an ontology and graph to traverse the atoms of data filtered by the properties and values on the edges
https://news.ycombinator.com/item?id=50785113
You can (correctly) argue that most memory systems don't do what they want to do well, but what they want to do is totally different from how the post defines memory/consolidation, and session search is completely useless for that actual goal. This is especially relevant for non-programming use cases.
> lots of complexity
Doesn't mean it's sanely designed.
Some knowledge is procedural and it would benefit from codification (into a programming language).
Goals and quality rules are the highest leverage points - and they need to be declared per the whole KB and the individual collections and maybe even with more granularity sometimes (some notes have a system-wide task that should be kept when editing them).
You need to define your vocabulary rules - what technical terms you use, what to do with collisions and possible unifications, how to import external vocabulary (ontologies).
There are so many features like these above that are needed for a good memory system. By the way a full cycle memory system, that covers both acquiring knowledge and serving it, is a learning system by definition - learning is acquiring new capabilities.
I am working on this in https://zby.github.io/commonplace/index.html
Everyone seems to be attempting to reinvent translation memories, termbases, TMS systems and so forth, with fancier names.
Information that becomes distilled into the working rules of a project 'is memory' in many cases.
Sometimes, the raw history is better, as others have pointed out but I find that to be a specialized concern.
What everyone I think is missing is the fact that whatever you're working on has it's own 'living context' partly described in the code , but not really, and if you can synthesize everything into that and it's not too-too long ... you're good. It's as good as having a trained model.
Roughly.
I've tried claude-mem and wasn't impressed with the results. Perhaps those methods work for smaller projects but at scale it seems to be a lot of noise. I've become a context purist, prefer absolutely minimal context injection, and would just rather have the agents go searching for what is needed on demand for now.
There's a setting to properly disable it:
One of the biggest problems I run into is the tendency to turn a specific point of nuanced feedback I give into a black and white "memory" rule, and in the case of Claude Code: do so automatically (and then, invisibly) as some kind of supposed benefit to me.
I kinda gave the benefit of the doubt that these memories were net positive on the whole, but they've been really bugging me lately.
“While helping you look at options for your injured leg, I noticed you were planning on painting your house. You definitely should not be doing that while injured and might want to take a break”
Now imagine this but in your codebase.
If I want something persistent I explicitly add it to my AGENTS.md or skills. There’s still the chance to over generalize but at least I can avoid irrelevant shared context from the start
I now use a /reflect skill occasionally that, among other things, asks agents to propose edits to my AGENTS.md or skills to make future work go more smoothly. That works decently well, and allows me to filter what gets included.
I did it with separate experience capture (`/reflect`), experience retrieval (`/recall`), and policy improvement (`/improve-harness`).
My thought is that a single experience shouldn't automatically become a permanent instruction.
Have you considered a similar separation? Or another way?
I notice something weird, query it and it says "I followed your rule to do <bizarre decision X>", I ask why and it quotes me something I said to a completely different situation
These things just love to add and add but never remove.
Ask Claude for the reference to it's memories and 'you be the judge' - literally look to see what is there.
The moment I saw that I turned it off, it's slop.
There may come a time when it's much better.
i think i should try this. i'm generally annoyed at claude any time it decides it needs to store a memory, and any time it retrieves those memories and gives them preferential weight over other instructions or things it's learned in the current session.
in general, i find that the only time i ever want claude to remember something is if i've explicitly told it "remember that information that we just learned last turn"
I turned off auto memory in Claude (the main orchestrator) and have the agents log to a central git repo. It’s been working so far. I wonder if I should adapt some SQL shape to it per the article
I think the memory space has a lot of open-source solutions. Have you explored others like Cognee or Supermemory?
It makes memories for things that are super specific to a one time task
Then you can selectively steer a little if you need to. For many things that is fine. I very rarely have them build big plans to look over, generally only for big projects like rebuilding a search model training and serving stack. Something that will take weeks of work, I'll have an agent research and build out a plan that I can then read or sometimes just query them about.
In general if you then take large logical domains and run one persistent agent per domain that is enough. You can point them at each other when you need to handoff or reconcile.
Honestly very similar to how a high performing team operates.
I suppose you might be hoping the AI makes a bunch of decisions for you, but you'd better hope they were what you wanted.
I’ve had times where it found an API method that I didn’t even know existed to solve the problem
I went down this route because I saw the extant harnesses had a ludicrously bad approach to authorization. And as the featured article describes, it doesn't take a lot to give the system the functionality it needs to operate. You can setup your own systems and be absolutely certain they are accessing only the data you want them to, whereas using Claude or Codex was always fighting against them going on wild tangents because they found something they shouldn't have even been considering.
It's not something you plug into Claude Code, but I don't see why you can't just give Claude Code a SQLite database, a skill, and just tell it to store stuff there. It's literally that simple.
- L0 - is the LLM context
- L1 - a single markdown file acting as router to internals and goal description, gets updated at every task boundary and on retrospectives from L2
- L2 - a log of all user messages in a project, this is cheap, hook based. The LLM only looks at it for retrospective analysis of user intent, how it changed over time, what was lost
No SQL. I have been rocking this since March over 100 projects. The cool thing is that a new agent in my project will quickly bootstrap reading L1 and forget nothing over time because of L2. But the role of retrospective analysis of L2 is not just to fix L1, it can also result in harness optimization - tools, skills, testing approaches. A self optimizing harness all around.
I am baffled people never talk about the value of logging user messages, they are compact and high value. Did the user experience friction, complain repeatedly about something? Maybe the harness needs a fix. A retro can reveal it.
I find it satisfying that it's just 2 plain text files, some hooks and a skill (/retro). They play well with grep, diff and git. I have it at https://github.com/horiacristescu/playbook-harness/
it seems to perform much worse now than a few weeks ago but on a fresh context it's still mostly fine
I have no clue how you could ever push it towards the 1M limit without it just turning into an absolute slopfest
I still feel like something key is missing. Ultimately, humans consolidate memories into new behavior. Even if it can learn by accumulating past examples in a DB, Claude still doesn't really self-improve on the tasks it performs, at least not as well as we do. We distill episodic memory into intuition; it's something more.
Ultimately I think this line of work will become very important in the next few years. I'm not really afraid of larger and larger models becoming better than us at everything, to be honest, but am a bit scared we might might still be missing something extremely obvious like this. Something that lets it self-improve on-the-fly through direct experience.
Because if its the case that say, Claude can improve drastically by just accumulating runs in an SQL database, what happens when we just concatenate everybody's database into a big one? Additional network parameters increase computational cost linearly, but search queries are sublinear...
I agree - it feels like the harnesses we use now are somewhat hamstrung by their evolution from the chat format. The reliance on compaction to manage context is the clearest example of this, and while Anthropic and OpenAI are doing their best to hide that sort of behavior now, it still feel as though maybe there still radically different approaches that we're not yet seeing. I'd love to see more experimental harnesses that play with things like transcript databases, non-linear sessions, and hierarchical searchable summaries.
Separately I have a specific CLI tool for authoring/amending and quickly searching through architecture decisions within a repo (the ADRs are committed) and this exposes a simple command that does "find me the relevant decisions for this file" when analyzing/reviewing changes.
General memory systems in my experience go haywire very quickly and even the current models will make lots of memories that hold transient issues and procedure.
Using separate tools also means I can share all this between whatever harness I am using, avoiding vendor lock in.
I run a lot of AI driven projects and in my experience with current models, using these tools gives me much better outcomes vs the projects that are built on standard/general memory systems.
I think it makes sense because it's all context engineering, no matter how good the models get. A general memory system doesn't give enough clues about its usage and where/how things are stored. Structured and opinionated systems give each thing its own, clear purpose and that makes the bots much more accurate when querying and creating with them.
All in my experience, I don't have any objective benchmarks for it. But it also makes auditing what the bots are doing a lot easier for myself, which I find very valuable.
https://github.com/DanielDornhardt/the-documentation-pyramid
Basically, it's a hierarchical markdown pyramid with an index file the agents can use to traverse different levels of a software project. From the top / general to the specific
L1: General / Goals / Abstract
L2: Architecture and layout - what's what? And where?
L3: Individual modules & cross-cutting concerns - kept up to date with each commit of the software
L4: Guides, scripts, setup, how to run etc. Operations stuff.
And a few glue instructions / how to bake it into your development workflow so the agents read the relevant parts before implementation + update the docs after changes have been done.
Rinse and repeat! :D
Have a look and play with it, i'm very happy to use it in my projects, because it's both agent and human readable and a great middle ground of clarity & practicality!
Because i think it's too early to call the "bitter lesson" for agent memory - especially for long running software projects.
I don't want to take anything away from the article, which is very specific and well researched, I just wanted to provide an "alternative take" for more classical long-running software development projects and kind of jumped on the bandwagon.
Sorry if you think it was in bad taste, it was a bit of a quick reaction to the title / i thought I read it yesterday and I might actually have been confusing it with another article about agentic harnesses being bitter-lessoned away which I also think is - for long running software projects - also too early to be called.
So sorry if I jumped the gun on this, i'll take a bit more time next time, thank you for noticing!
I came up with a system that works exceptionally well. What I need is 3 things:
1. A place where a bunch of things are stored for future recall (specs, research, ideas, "wiki") which is just directories with a date and a slug with no binding structure at all, not on the hot path of agents, and with explicit instruction to agents to treat everything there as junk. Like a lab notebook. Its own repo.
2. A unified harness for all models for transcript standardization
3. Cheap, but smart classification over transcript data.
This is why I use oh-my-pi with jev.
Need to recall some research we did a few months ago?
"Opus, launch a sonnet scout to see what our lab says on this"
Session compacted several times and model forgot something important?
"Opus, use jevify to search session history"
Need context on something that spanned multiple sessions over month(s)?
"Use jevify to search session history, then launch Sonnet agents to get more context around important lines".
jevify is a magic keyword in oh-my-pi. Put it in a prompt and the agent uses a cheap judge model (judge_batch()) to sort a long list, then reads only the items that get flagged. Judge model can be any decision model (jev or OpenAI decisions Luna).
Suppose you want to find out why you dropped Redis from the cache layer. The decision happened somewhere across ~40 sessions over two months. You type:
jevify session history since October: where did we decide anything about the cache layer?
Before reading any data, the agent writes the rubric down in one eval cell:
Then it loads every message from the session JSONL files, applies the pre-filter, and hands the rest to judge_batch() in a single call. Jev classifies them in parallel and returns labels and probabilities. Opus reads only the dozen or so messages that get flagged and comes back with "Nov 3 session: dropped Redis because of X, here's the line", plus session IDs so Sonnet agents can pull the surrounding context.And the jev part is essentially free. You get $5 each month. I haven't topped it up even once. And if you also have a codex subscription, you also get credits each month for their decision model you can add as a fallback.
And even better yet, why not all of the above (semantic search, queries, and decision models)? Historical logs can be stored in a vector DB. Agents can query the vector DB with semantic search (rather than SQL) in a traditional RAG fashion. Decision models filter the query's outputs for relevance before handing it back to the agent.
And RAG was always a cost saving measure to me because models were expensive. Jev changed that. I could hammer jev all day and would probably still have credits left by the end of the month.
## Agent continuity layer (supplementary to per-project memory)
- ~/.claude/shared/journal.org — append-only cross-session journal (conventions in ~/.claude/shared/README.md). Read the tail (~30 lines) before substantive work; append (and `git commit` in that dir) when you learn or leave something a later session would trip over: in-flight work, warmed caches, deploys pending, impressions not yet memory-worthy. - The per-project memory dirs (~/.claude/projects/<project>/memory/) are git repos: after editing memory files, `git commit` there with a short message — the history of belief changes is the point. - Both are agent-owned repos: committing in them is expected and exempt from the "leave changes uncommitted" convention (which is about Chris's code repos). Absolute dates only; facts about systems, never row-level data.
)the git repos are local only, just for tracking)
For me, my agents sometimes read my worklists etc, and other times they happily ignore it.
What I mean to say is that the current methods of compaction don't really match my intuitive understanding of how human memory works. Agents don't really have a frequency/intensity relationship with the static files they keep for memory. The system just includes all memory items into every context. I wonder if there is some study worth doing on injecting high-salience items at a higher frequency and low-salience items at a lower frequency, then allowing the AI to score how important the memory was and adjusting the values over time.
A frontier company with as much widespread usage of their LLM as frontier-companies have, should be able to use the "chat logs" from all those sessions to roll back into some kind of dynamic training for their LLM to improve it (sure, during sleep if you like).
I get it, that there are privacy issues (and there are!) but you might imagine there is a way (or an agent) that strips PII (is that the acronym? I want personally identifiable information) from the logs before they are subsumed.
It's an MCP server (could be local or remote) that gives the agent 3 simple tools: create memory, search for memories, and get memory by id. Everything is stored in SQLite database with text indexing for search.
Working fine for me, but after reading this I'm considering to simplify it even further and just provide a search over my Pi session transcripts.
[1] https://github.com/Destiner/memento
The idea of a memory system like what’s proposed in the post here is really interesting to me because it takes the LLMs tendency to increase design entropy out.. I’m intrigued!
It's how many have noted 10 years ago how gradient descent could paper over bugs in your deep learning architecture coding bugs, because the thing would still work just get a bit lower accuracy and if you don't know what accuracy would be possible, you will not notice that there even is a bug. This is in contrast to things like graphics where often a single mistake often gives you a black screen or obvious artifacts. Or classical vision pipelines where mistakes in the equations gives you obviously bad results. Of course neither type of task is purely one way or the other but I found it an interesting spectrum to think about. Some systems actively adapt to bugs or suboptimalities in other parts.
It works surprisingly well when working on complex systems 'go back to that thing we did' - instead of logs, you have a bit of a distilled KB.
Very simple hack, requires a bit of maintenance, one of many things that works well.
It is ridiculously practical and economical(just Plus is enough).
This approach is always on and available everywhere - meaning I might have an idea or something and I just STT into my Android phone - which I do about 50% of time even for coding. I have project settings requiring explicit commit.
Local development is a just a git clone away.
Downside is that you only get Sol at High effort.
For those rare times when I need really deep analysis I have Claude Code and Codex , but I rarely need something like Astra or Fable
I use this approach for pretty much all domains, medium sized coding projects, teaching, course development, lectures, pretty much all research, lifestyle, hobbies, household etc etc.
Sometimes I feel like this is "too good to be true" and liable to go away any moment when OpenAI runs out of money.
But I would still have all my repos locally and could keep using local harness if need be.
I keep toying with idea of more general KMS, adding database to mix, embeddings etc but ChatGPT can query all repos and has no problem reading commit history and finding relevant repos at around 1000 repos.
Is anyone using something similar?
the second issue, is that learning and memory are different and the best memory systems are good at storage, correlation and retrieval but don't help with learning. by learning i mean summarizing, finding patterns and dropping specifics and generalizing. that is why moving one project's memory is not easy to another project in claude or codex (they are files filled with specifics and stored locally on a disk, which makes them locked into one member of the team, inhibiting organizational learning).
we ran 51 scenarios with and without our memory system (built around the same principles) and these are the result (with vs without): first review acceptance: 81% vs 46% correct past decision recalls: 50% vs 85% token usage drop: 20% (average of 8mm vs 10mm) repeat corrections by a human: 8 vs 10 (in 100 repeats)
I feel what I need is something that allows the model to learn the mental model, vision, trade off weighting, and so on of whatever project I'm working on. The benchmark should be that when I ask for another feature, I need to say less and it knows more precisely what I mean and how the feature should work exactly to fit in the way I would have. It has to learn the "taste" that drives decisions about the project I guess. That means it needs to understand what from the past to over index on and what to under index or ignore, and so on.
In my opinion, memory should be on cloud, so it can be share by many agents.
memory should be extracted from raw session history, and session history should be searchable
memory should work together with other context, like the documents and skills
and memory should be editable and readable. so you know whats wrong and fix it.
I found OpenViking as a sacalable solution for the points i need above. only thing is it doesnt support ontology but a file system structure. so file structure as ontology, i dont see any issue yet with no graph memory database.
This does more than it appears to: it also primes the LLM to know that this data store exists, and that it should be consulted proactively. Half the battle is to make sure the system doesn’t jump to conclusions without consulting its memory at all!
Some of this is captured by effort settings, but you can do a lot with a bit of system prompt tuning, even at lower effort, to make sure the system knows there are things it must consult even something seems simple.
See https://arxiv.org/abs/2607.24368 - and just like that we're back in information retrieval land. I'm in the process of experimenting with query and document expansion, intent classification etc. all known from search circles but applied to memories.
In such cases, project documentation serves as a source of memory, yet it provides only a partial view of what is available during the prompting process or the knowledge AI gets when it is working on your project.
"Search and ask across your organization's knowledge: Slack, coding-agent sessions, docs and tickets. Self-hosted."
Wondersearch
Turbopuffer
And many more
https://wondersearch.ai/
https://turbopuffer.com/
At what point in RSI do we start applying bitter lesson to AI design itself?
First discussion of the inaugural article: https://news.ycombinator.com/item?id=19393432
ㅤ
1. CLAUDE.md
2. AGENT_BRIEF.md
3. MEMORY_INDEX.md
4. MEMORY.md + memory checker (memgate) and nightly memory pass (memory-dream)
5. MEMORY_PROJECT.md MEMORY_SESSION.md MEMORY_DEPARTMENT.md hooks, helpers, skills, scheduled tasks
6. DEPARTMENTS.md ROSTER.md ROLES.md
7. STANDARDS.md STANDARDS_CODE.md STANDARDS_GUI.md
8. REGISTRY.md TOOLKIT_INDEX.md
9. DATABASE.md intro to sqlite inventories libraries etc
10. EXCHANGE.md HANDOFF.md
ㅤ
Works for claude, codex, llama.cpp, antigravity, zcode, qoder, and myself somewhat. The built in memory functions don't know what the fuck they're doing anyway (besides just collecting your data), you can outperform them pretty quick. You can do things like load every session by default with the small memory index file, and then they can choose to pull anyone else's memory into its context as needed.
100% agree on simply logging all of your chats in their entirety, then you can run tests on different compaction techniques without [reasoning_extraction].
Then, forgetting entirely about the memory system (lol), I still try to size session's tasks to be suitable to not autocompact more than a few times in a day (running 24/7) at 800k ish. If a session is running autocompact seemingly every time I look at it, it needs to become two. Nothing good comes from /compact besides saving on token costs or whatever.
Then, improve your cache hits (obviously some jobs are inherently less efficient) by defining the scope of your sessions as mentioned, plus effective scheduling. So you'll save more money here than by running /compact 20 times a day.
I very much want a replicant in Blade Runner 2099 to mention something about running SQLite... and even allude to a cult of worship of D. Richard Hipp.
I would use it more but the UX sucks. Let me turn it off per-session, I don't always want to lose token caching, and the results aren't always the best.
[1] https://github.com/ranxianglei/billion-context
LLMs can analyze and work with neural data directly. Now, a LLM cant capture its whole size, but it should definitely be able to manipulate and analyze a single expert. Strata is also already aware of the individual experts, so the segmentation isnt an issue.
I really think recursive super intelligence (RSI) is possible, even at home on consumer equipment, with the ways I outlined.
As ever, many companies will be happy to store your data and sell access back to you. The good news is it's easier than ever to retain ownership of your data in sqlite or markdown files.
In fact, you probably should be, if we get to the point where we can more easily customize open models of fully create our own you'll absolutely kick yourself if you don't.
We're apparently not allowed to generate sessions for this purpose but keeping the ones you generate organically...well... Fuck you I won't do what you tell me.
I think we should probably not go with Leonard Shelby as our analogy for AI.