We reverse-engineered claude code's memory. It's very simple, but has caveats.
@DhravyaShah65K followers
11,352 views
10 Comments
Comments from the original post on X (Twitter)

@johnroodepic
the caveat that actually bites is the summary. after compaction the summarizer's version is the record, so anything that only lived in the transcript is gone. keeping decisions in a file it re-reads every session is the cheap fix, that's the whole reason I built memoryrouter
2 likes

@notparbez
Btw supermemory doesn’t even need reverse engineering, its bun single executable contains most of the things as strings
1 like

@DhravyaShah
we know
1 like

@loneherd
Nice video! Simple is usually better. I’ve been using short “why it broke + how to avoid” files that only load when relevant. Keeps context small and stops the same mistakes from repeating.
1 like

@techwithjoe_io
We hit nasty token bloat whenever our agents persist raw notes. How does it handle cleanup?
1 like

@DhravyaShah
automatically@
1 like

@NotOnlyJustOnly
Good explanation through the video Was it generated by claude it self?

@wladefant
I really love the video. How was it created? Did you use some skill or Framer or something like this?

@0xApoorv
we stumbled onto this back in March while building Trace. We discovered Claude Code was saving entire sessions as local JSONL files, which got us thinking: if all this context already exists, why do agents keep forgetting things between sessions? trace

@MaheswarBora
Much needed info! Honestly, I haven’t found claude’s long term memory to be super helpful (I’m still at a point where I am required to provide context about something more than once). Was wondering if you see some gaps and have supermemory address them?