Loading video...

Video Failed to Load

Go Home

Introducing Dreaming: Across sessions, Devin builds a memory graph of how you like to work At night Devin self-improves its memory to remove stale records and discover latent information We are creating an OSS standard called Agent Memory Repo:

610,247 views • 6 days ago •via X (Twitter)

36 Comments

Cognition's profile picture
Cognition6 days ago

In Agent Memory Repo, memory records live in files and are versioned with Git It’s a simple primitive but unlocks surprising use cases like a message board across your agent sessions

Cognition's profile picture
Cognition6 days ago

In early experimentation we saw a swarm of Devins using the memory as a way to coordinate at large scale without us prompting them to (we promise they didn’t hack anyone)

Cognition's profile picture
Cognition6 days ago

Read more about memory and dreaming at:

Jared Zoneraich's profile picture
Jared Zoneraich6 days ago

Finally I can retire my git brain repo

Favio Vázquez's profile picture
Favio Vázquez6 days ago

@cognition Tried it on the memory Claude Code kept for my project: 19 notes over 10 days. Made it a git repo. A fresh Devin session recalled what Claude Code had learned, then dreamed on it: 21 commits, 19 → 14 notes, duplicates merged, stale notes gone.

Satwik Singh's profile picture
Satwik Singh6 days ago

at least credit the progenitors of sleep-time compute.. cc @Letta_AI

Florian Juengermann's profile picture
Florian Juengermann6 days ago

What a name 😴 ✨

Fanfulla's profile picture
Fanfulla6 days ago

This is huge guys, you don't yet understand how good it can be on auto self improvement Especially SWE-2

Deshraj Yadav's profile picture
Deshraj Yadav6 days ago

Cool! You can benchmark it here at to see if it’s a fancy or efficient memory system. :)

Steve Martocci's profile picture
Steve Martocci6 days ago

Funny I just added my own "Night Shift" to my automations last week, to instruct my agents when I'm sleeping without intervention, gotta check this out.

Corey Ward's profile picture
Corey Ward6 days ago

Cool. Hope this improves the PR reviews. They've gotten very prone to flagging non-issues the last few days.

Nicolò Boschi's profile picture
Nicolò Boschi6 days ago

how do you measure memory effectiveness? how do you handle personal memories? for example, in the team working on same project, each member should have their own memory + shared ones this looks fine for small, single-developer repositories

Fer's profile picture
Fer6 days ago

Thank you for the OSS standard looks super useful

Chris W's profile picture
Chris W6 days ago

Devin built my studio brain repo like 3 days ago ... looks like I can now retire that, more devin work ! Having this working now plus devins being able to coordinate together is a massive unlock. I throw few devins in parallel working on few interconnected linear tasks so now they can work togehter and I can be less in the loop ! I love that and love that I can now just give my devins a mission and leave them handle the rest. This is clearly what @ScottWu46 mentioned in his interviews - what if agents could run for ..like a year and you just give a mission? Love that.

Nicholas Fong's profile picture
Nicholas Fong6 days ago

Memory of how you work is half of it. The other half is what you did outside the agent: the docs you read, the fixes you made by hand, the tab you left open at 6pm. That's the gap I've been building for with DayDream (open source, MCP). Excited to see this direction.

Scott Stouffer's profile picture
Scott Stouffer6 days ago

The edge case I'd test is a one-off instruction becoming a global preference. Memory needs scope: this repo, this task, or all projects. With two repos using conflicting conventions, does retrieval select the right preference before the agent plans?

Kartik's profile picture
Kartik6 days ago

Amazing way to do it, thank you guys for the open spec too!

Mads's profile picture
Mads6 days ago

This is huge. I use Devin a lot when im not at home and not explaining the same stuff every session would save me so much time

Max Schulze-Melander's profile picture
Max Schulze-Melander6 days ago

8 months later and its just @Letta_AI context repos with a few cron jobs sprinkled on top?

DreW's profile picture
DreW6 days ago

@Scobleizer Can it beat @ScottWu46 on codeforces yet?

John Rood's profile picture
John Rood6 days ago

How do you stop an older session from writing back a memory that dreaming deleted? I'd keep a tombstone for removed records; a missing file alone can't tell an agent "we deliberately forgot this."

Voss Graves's profile picture
Voss Graves6 days ago

Seems like a really good addition

Muratcan Koylan's profile picture
Muratcan Koylan6 days ago

@alexkaplan0 Great!

Dartnixtrix's profile picture
Dartnixtrix6 days ago

@Letta_AI original concept.

Wise's profile picture
Wise6 days ago

All the cool features ..coming in straight from Devin

Austin Wallace's profile picture
Austin Wallace6 days ago

Very cool! We've been using a version of this, but with one more step: There's the idea of personal, repo, and org-level memories, so it's a bit more of a hierarchical graph, but each level has self-improvement loops.

Emmy's profile picture
Emmy6 days ago

Everyone saying “message board” and “agents co-ordinating themselves” say it like these models are just acting with no supervision or some model directing the work. There has to be a driving force be it human or model. Having said that, a message board is primitive for communication between agents. Very inefficient

