The Components of Agent Memory anthropic.com · 169 points · 99 comments · HN thr...

@best30

The Components of Agent Memory anthropic.com · 169 points · 99 comments · HN thread

TL;DR Anthropic published a research post arguing that agent memory works like a division of labor between live logging and offline 'dreaming', where Claude reviews transcripts to correct, reorganize and build wikis from its notes. The post reports evaluations on CL-Bench, Pokémon Red, a 350k-file corpus and the Harvey LAB legal benchmark, showing gains from memory judgment, dreaming-based correction, and wiki-plus-search setups.

  • Memory is defined as knowledge Claude gains from experience and retains between sessions as readable context, excluding weight updates, in-context learning and compaction.
  • On CL-Bench, later models progressively closed a learning loop: Sonnet 4.6 generated untested theories, while Opus 5 recorded rules, evidence and traps; Opus 5.5 and Sonnet 5.5 matched Opus 5 with memory.
  • In Pokémon Red, Sonnet 3.7 wrote 413 memory files and earned one badge, while Fable 5 wrote nine files and earned four badges, storing strategy rather than screen-readable state.
  • Dreaming fixed a wrong landmark note that caused a looping failure in Mt. Moon; with the corrected note the run reached Cerulean City.
  • On a 350k-file Stainless corpus, dreaming over 128 sessions raised question performance from 13% to 48%; wiki plus search reached 61% versus 53% for search alone.
  • Injected memory is limited: Claude Code loads only the first 200 lines or 25 KB of MEMORY.md, so the top memory layer must stay small.

Discussion The thread is large and split between practitioners and skeptics. Many commenters say they disable or heavily prune automatic memory in Claude Code because the notes are cluttered, task-specific, and often ignored, and they share their own workarounds. Others focus on the bigger question of whether memory via markdown can substitute for continual learning in weights, with some arguing weights are the real solution and others defending external memory as more inspectable. A vocal group objects to the word 'dreaming' as anthropomorphic marketing and to the article's evidence as thin, while a smaller group defends the work as a useful framing. The mood is skeptical and sometimes heated, with a side tangent about the author's writing habits.

  • Auto memory is cluttered or unhelpful; users disable or prune it (many): Several users turn off automatic memory or delete most generated files, finding them task-specific and noisy. They want better judgment about what gets saved, or prefer hand-curated files like AGENTS.md or progress notes.
  • Dreaming is an anthropomorphic misnomer (some): Critics say calling file reorganization 'dreaming' borrows neuroscience language to suggest something human-like. Some argue dreaming in humans is a side effect of consolidation, so the analogy is misleading.
  • Real learning requires updating weights (some): Commenters argue that markdown memory is a workaround and that continuously updated weights, possibly via LoRA-style adapters, are the real path, though serving per-user weights at cloud scale is seen as hard.
  • Article is marketing with weak evidence (some): Some dismiss the post as advertising, noting that the benchmarks are narrow, that memory files are not reliably loaded or used, and that the claims are not validated in real use.
  • Memory and dreaming are useful with proper design (a few): Others find the approach valuable, citing the Pokémon and wiki results, and say that cross-session transcript search, scoped memory, and periodic consolidation help in practice.
  • Mining your own session transcripts is valuable (a few): Some users recommend analyzing agent transcripts with tools like DuckDB to find tool-call failures, cache misses and task-sizing patterns.

Links from the comments

#agentMemory #continualLearning #Anthropic #Claude #llmEvaluation #dreaming