DeepSeek Harness Plugin

zoahdev/dsh-shelf

Stars ★ 0 Category Sessions & Messages Added 2026-08-15

Session lifecycle CLI: export (md/json/jsonl), archive/restore, trash, search, and stats. Read-only by default; nothing is ever deleted by the engine.

Install

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:zoahdev/dsh-shelf

Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time. Only install sources you trust, and pin a commit (github:owner/repo#sha).

README

Session lifecycle for DeepSeek Harness: export, archive, restore, trash, search, and stats for your dsh session library. Zero dependencies, read-only by default.

Every dsh user accumulates hundreds of sessions and has no way to manage them (#1990, #1991). dsh-shelf is the missing shelf.

Quick start

npx dsh-shelf list                          # every session with id + path
npx dsh-shelf stats                         # counts, compressed/plain, bytes
npx dsh-shelf search "parser bug"           # header + body search (plain sessions)
npx dsh-shelf export <id> --format md       # Markdown transcript to stdout
npx dsh-shelf export --all --format jsonl --out all-sessions.jsonl
npx dsh-shelf archive <id>                  # move to sessions-archive (never deletes)
npx dsh-shelf restore <id>                  # move it back
npx dsh-shelf trash <id>                    # move to sessions-trash (recoverable)
npx dsh-shelf restore-trash <id>
npx dsh-shelf report                        # weekly session digest (Markdown)
npx dsh-shelf report 30 --format json       # 30-day digest as JSON
npx dsh-shelf report 14 --format html --out shelf-report.html   # offline dashboard
npx dsh-shelf verify                        # session health check (orphan tool calls, unfinished, empty)
npx dsh-shelf rescue <id>                   # export an un-resumable session's content
npx dsh-shelf archive-old 30                # dry run: sessions older than 30 days
npx dsh-shelf archive-old 30 --yes          # move them to sessions-archive
npx dsh-shelf web                           # local web panel at http://127.0.0.1:4174

DSH plugin mode (panel bound to the active profile):

dsh plugin --profile web add github:zoahdev/dsh-shelf
# panel at http://127.0.0.1:4174 (committed lib/, no build at install)

Roots: --root overrides; default is $DSH_SESSIONS or ~/.dsh/sessions. Archive/trash roots default to sessions-archive / sessions-trash next to the root.

Safety model

  • Listing, stats, export, and search are strictly read-only.
  • Archive/trash move a session directory; nothing is ever deleted by the engine.
  • Export never touches the source file.
  • Zstandard-compressed sessions are detected and reported (plain-JSONL export in v0.1; raw jsonl path preserved).

Development

node --test tests/shelf.test.mjs
node scripts/shelf.mjs list --root <fixtures>

Why this is the gap

  • Official discussions #1990 (no way to delete a conversation) and #1991 (archived sessions cannot be viewed or restored) are unanswered feature requests.
  • The session category has 229 plugins - memory, recall, evolution - but almost nothing for lifecycle.
  • dsh-shelf is the safe, scriptable first step: build export/archive/trash/search, then a web UI on top.

Roadmap

  • list / stats / export (md/json/jsonl) / archive / restore / trash / search
  • weekly digest (report) + auto-archive (archive-old, dry-run by default)
  • local web panel (dsh-shelf web) - list/search/export/archive/trash + daily chart from the browser
  • offline HTML dashboard (report --format html) - shareable per-day bars + largest sessions
  • Chinese search via CJK bigram tokenizer (zero-dependency; aligns with #1999)
  • DSH plugin wrapper (dsh plugin add github:zoahdev/dsh-shelf opens the panel)
  • session health check (verify) + rescue export for un-resumable sessions (#1959/#2034 family)
  • FTS5-backed search when the host provides SQLite FTS5
  • Zstandard export (node:zlib decode on Node >= 22.19)

License

MIT

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →