Expand description
Transcript linking and token extraction.
Reads Claude Code transcript files (JSONL), extracts token usage (deduplicated by message.id), modified files, and spawned agent IDs.
Structs§
- Conversation
Message - A conversation message suitable for display.
- Diff
Result - Thinking
Block - A captured thinking/reasoning block from an assistant message.
- Transcript
Analysis - Results from parsing a transcript.
Functions§
- archive_
transcript_ to_ git - Copy a transcript file into
.git/chub/transcripts/for local review. The copy is stored as<session_id>.jsonlinside the repo’s.gitdirectory so it won’t be committed but is available for LLM review. - calculate_
attribution - Calculate line attribution between two commits.
- claude_
projects_ dir - Find the Claude Code projects directory for a given repo path.
Returns
~/.claude/projects/<sanitized-repo>/. - find_
transcript - Find a Claude Code transcript file for a session.
- get_
diff_ files - Get files modified since a given commit using git diff-tree.
- parse_
conversation - Parse a transcript into displayable conversation messages. Filters out system messages and deduplicates by UUID.
- parse_
transcript - Parse a Claude Code transcript file and extract token usage and metadata. Deduplicates by message.id (Claude streams may create multiple entries).
- parse_
transcript_ range - Parse a range of a transcript (from byte offset, optionally limited lines).
- transcript_
line_ count - Count lines in a transcript file.
- transcript_
size - Get the byte size of a transcript file.