# EP 69: LangGraph Remembers the Thread. Vilix AI Remembers the Work

- URL: https://www.agenticpod.net/episodes/ep69-langgraph-memory-survives/
- Watch on YouTube: https://www.youtube.com/watch?v=r8cSqFSRkUA
- Published: 2026-11-27
- Length: 6 min
- Hosts: Stella (asks), Liam (answers). Both are AI hosts with AI-generated voices.

## Summary

LangGraph remembers only inside one thread. Its checkpointer snapshots graph state after every node and keys it by thread_id, so the same conversation resumes after a crash or a restart, with crash recovery, human-in-the-loop pauses and time travel to earlier checkpoints.

## Key takeaways

- Inside one thread, LangGraph's checkpointer is real memory: it snapshots graph state after every node, keyed by thread_id, giving conversation continuity, crash recovery, human-in-the-loop pauses and time travel to earlier checkpoints.
- The tutorial default InMemorySaver keeps checkpoints in RAM and loses everything on restart. Production uses PostgresSaver for the checkpointer, and a Postgres or Redis backed store for cross-thread memory, plus a retention policy because checkpoint tables grow fast.
- A new thread_id starts from zero because threads are isolated by design. A nightly job with a fresh thread_id gets a brand-new agent every night: preferences learned on Monday, corrections made on Tuesday and facts gathered on Wednesday are all invisible on Thursday.
- The store is LangGraph's cross-thread system, but it is deliberate: nothing lands there unless your nodes call store.put(), with namespaces keyed by user_id, not thread_id, and reads via store.get() or store.search() at the start of each run. Treating the checkpointer itself as long-term memory is the most common LangGraph memory mistake.
- Vilix AI gives the agent one memory outside the LangGraph runtime: get_context at the start of every run and save_turn with source labels at the end, failed runs saved, newest wins, full conversation history with semantic recall across threads, sessions and tools, projects, project rules, user rules, skills and the agent inbox, one Vilix AI account per client, cloud hosted with zero infrastructure, export or delete anytime, free forever plan.

## Chapters

- 0:00 Intro
- 0:32 Inside one thread, the checkpointer works
- 1:27 A new thread starts from zero
- 2:31 The store helps, and it is all on you
- 3:32 The Vilix AI fix and the verdict

## FAQ

**Does LangGraph remember between runs?**

Within one thread, yes: the checkpointer restores the thread's state, so the same conversation continues across runs and restarts. Across threads, no: each new thread_id starts empty. Cross-thread memory needs the store, or a memory layer outside the runtime like Vilix AI.

**What is the difference between a LangGraph checkpointer and a store?**

A checkpointer saves thread-scoped graph state automatically after every node. A store persists application-defined data across all threads, but only what you explicitly write to it with store.put(). Production agents typically use both.

**Why does my LangGraph agent forget the user on a new conversation?**

Because the facts were saved in the checkpointer, which is scoped to the old thread_id. Move user-level facts (preferences, corrections, durable context) into the store keyed by user, or into Vilix AI, and read them at the start of each run.

**How does Vilix AI give a LangGraph agent memory across runs?**

Vilix AI is a cloud hosted memory layer outside LangGraph, connected over MCP. The agent calls get_context at the start of a run to load prior decisions, corrections and full conversation history, recalled semantically across threads, sessions and tools, and save_turn at the end to write back what it did and decided, with a source label. Failed runs are saved too, and the newest correction wins for every connected tool.

## Resources

