AI and agent tooling

Claude Code session archive

A Claude Code plugin that keeps a permanent, readable copy of every session, with every version of every file the agent touched, and puts any session back so it can be resumed. Hooks do the work, so it costs zero model tokens.

0
model tokens per session
~40 ms
per hook

Highlights

  • One folder per chat, with the conversation as Markdown, every file version, every screenshot and a byte-exact transcript
  • Save and import commands answered by hooks, never by the model, so they cost no tokens
  • Restored sessions continue with claude --resume and full context, and a live transcript is never overwritten
  • Python standard library only, tested on macOS and Linux in CI

Claude Code deletes CLI and VS Code transcripts after 30 days by default, files them by folder path, and stores them as raw JSON. This plugin copies every chat into a folder you can read, search and back up.

Hooks capture each file right after an edit, before anything can change it, and copy only the new part of the transcript on each save. Saves after a reply are throttled, so an archive in Google Drive or iCloud does not re-upload on every turn. Errors are logged and never block a turn.

/session-archive:import puts archived sessions back where Claude Code expects them, including subagent transcripts and file history, so rewind still works. It can also restore sessions from a backup or another machine’s .claude folder.

Theme

Let's connect

Questions about something I built, an idea about AI tooling or performance, or just want to say hello? My inbox is open.