langgraph-persistence

Manage LangGraph state persistence with checkpointers, threads, and time travel.

Updated Apr 7, 2026
One-click install
npx skills add https://github.com/abdullahhqaiser/langgraph_diligence --skill langgraph-persistence-abdullahhqaiser
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: langgraph-persistence
Source: https://github.com/abdullahhqaiser/langgraph_diligence/tree/main/.agents/skills/langgraph-persistence
Command: npx skills add https://github.com/abdullahhqaiser/langgraph_diligence --skill langgraph-persistence-abdullahhqaiser

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires langgraph, sqlite3, psycopg2, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenge of managing state persistence and configuration for LangGraph, enabling durable execution and state management across different scenarios.

Core Features & Use Cases

  • State Persistence: Offers various checkpointers for saving and loading graph state, including in-memory, SQLite, and PostgreSQL options.
  • Thread Management: Allows for isolated state between different thread IDs, enabling concurrent conversations with separate states.
  • Time Travel: Enables browsing and replaying checkpoint history, as well as forking from past states for different execution paths.
  • Subgraph Checkpointer Scoping: Provides control over persistence behavior for subgraphs, supporting interrupts, multi-turn memory, and parallel execution.
  • Long-Term Memory (Store): Offers cross-thread memory for user preferences and facts, facilitating shared state across conversations.

Quick Start

Use the langgraph-persistence skill to set up a basic graph with in-memory checkpointing and thread-based state persistence by running the following command: langgraph-persistence setup in-memory.

Frequently Asked Questions about langgraph-persistence

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I persist LangGraph state across different execution threads?

LangGraph state persistence is managed using checkpointers that save and load graph states. This enables isolated thread management, allowing concurrent conversations to maintain separate execution states using in-memory, SQLite, or PostgreSQL databases.

Can I replay or fork LangGraph execution from a previous checkpoint?

LangGraph checkpointing supports time travel by allowing you to browse checkpoint history. You can replay past execution states and fork from previous checkpoints to explore different execution paths within your graph workflow.

Does LangGraph support cross-thread memory for storing user preferences?

LangGraph provides a long-term memory store that facilitates cross-thread memory. This allows you to maintain shared state across conversations, retaining user preferences and facts beyond the lifecycle of isolated thread execution.

How do I configure checkpointing scope for LangGraph subgraphs?

LangGraph persistence provides subgraph checkpointer scoping to control persistence behavior for subgraphs. This manages multi-turn memory and handles parallel execution within isolated subgraph states, supporting complex workflow interruptions.

What database drivers are required for LangGraph state persistence?

LangGraph state persistence requires the LangGraph framework alongside relevant database drivers like sqlite3 for SQLite or psycopg2 for PostgreSQL. These dependencies enable durable execution and permanent state storage across graph runs.

What is the best way to set up basic in-memory checkpointing in LangGraph?

Setting up basic in-memory checkpointing in LangGraph involves using the persistence configuration command. This initializes a basic graph with thread-based state persistence for temporary, non-durable execution state management.