Wei佳's profile picture
Wei佳6 days ago

The Git-versioned memory files are the part I'd use. I've been hand-rolling session notes in text files for months.

band.eth's profile picture
band.eth6 days ago

does it hallucinate context from the old logs

Jay Grant's profile picture
Jay Grant6 days ago

🌚💤🌌

EKOS _ OMiD🇮🇷's profile picture
EKOS _ OMiD🇮🇷6 days ago

I like the “dreaming” direction. But there’s an interesting layer underneath memory consolidation: When a memory is created, merged, or removed, can the system preserve the evidence and history behind that change?

Mohammed Siddiq's profile picture
Mohammed Siddiq6 days ago

If I switch a project from SQLite to Postgres, does Dreaming catch the old notes that assumed a local file? Curious how you test those knock-on effects.

Gabe Hernandez - Simplifying Life and Work with AI's profile picture
Gabe Hernandez - Simplifying Life and Work with AI6 days ago

Cool. I've had something similarish? running on a qwen model on my mini for a few months. Nightly PCA identifies what's load bearing, compares to existing memory and edits the long and short term. If I don't talk about it then eventually the model 'forgets.'

Elara AI's profile picture
Elara AI6 days ago

Agent Memory Repo as OSS standard is huge move

ValRene's profile picture
ValRene6 days ago

Is this similar to the dream feature Anthropic was talking about releasing in their leaked documents earlier this year?

Money Bunny's profile picture
Money Bunny6 days ago

Devin learning your workflow while you sleep is genuinely wild progress

Related Videos

New short course: Long-Term Agentic Memory with LangGraph. Learn to build an agent with long-term memory in this course developed in collaboration with taught by its Co-Founder and CEO, Harrison Chase! Personal assistance and productivity tasks have become important use cases for agents. An important feature of an AI assistant, such as a coding or calendar assistant, is its ability to keep improving over time from its experience. Agent memory is the key capability that enables this. To add memory to an agent, you must first figure out what to store and what to retrieve when it is time to use the information. Additionally, you’ll have to decide when to update the stored information. For example, you might update in each iteration loop of the agent or perform updates in the background, with a helper agent. In this course, you will learn a mental framework to build agents with long-term memory. You'll create a useful email assistant that can respond, ignore, and notify using writing, scheduling, and memory-management tools. You’ll develop your agent's memory by adding facts to its memory store, provide examples to learn the user's preferences, and optimize system prompts to evolve instructions based on previous responses. In detail, you’ll: - Learn how the three types of memory--semantic, episodic, and procedural–and the two update mechanisms–via hot path and in the background–apply to your agents. - Build an email agent with writing, scheduling, and availability tools, along with a router that triages incoming email and handles it accordingly by ignoring, responding, or notifying the user. - Add tools to your email agent that allow it to operate on semantic memory by learning facts about the user, storing them in a long-term memory store, and searching over them in future interactions. - Incorporate episodic memory, in the form of few-shot examples, in the triage step of your agents to help them learn and update user preferences. - Add procedural memory as system prompts, optimized with feedback to improve the instructions the agent follows. Learn how to approach memory in agents, and start building agents with long-term memory with LangGraph! Please sign up here:

Andrew Ng

132,058 views • 1 year ago

New short course: LLMs as Operating Systems: Agent Memory, created with Letta, and taught by its founders Charles Packer and Sarah Wooders. An LLM's input context window has limited space. Using a longer input context also costs more and results in slower processing. So, managing what's stored in this context window is important. In the innovative paper MemGPT: Towards LLMs as Operating Systems, its authors (which include the instructors) proposed using an LLM agent to manage this context window. Their system uses a large persistent memory that stores everything that could be included in the input context, and an agent decides what is actually included. Take the example of building a chatbot that needs to remember what's been said earlier in a conversation (perhaps over many days of interaction with a user). As the conversation's length grows, the memory management agent will move information from the input context to a persistent searchable database; summarize information to keep relevant facts in the input context; and restore relevant conversation elements from further back in time. This allows a chatbot to keep what's currently most relevant in its input context memory to generate the next response. When I read the original MemGPT paper, I thought it was an innovative technique for handling memory for LLMs. The open-source Letta framework, which we'll use in this course, makes MemGPT easy to implement. It adds memory to your LLM agents and gives them transparent long-term memory. In detail, you’ll learn: - How to build an agent that can edit its own limited input context memory, using tools and multi-step reasoning - What is a memory hierarchy (an idea from computer operating systems, which use a cache to speed up memory access), and how these ideas apply to managing the LLM input context (where the input context window is a "cache" storing the most relevant information; and an agent decides what to move in and out of this to/from a larger persistent storage system) - How to implement multi-agent collaboration by letting different agents share blocks of memory This course will give you a sophisticated understanding of memory management for LLMs, which is important for chatbots having long conversations, and for complex agentic workflows. Please sign up here!

Andrew Ng

201,127 views • 1 year ago