dsh-session-cleaner

Preview and permanently delete archived Sessions from Settings → Session cleanup. The preview lists Session logs, projection checkpoints, attachments referenced only by the selected Sessions, spilled tool output, and workspace files they produced; choose ranges, inspect every path, then confirm twice. Safety checks block running Sessions, shared references, symlinks or junctions, protected paths, and stale previews; journal, pending bookkeeping, and a recovery mode handle partial failures and restarts. Install the optional companion session-archive (https://github.com/THao712/dsh-session-archive) to give every conversation its own folder; this plugin can then delete or clean that folder, keep out/ deliverables, and remove orphan folders. The companion is installed separately and is not downloaded automatically; log, attachment, and workspace cleanup works without it.

Overview

Preview and permanently delete archived Sessions from Settings → Session cleanup. The preview lists Session logs, projection checkpoints, attachments referenced only by the selected Sessions, spilled tool output, and workspace files they produced; choose ranges, inspect every path, then confirm twice. Safety checks block running Sessions, shared references, symlinks or junctions, protected paths, and stale previews; journal, pending bookkeeping, and a recovery mode handle partial failures and restarts. Install the optional companion session-archive (https://github.com/THao712/dsh-session-archive) to give every conversation its own folder; this plugin can then delete or clean that folder, keep out/ deliverables, and remove orphan folders. The companion is installed separately and is not downloaded automatically; log, attachment, and workspace cleanup works without it.

Installation

Install from GitHub

dsh plugin --profile web add github:THao712/dsh-session-cleaner

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.

Installation notes

  • May run terminal commands