Skip to main content

Module sessions_fs

Module sessions_fs 

Source
Expand description

Session filesystem operations for Claude’s on-disk JSONL transcripts.

Functions§

delete_session
Delete a session transcript and its sidecar subagent directory if present.
get_session_info
Get information about a specific session.
get_session_messages
Get all visible user/assistant messages for a specific session.
get_subagent_messages
Get visible user/assistant messages for a specific subagent transcript.
list_sessions
List all sessions from Claude’s project transcript directories.
list_subagents
List subagent IDs for a specific session.
rename_session
Rename a session by appending the same custom-title metadata line the CLI uses.
tag_session
Tag a session by appending a tag metadata line. None clears the tag.