Thread management using LangGraph's built-in checkpoint persistence.
Format ISO timestamp for display (e.g., 'Dec 30, 6:10pm').
Get path to global database.
Generate a new 8-char hex thread ID.
List threads from checkpoints table.
Get most recent thread_id, optionally filtered by agent.
Get agent_name for a thread.
Check if a thread exists in checkpoints.
Find threads whose IDs start with the given prefix.
Delete thread checkpoints.
Get AsyncSqliteSaver for the global database.
Read the thread listing limit from DA_CLI_RECENT_THREADS.
Falls back to _DEFAULT_THREAD_LIMIT when the variable is unset or contains
a non-integer value. The result is clamped to a minimum of 1.
CLI handler for deepagents threads list.
Fetches and displays a table of recent conversation threads, optionally filtered by agent name.
CLI handler for: deepagents threads delete.