- [Vilix AI, one shared memory for ChatGPT, Claude, Claude Code, Codex, Cursor, OpenClaw, Hermes and every MCP tool](https://vilix.ai)
- [Connect Vilix AI in under two minutes per tool](https://vilix.ai/get-started)
- [Read the full post](https://vilix.ai/blog/does-langgraph-remember-between-runs/)
- [Technical guide with commands and prompts](https://github.com/asly-97/ai-automation-workflows/tree/main/langgraph-memory-survives)

## Transcript

### Intro

Liam: Hey hey hey, welcome to Agentic Pod! I'm Liam.

Stella: And I'm Stella! Your LangGraph agent learns a user's preferences on Monday, takes a correction on Tuesday, and on Thursday knows none of it.

Liam: Not the preference, not the correction, not the facts from Wednesday.

Liam: Thursday is a new thread, and a new thread starts blank. LangGraph remembers the thread. Vilix AI remembers the work.

### Inside one thread, the checkpointer works

Stella: Start fair. Inside one thread, what does LangGraph actually remember?

Liam: A lot. The checkpointer snapshots graph state after every node.

Liam: It keys every snapshot by thread_id, the conversation's own ID.

Stella: So the same conversation resumes after a crash?

Liam: Exactly. Crash recovery, human review pauses, even time travel.

Liam: Pause a thread, let a person edit the pending state, resume it.

Liam: Rewind to any earlier checkpoint when you debug.

Stella: That sounds like real memory.

Liam: Inside the thread, it is. It remembers where this conversation was.

Liam: One catch. The tutorial default, InMemorySaver, keeps checkpoints in RAM.

Liam: Restart the process and every checkpoint is gone.

Stella: So production swaps it for PostgresSaver.

Liam: Right. LangGraph's own docs call the in-memory one a development tool.

### A new thread starts from zero

Stella: Okay, so where does it break?

Liam: Threads are isolated by design. Each thread_id is its own island.

Liam: The new thread's checkpointer cannot reach the old thread's snapshots.

Liam: It answers one question: what was happening in this conversation?

Stella: And never: what do I know about this user?

Liam: Never. Now run that agent on a schedule.

Liam: A nightly job starts a fresh thread_id every night.

Liam: So it gets a brand-new agent every night.

Stella: Preferences Monday, corrections Tuesday, facts Wednesday, all invisible Thursday.

Liam: That is pain one, and teams hit it in production.

Liam: A real user reports the agent forgot everything about them.

Stella: Because the facts landed in the checkpointer, scoped to a dead thread.

Liam: A September 2026 field guide named the mistake exactly.

Liam: Developers use the checkpointer as a drop-in ConversationBufferMemory.

Liam: Then they expect user preferences to survive across sessions. They do not.

### The store helps, and it is all on you

Liam: LangGraph does ship a second system for this. The store.

Stella: Cross-thread memory, built in?

Liam: Built in, but deliberate. Nothing lands there automatically.

Liam: Your nodes call store.put() with a namespace and a key.

Liam: Namespace by user_id, never by thread_id. One user has many threads.

Stella: And reading it back?

Liam: store.get() or store.search() at the start of each run.

Liam: Production agents run both systems at once.

Liam: Checkpointer for the thread's working state, store for durable facts.

Stella: Plus the database bill.

Liam: Plus the database. Postgres or Redis behind the store.

Liam: And checkpoint tables grow fast under real traffic.

Liam: You prune them yourself, a retention job deleting old checkpoints.

Stella: And that memory still lives inside LangGraph only?

Liam: Only inside the LangGraph runtime. Your other tools cannot read it.

Liam: So what does an agent actually need across every run and every tool?

### The Vilix AI fix and the verdict

Liam: It needs the reasoning and the facts, wherever the run happens.

Stella: In Vilix AI, I assume.

Liam: In Vilix AI. A cloud hosted memory layer, zero infrastructure to run.

Liam: No Postgres to host, no checkpoint tables to prune.

Stella: Walk the run for me.

Liam: At run start, the agent calls get_context in Vilix AI.

Liam: Prior decisions, corrections and full conversation history come back.

Liam: Vilix AI recalls semantically, across threads, sessions and tools.

Liam: End of run, it calls save_turn in Vilix AI with a source label.

Stella: So Thursday's run knows which thread wrote what?

Liam: Exactly. Source labels in Vilix AI, and failed runs get saved too.

Stella: A failed nightly run teaches Friday instead of repeating silently.

Liam: And correct something once in Vilix AI, the newest version wins.

Stella: Everywhere meaning beyond LangGraph?

Liam: The same Vilix AI memory serves the LangGraph agent and Claude.

Liam: And Codex, and your n8n workflows, over MCP in Vilix AI.

Liam: A headless agent connects to Vilix AI with an API key.

Stella: Standing instructions, like always use bullet points for this user?

Liam: Projects and project rules live in Vilix AI. User rules live in Vilix AI.

Liam: Repeat workflows become skills in Vilix AI. Agents leave notes in the Vilix AI agent inbox.

Stella: Agencies running LangGraph agents for several clients?

Liam: One Vilix AI account per client, so each client's memory stays separate.

Stella: And leaving Vilix AI one day?

Liam: List, edit or delete memories in Vilix AI. Export everything, or wipe it.

Liam: Start free forever with Vilix AI, or try Pro for 7 days, no credit card.

Stella: My verdict: keep the checkpointer for the thread. Just stop asking it to be the memory.

Liam: Same. LangGraph remembers the thread. Vilix AI remembers the work. Which of your agents woke up blank this morning? Tell us below. See you next time!
