Skip to main content

Crate parsentry_claude

Crate parsentry_claude 

Source
Expand description

Claude Code session reader

Reads session JSONL files from ~/.claude/ and extracts events such as tool calls, text responses, and completion markers.

Structs§

Session
Active Claude Code session
SubagentMeta
Subagent metadata

Enums§

SessionEvent
Event extracted from session JSONL

Functions§

extract_surface_id
Extract the initial prompt content from a session JSONL (queue-operation). Useful for identifying which SURFACE-XXX a session is analyzing.
find_active_project_sessions
Find session IDs in a project directory that are currently active.
list_active_sessions
List active Claude Code sessions by reading ~/.claude/sessions/. Only returns sessions whose PID is still alive.
list_subagents
List subagents for a given session.
project_sessions_dir
Resolve the project sessions directory for a given working directory.
read_events_from
Read new events from a JSONL file starting at offset bytes. Returns the events and the new offset for the next read.