Claude Code Web Session Archiver

Archive a full Claude Code Web session into one self-contained HTML file: auto-scroll, expand collapsed blocks, download screenshots, optional fast mode and code-strip. Multi-locale UI (EN/RU/DE/FR/ES) auto-selected from the browser locale.

Tendrás que instalar una extensión para tu navegador como Tampermonkey, Greasemonkey o Violentmonkey si quieres utilizar este script.

You will need to install an extension such as Tampermonkey to install this script.

Tendrás que instalar una extensión como Tampermonkey o Violentmonkey para instalar este script.

Necesitarás instalar una extensión como Tampermonkey o Userscripts para instalar este script.

Tendrás que instalar una extensión como Tampermonkey antes de poder instalar este script.

Necesitarás instalar una extensión para administrar scripts de usuario si quieres instalar este script.

(Ya tengo un administrador de scripts de usuario, déjame instalarlo)

Advertisement:

Tendrás que instalar una extensión como Stylus antes de poder instalar este script.

Tendrás que instalar una extensión como Stylus antes de poder instalar este script.

Tendrás que instalar una extensión como Stylus antes de poder instalar este script.

Para poder instalar esto tendrás que instalar primero una extensión de estilos de usuario.

Para poder instalar esto tendrás que instalar primero una extensión de estilos de usuario.

Para poder instalar esto tendrás que instalar primero una extensión de estilos de usuario.

(Ya tengo un administrador de estilos de usuario, déjame instalarlo)

Advertisement:

Autor
Contento-R
Instalaciones diarias
0
Instalaciones totales
9
Calificaciones
0 0 0
Versión
1.11.0
Creado
21/5/2026
Actualizado
8/6/2026
Tamaño
126 KB
Licencia
MIT
Funciona en

Save the **entire** Claude Code Web session — including history the cloud has already compacted — as a single self-contained HTML file with all screenshots embedded as `data:` URLs. Also exports Markdown and JSON.

A small, **auto-collapsing** green panel appears on `code.claude.com`, `claude.ai/code` and `claude.com/code` with five controls:

- **⬇ Archive** — walks the whole session, captures every message in chronological order, downloads screenshots, and saves a portable file you can open offline in any browser.
- **⚡ Fast** — toggles an aggressive timing profile and parallelizes screenshot downloads from 6 to 10 concurrent requests.
- **📝 No code** — excludes code blocks Claude writes (tool calls, diffs, file viewers, `

` fences) so only the conversation between you and the agent is exported. Detection uses computed `font-family` on the live DOM, so it works regardless of how the upstream UI wraps its code containers.
- **⚙ Settings** — output format (HTML / Markdown / JSON), "only new" delta mode, range filter, local-only network mode, secret redaction (regex list), and "collapse assistant blocks by default".
- Drag handle (`⋮⋮`) on the left edge — panel position persists in `localStorage` and auto-clamps to the viewport on window resize so it never disappears off-screen.

3 s after the cursor leaves the panel it **shrinks to a small green circle**. Hover or focus re-expands it. Suspended during archiving and while the settings modal is open. The circle is also draggable.

Hotkeys: **Alt+A** to start, **Esc** to cancel.

The script does a daily background check against `main` on GitHub. When a newer version is published, a yellow dot appears on the ⚙ button and the settings modal shows an "Install" banner — clicking it lets Tampermonkey perform its normal reinstall flow.

## Why

Claude Code Web compacts long sessions — older turns disappear from the live thread and survive only as a summary. This script walks the live DOM while everything is still rendered, so you can save the full transcript (plus screenshots) before the next compaction.

## How it works

1. Jumps to the top, then auto-scrolls down step by step so the virtualizer renders every message. A MutationObserver wakes the loop as soon as new content appears, falling back to a configurable cap.
2. Expands every `
` and `aria-expanded="false"` disclosure block in view (skipped for code disclosures when *No code* is on). 3. Records each message's absolute Y position so the chronological order in the output matches what you see on the page, regardless of how the virtualizer interleaves rendering. 4. Detects role (User vs Claude) from `data-message-author-role` / `data-author` / `data-role` / `aria-label` attributes, falling back to computed alignment and geometric heuristics. Detects tool calls (Bash, Edit, Write, Read, Glob, Grep, WebFetch, WebSearch, Task, TodoWrite, NotebookEdit, NotebookRead, MultiEdit, ExitPlanMode, SlashCommand, KillShell) and model name (Opus / Sonnet / Haiku); per-message timestamps when `