langgraph-persistence
Skill by langchain-ai
Guides developers on adding persistence to LangGraph apps. It covers checkpointers, thread IDs, time travel, the Store and subgraph persistence modes.
Install langgraph-persistence
Built from the published package, never by AI.
git clone --depth 1 https://github.com/langchain-ai/langchain-skills /tmp/langchain-skills && mkdir -p ~/.claude/skills && cp -r /tmp/langchain-skills/config/skills/langgraph-persistence ~/.claude/skills/langgraph-persistenceRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/langchain-ai/langchain-skills /tmp/langchain-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/langchain-skills/config/skills/langgraph-persistence ~/.gemini/antigravity-cli/skills/langgraph-persistenceAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install langgraph-persistence in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill gives an AI assistant guidance on persistence in LangGraph. A checkpointer saves graph state at every super-step, and a thread_id keeps separate conversations apart. Time travel lets you browse checkpoint history, replay a past state or fork from it. The Store adds cross-thread memory for things like user preferences and facts.
The skill explains how to choose a checkpointer: InMemorySaver for testing and development, SqliteSaver for local development, and PostgresSaver for production. It also covers subgraph checkpointer modes (False, the default, and True for multi-turn memory). Examples are given in Python and TypeScript. It is aimed at developers building LangGraph apps that need to persist state or remember conversations.
Written from the project's SKILL.md and checked against it.
What it can do
- CheckpointingSaves and loads graph state at every super-step using a checkpointer.
- Thread-based memoryUses thread_id to keep separate conversation histories isolated.
- Time travelBrowses checkpoint history and replays or forks from a past state.
- Manual state updatesUpdates graph state with update_state before resuming execution.
- Subgraph checkpointer modesSets checkpointer=False, the default, or True to control subgraph persistence.
- Cross-thread memoryUses a Store, such as InMemoryStore, to keep data shared across threads.
What you need
- LangGraph installed in Python or TypeScript
- A PostgreSQL database for the PostgresSaver production example
Try asking
- Add conversation memory to my LangGraph app using a thread_id.
- Show me how to replay my graph from an earlier checkpoint.
- Set up PostgresSaver for production in my LangGraph project.
Good to know
- InMemorySaver is for testing and development only, not production.
- SqliteSaver is rated as partially production ready.
- Stateful subgraphs (checkpointer=True) cannot be called multiple times from a single node.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: config/skills/langgraph-persistence/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to langgraph-persistence
All alternatives →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
Compare with agent-reproduce-align, google_contacts or m06-error-handling
langgraph-persistence: common questions
What is the difference between a checkpointer and the Store in LangGraph?
A checkpointer handles short-term, thread-scoped conversation history. The Store handles long-term memory such as user preferences that can be shared across threads.
Which checkpointer should I use in production?
The source lists PostgresSaver as production ready. It recommends running setup() once during deployment rather than at application startup.
When should a subgraph use checkpointer=True?
Use it when the subgraph needs to remember state across invocations, such as multi-turn conversations. Each call then picks up where the last one left off.
How do I install langgraph-persistence?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is langgraph-persistence free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is langgraph-persistence safe to use?
It scores 87 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to langgraph-persistence?
Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.
