Claude Transcripts docs GitHub
Work in progressUnder active development — not tested as ready for use. Breaking changes land without notice, stored data may need to be discarded between revisions, and there is no auth or security model.

Claude Code compatibility

Claude Transcripts is a set of Claude Code hooks, so it depends on which hook events Claude Code fires and what their payloads carry — and both change between releases. Every session checks this for you, and claude-transcripts compat checks it on demand (ADR 0025).

The check at session start

The session-start banner ends with one line when all is well:

● Claude Transcripts recording → claude-transcripts-sessions@localhost
✓ Hook spec matches Claude Code 2.1.310 (33 events, 11 recorded)

and a short summary when it isn't:

△ Hook spec drift with Claude Code 2.1.310:
  · new events we don't handle: DirectoryAdded, PostModelSwitch, PreModelSwitch
  · Stop: +last_assistant_message −turn_number
  Details: claude-transcripts compat
LineMeaning
recorded, but no longer firedAn event we record is gone. History is being lost — upgrade Claude Transcripts.
new events we don't handleClaude Code added events our catalogue doesn't list. Nothing breaks; they just aren't recorded.
listed, but no longer firedAn event we list (but don't record) is gone. Cosmetic.
<Event>: +field −fieldPayload fields (or field=value values) that changed, on events we record, since the version this build was checked against. common fields are the ones every event carries.
? … not checked yetThis build doesn't ship the spec for your Claude Code version. It is fetched in the background; the next session shows the result.

The check is skipped after a compaction (same session, same binary). It never delays the session: the comparison is local, and the one network fetch runs detached.

Where the spec comes from

Every Claude Code release ships a matching release of @anthropic-ai/claude-agent-sdk on npm. Its package.json names the Claude Code version (claudeCodeVersion), and its sdk.d.ts declares HOOK_EVENTS and one <Event>HookInput type per event. A published npm version can't change, so this is an exact, reproducible answer for each Claude Code version — unlike the prose docs, which only describe the latest one.

On demand

claude-transcripts compat                         # the installed Claude Code
claude-transcripts compat --cc-version 2.1.250    # any released version
claude-transcripts compat --json                  # the full report

It exits 0 when in step, 1 on drift, 2 when no spec could be had (offline, or a version with no SDK release).

Not yet