Skip to main content

Module claude_code

Module claude_code 

Source
Expand description

The Claude Code adapter: ~/.claude/projects/**/*.jsonl.

The transcript schema is undocumented and drifts between releases, so this parser is deliberately tolerant: it reads through serde_json::Value, ignores unknown keys, skips the record types that carry no usage, and counts rather than fails on a line it cannot read.

~/.claude/projects is also where Claude Code keeps its own memory. Nothing here opens a file for anything but reading.

Structs§

ClaudeCodeAdapter

Constants§

AGENT
Adapter name, and the agent field on every event it produces.
DEFAULT_ROOT
~/.claude/projects, unless config overrides it.
PROVIDER
Every model in these transcripts is an Anthropic one.