Skip to main content

Module scanner

Module scanner 

Source
Expand description

Session file discovery — thin wrapper around cc-session-jsonl’s scanner.

Re-exports the core scanner functions and types. The load_agent_meta function converts cc-session-jsonl’s AgentMeta into the (String, String) tuple format expected by the existing analysis layer.

Structs§

SessionFile
Metadata about a session JSONL file on disk.

Functions§

load_agent_meta
Load agent metadata from .meta.json files for a given session. Returns a map of agent_id (e.g., “agent-abc123”) -> (agentType, description).
resolve_agent_parents
For legacy agent files that have no parent_session_id yet, read the first JSON line and extract the sessionId field to use as parent_session_id.
scan_claude_home
Scan ~/.claude/projects/ for all session JSONL files and return metadata.
scan_sessions_raw
Scan ~/.claude/projects/ for all session JSONL files and return metadata.