agterm-win 0.45.5 · cookbook

Session snapshot

Record every open session, with its folder, command, Claude conversation and last screen lines, as an HTML page you can browse. Each session on the page has a one-line restore command.

In agterm-win · Set it up in WSL · On Windows · The recipe

In agterm-win

An agterm-server session in an Ubuntu distribution, in a fresh agterm-win with the Nordic Blue Dark theme.

The agterm snapshot page in an overlay listing the workspaces and sessions
The snapshot page in an HTML overlay: every workspace and session, each with a copy button for its restore line.

Set it up in WSL

In the distribution, from a copy of the recipe's folder.

$ sudo apt install jq python3
$ mkdir -p ~/.local/share/agterm
$ cp -R session-snapshot ~/.local/share/agterm/
$ chmod +x ~/.local/share/agterm/session-snapshot/*.sh

Then, from a shell in an agterm session:

$ ~/.local/share/agterm/session-snapshot/snapshot.sh
$ agtermctl session overlay open --html ~/agterm-snapshots/latest.html \
    --size-percent 92 --target "$AGTERM_SESSION_ID"

On Windows

  • snapshot.sh --open calls macOS open. In WSL, show the page with session overlay open --html instead.

The recipe, with how it works and its limits: cookbook/session-snapshot.

← FZF path picker · All recipes · Annotate document →