Skip navigation
Introducing an open source implementation of Cognition's dreaming memory system, same as Instinct…
0:00 / 11:39

Introducing an open source implementation of Cognition's dreaming memory system, same as Instinct…

Dhravya Shah

@DhravyaShah65K followers

Visit on X
710 likesDownloadOriginal post

56,612 views

Introducing an open source implementation of Cognition's dreaming memory system, same as Instinct, Muse, Openclaw, etc., built on Cloudflare Artifacts, Durable objects, Alchemy and Effect. I've been exploring agent memory for a long time and this is one of the more popular ways to do it, and I'm happy to see cognition putting out a detailed spec of how they perceive this. In a way, it's beautifully simple and encapsulates what a good memory system should have. There's many pros and cons, here's a video of me talking about it ↓ If you're thinking about agent memory you should probably use supermemory - we think a lot about the very specific details about all of this. But, if you're curious, is a great place to start with the cognition memory thing as well. we're actually going to incorporate some of the learnings from the research we're doing here into supermemory (soon-ish). but open sourcing it for public benefit :) sorry for the bad audio quality, did it as a quick thing

12 Comments

Comments from the original post on X (Twitter)

  • freyz's profile picture

    @aisssultann

    @Cloudflare hey it would be interesting hear your opinion on @VictorTaelin optchat

    3 likes

  • Dhravya Shah's profile picture

    @DhravyaShah

    Github here -

    3 likes

  • Vishal Anton's profile picture

    @Vishal_anton16

    @Cloudflare bookmarking this for the weekend.

    2 likes

  • Alek's profile picture

    @AlekVectis

    the api quickstart drops .user when it saves .token, but its next request still uses /api/users/ada/chat. keep both fields from /auth/verify and put the returned user id in that url. auth.ts adds a hash to ada, and the session check matches the full id.

  • Hari's profile picture

    @HarivanshRathi

    @Cloudflare ive been playing w graphs for a couple weeks this is cool im gonna try

  • Dhravya Shah's profile picture

    @DhravyaShah

    @Cloudflare This is not really a graph, it's just things pointing to each other in a way, quite simple, like obsidian

    1 like

  • Hari's profile picture

    @HarivanshRathi

    @Cloudflare my method was postgres storing graph nodes, node = *file object in wasm sandbox and agent gets python repl that can also run in wasmruntime (no other tools except this) (for personal agent)

  • why's profile picture

    @NullContex1s

    @Cloudflare The Durable Objects + Artifacts stack seems like a neat fit for persistent agent memory. Curious how you handle memory retrieval across sessions.

  • thoriq's profile picture

    @isninkhamiss

    @Cloudflare he's at it agian

  • Dhravya Shah's profile picture

    @DhravyaShah

    @Cloudflare I am always at it

    2 likes

  • Huy Nguyen's profile picture

    @huymnguyen_

    @Cloudflare A morning changelog would make the dreaming part easier to trust: what was removed, what was combined, and what new assumption was added. Then you can catch a bad inference before it affects the next session.

  • Shyam Toprani's profile picture

    @ShyamToprani

    @Cloudflare How does it compare to optMem and optChat?