Skip to main content

Module sessions

Module sessions 

Source
Expand description

Session history helpers aligned with the Python SDK.

This module scans Claude session transcript files under ~/.claude/projects/ (or CLAUDE_CONFIG_DIR) and exposes:

Functionsยง

get_session_messages
Returns chronological user/assistant messages for a saved Claude session.
list_sessions
Lists session metadata from Claude session transcript files.