pub fn parse_subagents(session_path: &Path) -> Vec<Session>Expand description
Parse a Claude Code JSONL transcript file into a Session
§Arguments
path- Path to the .jsonl transcript file
§Returns
Returns a Session containing all parsed execution nodes with metadata.
§Errors
Returns HindsightError if:
- File cannot be read
- JSONL format is invalid
- JSON parsing fails
§Example
ⓘ
use hindsight::parser::parse_session;
use std::path::Path;
let session = parse_session(Path::new("session.jsonl"))?;
println!("Found {} tools", session.total_tools);Parse all subagent JSONL files associated with a session.
Subagent files live at <parent>/<session_stem>/subagents/*.jsonl.
Each subagent may use a different model (e.g., haiku spawned from a sonnet session).