Hwayn-pixel/dsh-clipbook ↗★ 0

dsh-clipbook

DSH 小夹子:把对话里值得留的话夹起来——一键收藏助手回复,随手翻、随手取、随手导出。 适合需要随时收藏、整理、检索和导出对话中重要回复的桌面或 Web 端用户。

パッケージ
dsh-clipbook
互換性
未検証
バージョン
0.1.0
ライセンス
MIT
最終更新
2026/10/03

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Hwayn-pixel/dsh-clipbook

ドキュメント

README 全文を読む ↗

dsh-clipbook · 小夹子

A clipbook for your DSH conversations. One click on any assistant reply to keep it; a 🦊 button in the session header opens your clips — browse, search, copy, delete, export.

DeepSeek Harness plugin · MIT · works on desktop and web

English | 简体中文


What it does

  • 🔖 夹一下 (Clip) — every finalized assistant message gets a clip button. One click saves that reply (text + model + time + message id) into your clipbook.
  • 🦊 小夹子 (N) — a button in the session header shows how many clips you have and opens a panel: browse, search, copy, delete, export to Markdown.
  • Settings page — the same shelf, another view.
  • One shelf, shared — clips live in one file, so the web UI and the desktop app see the same collection.

Why

DSH is all about long agent runs, and the good answers scroll away. 小夹子 is a place to keep the few lines worth keeping — a conclusion, a snippet, a phrasing — without copying them into another app.

Install

dsh plugin --profile desktop add dsh-clipbook     # desktop app
dsh plugin --profile web add dsh-clipbook         # web UI

Restart DSH. Then, in any assistant message's action row you will see 🔖 夹一下, and 🦊 小夹子 appears in the session header.

Use

You wantDo this
keep a replyclick 🔖 夹一下 under that reply (it turns into 📌 已夹)
see your clipsclick 🦊 小夹子 (N) in the session header
searchtype in the box at the top of the panel
copy one复制
remove one拿掉
export all导出 (opens the whole clipbook as Markdown)

Where data lives

$DSH_HOME/clipbook/items.json (DSH_HOME defaults to ~/.dsh). Plain JSON — delete it to clear the shelf (it is recreated).

Limits

  • Clips the text of assistant replies (reasoning and tool output are not clipped).
  • One shelf per DSH_HOME — that is a feature, not a clone-per-profile bug.

Development

npm install
npm run build      # src/index.ts -> lib/index.js ; src/client/index.ts -> lib/client.js
npm run typecheck
npm test           # pure-logic unit tests (against the built bundles; no DSH needed)

Authors & license

  • Author: Hwayn (幻弈)
  • Collaborator: Yucheng Xiao (肖宇成) — direction, requirements, testing
  • License: MIT