Skip navigation
We reverse-engineered claude code's memory. It's very simple, but has caveats.
0:00 / 1:00

We reverse-engineered claude code's memory. It's very simple, but has caveats.

Dhravya Shah

@DhravyaShah65K followers

Visit on X
163 likesDownloadOriginal post

11,352 views

We reverse-engineered claude code's memory. It's very simple, but has caveats. here's a little video explainer of the blog below ↓

10 Comments

Comments from the original post on X (Twitter)

  • John Rood's profile picture

    @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

  • parbez's profile picture

    @notparbez

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

    1 like

  • Dhravya Shah's profile picture

    @DhravyaShah

    we know

    1 like

  • Brian Wagner's profile picture

    @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

  • Jonathan Cecil's profile picture

    @techwithjoe_io

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

    1 like

  • Dhravya Shah's profile picture

    @DhravyaShah

    automatically@

    1 like

  • Keval's profile picture

    @NotOnlyJustOnly

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

  • Wladimir Kirjanovs's profile picture

    @wladefant

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

  • Apoorv's profile picture

    @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

  • Maheswar Bora's profile picture

    @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?