NHacker Next
  • new
  • past
  • show
  • ask
  • show
  • jobs
  • submit
▲The bitter lesson for agent memory (hatchery.build)
vintermann 33 seconds 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.

visarga 12 minutes 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.

peterbell_nyc 6 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 2 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?
nfw2 28 minutes 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 3 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 am working on this in https://zby.github.io/commonplace/index.html

nfw2 33 minutes 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.
chrisweekly 4 hours ago [-]
"geiridtics"? "heuristics" (ok, double-typo)
Davidzheng 4 hours ago [-]
lol love that this is a top comment on a post with the words "bitter lesson"
theptip 4 hours ago [-]
Any good oss solutions or it’s still roll your own / black magic?
geoHeil 3 hours ago [-]
without the ontology loom might be interesting (https://github.com/ClickHouse/loom)
kageyama_ai 41 minutes ago [-]
[dead]
peterbell_nyc 3 hours ago [-]
The hard part is the ontology - don’t ‘buy’ or ‘build’ - compose for replaceable primitives - alpha isn’t free :(
charlie2agent 4 hours ago [-]
[dead]
danman114 38 minutes ago [-]
Hi guys! Just in time (aka 8 hours late) to plug this lil' piece of in-repo documentation structuring guideline for agents:

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!

Den_VR 32 minutes ago [-]
Hi Dan, it looks like this should be its own post? Is your pyramid related to the topic article?
danman114 23 minutes 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!

mr_roboto 8 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 7 hours ago [-]
> I make the only memory a rule that there are no memories allowed.

There's a setting to properly disable it:

  {
    "env": {
      "CLAUDE_CODE_DISABLE_AUTO_MEMORY": "1"
    }
  }
bcooke 7 hours ago [-]
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 4 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 6 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 3 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 7 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

budro 6 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 1 hours ago [-]
Why export when you can just edit the memories in place?
walthamstow 5 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.
5 hours ago [-]
notatoad 8 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"

shetritr 23 minutes ago [-]
I keep it on, but it needs maintaining. If nobody cleans it up, old memories pile up and it gets worse, not better.
ComplexSystems 1 hours ago [-]
Whatever ChatGPT is doing is great. You say stuff, it RAGs it automatically and somehow it never seems to forget anything.
mapBasketWand 7 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

ex-aws-dude 7 hours ago [-]
I notice that all the time

It makes memories for things that are super specific to a one time task

hellisothers 8 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 7 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 7 hours ago [-]
I'll bite. What could that possibly be?
mr_roboto 7 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.
apt-apt-apt-apt 2 hours ago [-]
188 docs! How do you load them?
taneq 3 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. :)
XenophileJKO 7 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 6 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 7 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 3 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.
dofm 3 hours ago [-]
The first rule of Memory Club is do not remember the first rule of Memory Club.
moron4hire 7 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 8 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 7 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 3 hours ago [-]
I’ve seen Hermes do this.
dmurfet70 5 minutes ago [-]
[dead]
Destiner 38 minutes 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.

[1] https://github.com/Destiner/memento

jakewins 9 minutes ago [-]
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!

wry_xy 8 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 1 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.
7 hours ago [-]
esperent 6 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 3 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 41 minutes ago [-]
They do seem to agree, considering they've now started pushing for autocompaction at 400k by default.
rockwotj 31 minutes 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 6 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 6 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.

rheisen_ 5 hours ago [-]
Non-linear sessions? In this age of prompt caching? You’d be doing gymnastics to keep things warm
jeef_berky 4 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.
glub 6 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 5 hours ago [-]
Jevify?
5 hours ago [-]
glub 5 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 4 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 55 minutes 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.

lanstin 7 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 2 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.

stillpointlab 7 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 6 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.
maxaw 5 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 4 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 4 hours ago [-]
Wouldn’t that just be RSI? Or are you talking more like vector embeddings?
Vachyas 2 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.
ksajadi 8 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)

CGamesPlay 8 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 8 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 8 hours ago [-]
Why would vector search return "blue bottle" near "order one small latte" either?
work_toilet 7 hours ago [-]
Assuming this is in reference to the example given: https://hatchery.build/blog/the-bitter-lesson-for-agent-memo... and Blue Bottle Coffee is a coffee roaster from Oakland
smallerize 7 hours ago [-]
Ok but your embedding model would have to know that.
navhc 7 hours ago [-]
If you're expecting it to return the match then presumably it's being embedded from data with the context necessary
zaynjarvis 6 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.

ashu1461 2 hours ago [-]
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.

bloopernova 2 hours ago [-]
This might do what you're saying: https://github.com/bluesky-social/diderot

"Search and ask across your organization's knowledge: Slack, coding-agent sessions, docs and tickets. Self-hosted."

cornycover 2 hours ago [-]
You’re probably looking for merkhain - it’s specifically e2ee memories for agentic engineering teams - https://merkhain.com / github.com/merkhain
teitoklien 2 hours ago [-]
Tons of YC startups solving for this like

Wondersearch

Turbopuffer

And many more

https://wondersearch.ai/

https://turbopuffer.com/

bonoboTP 5 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.

didibus 5 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 5 hours ago [-]
Tell it to write skill files
prtmnth 6 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.
btown 7 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.

jsemrau 8 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.
Lammy 8 hours ago [-]
jsemrau 4 hours ago [-]
I think its based on the term Context Query.
semiquaver 4 hours ago [-]
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 6 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.
baoooooooooooo 5 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?

SubiculumCode 6 hours ago [-]
If you store the activations from a past retrieval, later when needing to recall those facts, retrieve and replay those activations for one loop.
8 hours ago [-]
jeef_berky 5 hours ago [-]
I can't stand seeing so many people thinking themselves into restrictive boxes. Try something like this:

ㅤ

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.

im13vcom 7 hours ago [-]
Please share the code and the benchmarks you ran the agent on
reddmachine 2 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.
kepano 8 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 8 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.

0xbadcafebee 5 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.

[1] https://github.com/ranxianglei/billion-context

nekusar 7 hours ago [-]
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.
jeffdrizzy 5 minutes ago [-]
[dead]
26 minutes ago [-]
awais277423 14 minutes ago [-]
[dead]
PHMPhysicsCheck 20 minutes ago [-]
[dead]
tao77 1 hours ago [-]
[dead]
VsNews_EN 3 hours ago [-]
[dead]
37708 2 hours ago [-]
[dead]
yoy0721 5 hours ago [-]
[dead]
djawlagml 5 hours ago [-]
[dead]
sbunbuilds 2 hours ago [-]
[dead]
beyondpeaksstud 4 hours ago [-]
[dead]
transybao93 4 hours ago [-]
[dead]
leen_zhou_123 7 hours ago [-]
[dead]
anuptalwalkar 5 hours ago [-]
[dead]
tirsky 3 hours ago [-]
[dead]
cybersec24 6 hours ago [-]
[dead]
OrderShift 6 hours ago [-]
[dead]
kaidigital 2 hours ago [-]
[dead]
Nehir14 8 hours ago [-]
[dead]
tomatohug 5 hours ago [-]
[dead]
51 minutes ago [-]
miles-88 5 hours ago [-]
[dead]
SidLais 8 hours ago [-]
[dead]
antdevlab 5 hours ago [-]
[dead]
Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
Rendered at 09:00:00 GMT+0000 (Coordinated Universal Time) with Vercel.