Sr Eng Mgr/Tech Lead, Former Chief Architect, 28+ years in Tech. Interests in Eng Leadership, Product Dev, Coding, DevOps, Cloud, IoT, ML/AI, OSS Advocate.
Based on everything explored in the source code, here's the full technical recipe behind Claude Code's memory architecture:
[shared by claude code]
Claude Code’s memory system is actually insanely well-designed. It isn't like “store everything” but constrained, structured and self-healing memory.
The architecture is doing a few very non-obvious things:
> Memory = index, not storage
+ MEMORY.md is always loaded, but it’s just pointers (~150 chars/line)
+ actual knowledge lives outside, fetched only when needed
> 3-layer design (bandwidth aware)
+ index (always)
+ topic files (on-demand)
+ transcripts (never read, only grep’d)
> Strict write discipline
+ write to file → then update index
+ never dump content into the index
+ prevents entropy / context pollution
> Background “memory rewriting” (autoDream)
+ merges, dedupes, removes contradictions
+ converts vague → absolute
+ aggressively prunes
+ memory is continuously edited, not appended
> Staleness is first-class
+ if memory ≠ reality → memory is wrong
+ code-derived facts are never stored
+ index is forcibly truncated
> Isolation matters
+ consolidation runs in a forked subagent
+ limited tools → prevents corruption of main context
> Retrieval is skeptical, not blind
+ memory is a hint, not truth
+ model must verify before using
> What they don’t store is the real insight
+ no debugging logs, no code structure, no PR history
+ if it’s derivable, don’t persist it
With OpenAI, Figure 01 can now have full conversations with people
-OpenAI models provide high-level visual and language intelligence
-Figure neural networks deliver fast, low-level, dexterous robot actions
Everything in this video is a neural network:
@GergelyOrosz This is something I have to explain to engineers often. Unfortunately, the minimum characters is 6, so it would have been more obvious if my first choice went through. :-)
@GergelyOrosz Having been at Visa for 5 years, I can say it’s a cost center. They do have business units that are more closely aligned to the profit center structure and are run by product and engineering. These units don’t make up much of their core payment network business model though.
OH-SPACE is #LIVE on @YouTube - Come join and watch a community come together to launch a #Rocket https://t.co/4qrpbKwZM5
Ask questions with - #OHSpace22
Office Hours is going to space... well 3 miles towards space...
The https://t.co/xXVUA29E12 coverage has begun!
https://t.co/mpqf8c6FRf
Launch in 54 min if all goes well.
@rhinocehorse @Jason It's an IFB like an Audio Implements or earHero, since he has a crew for his podcasts/channel. I use Bubblebee Sidekicks when I need them to be invisible but tend to not like the sound due to being flat.
@GergelyOrosz Influencers have a huge impact on the success of any emerging technology, even outside of crypto. Like anything new, it does follow hype cycles and eventually reaches mainstream. There usually are a few that make it through and dominate their space. In crypto, there are many.
@randybias Ironically, they also don’t want to learn the concepts on how their software works in the infrastructure they deploy to. They expect it to work seemlessly and scale linearly without any effort. Guess it is the problem with centralized infrastructure resources in an organization.
@sarbjeetjohal Still new to @joinClubhouse, but the potential for bringing people together to share knowledge and have deeper conversations is great. Hope to join in on more conversations in the future.
@ashleymcnamara ✋ How about a college dropout working at Office Depot as a sales clerk? Helped a guy with questions about a computer he wanted to buy and he helped me get into the industry. That was 23+ years ago.