Pins passages selected in a conversation into a per-conversation right-sidebar panel, marks them in the transcript, jumps back to the source passage on click, and quotes a pinned passage into the composer from the selection toolbar or by typing @; the panel tags, searches, filters and exports the pins as a Markdown outline.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-pins
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:ylw-ux/dsh-pins-fixtool
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 — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
中文 | English
Pin selected passages from a conversation into a right-sidebar note wall. Click one to jump back to its source, or type
@in the composer to quote it into your message.
A Web UI plugin for DeepSeek Harness. What gets lost while reading a long reply is where was I, and which sentences actually mattered — select, pin, come back. That is the whole of it.
What's new: 1.2.0 (2026-11-22)
This release makes your data portable. Settings gains "Backup & restore": export a JSON backup, import it after moving machines or clearing site data.
| Change | What it does |
|---|---|
| Export | Settings › Backup & restore: everything or the current conversation; if the download is refused, the text is copied to the clipboard and the notice says which path was used |
| Import | Pick a file → preview (new / duplicate / conflict / invalid) → confirm. Merge only, never delete |
| Conflicts | Same id with different content keeps the local copy by default; tick rows to overwrite, or open the full diff in a new tab |
| Report | A one-line summary plus a JSON report file after the import |
| Sessions not on this machine | An imported passage whose conversation is gone is marked "原会话不在本机": readable, copyable, not jumpable (derived at render time, never stored) |
| One check command | npm run check runs the guards and 13 probes |
Compatibility: the data format is unchanged; backup files additionally carry derivable fields (text / quote / rawQuote) so they restore across versions. An import never overwrites or deletes local passages unless you tick a conflict row.
The earlier 1.1.1 only fixed the version number in the README shipped inside the npm package; its code is 1.1.0.
Install
Requires the Harness Web UI (dsh web). One command — it also selects the bundle into your profile for you:
# from npm (recommended)
dsh plugin --profile web add dsh-pins
# from GitHub (when you want the latest commit)
dsh plugin --profile web add github:ylw-ux/dsh-pins-fixtool
# from a local directory (development; creates a link dependency, so edits
# apply after a page refresh)
dsh plugin --profile web add D:\path\to\dsh-pins
Then refresh the browser. If nothing happens, restart dsh.
Uninstall:
dsh plugin --profile web remove dsh-pins
Worth knowing:
- No pnpm build approval. The package has no
prepare/postinstallscript and no build step — plain JavaScript, usable the moment it installs, no "allow build scripts" prompt. - It touches nothing outside your profile. It adds one dependency to the profile's
package.json, one name todsh.profile.bundles, and its own patch row. - Your data stays in your browser. Passages live in
localStorage: never uploaded, never synced, no account. Clearing site data deletes all of it. Upgrading does not clear your passages — nor the standalone tags you created but have not used yet. - A 「固定片段」 entry with a count appears at the foot of the left sidebar (next to Settings); the side panel can also be opened from its tab in the right column.
Usage
1. Pin a passage
Select text in the conversation; an action bar appears above the selection:
| Button | What it does |
|---|---|
| Pin (固定) | Saves it to the right column and leaves a durable mark on the source text |
| Tag (标签) | Opens the tag box; Enter applies the tag to this passage |
| Pin and quote (固定并引用) | Pins it and puts the quote into the composer |
| Quote (引用) | Only puts the quote into the composer |
| Copy (复制) | Only copies the raw text |
Alt+P: pin / unpin the current selection (can be turned off in settings)- Hover a card: it expands in place (capped at
min(60cqh, 420px)) and scrolls internally - Click a card's text: always jumps back to the source, centred on the selected passage
#/❞/⧉/✕on a card: edit tags / quote into the composer / copy the raw text / unpin
DSH 0.2.2 ships its own selection toolbar, 「引用文本」 (Quote text). Both are shown by default: the host's above the selection, this plugin's below it (pin / tag / quote live on the lower one). To keep only one, go to Settings → Plugins → Pinned passages › Selection toolbar.
- The same passage is never filed twice: a selection that overlaps a filed passage is refused and the existing one is revealed (touching ends do not count).
2. Marks in the transcript: hover and click
Pinned passages keep a shaded mark. Rest the pointer on one:
| Action | Result |
|---|---|
| Dwell ~0.12s | A bar appears next to the cursor: 取消固定 / 引用 / 标签 / 复制 |
| Click (no drag) | The side panel scrolls to its card and pulses it |
| Drag | Still just selects text — no jump |
- While hovered, that passage brightens and gets a 2px edge mark at each end, so two adjacent passages show exactly where one stops
- Hit testing asks "which character is under the pointer?", so blank table cells and trailing space never trigger it
- Do not want it? Settings › Hover bar turns it off; click-to-locate keeps working
3. Tags: type a letter and pick from the ones you already have
Type in a card's tag box, or in the bar's tag box, and the existing tags that match appear right below:
| Action | Effect |
|---|---|
| Typing | Prefix matches first, then by how often a tag is used |
↓ / ↑ |
Move the highlight inside the list (the card list outside does not move) |
Enter |
With a highlight you reached by arrow: applies it. Otherwise: creates the name you typed |
| Click | Applies that tag |
| A new name | A 「创建 #xxx」 row appears below, showing the normalised result |
Details:
- The list does not flicker while an IME composes: after the characters commit it re-matches immediately. Enter during composition commits the IME, it does not submit a tag.
- Tags already on this passage are marked 「已有」; clicking one only says so, it never adds a duplicate.
- A tag name is capped at 24 characters; leading
#and repeated whitespace are normalised away. - Tags are one vocabulary across conversations: a tag created anywhere can be picked everywhere.
4. Create tags first, file passages later
Organising often starts with a list of names, not with the passages. Use + 标签 at the right end of the panel's tools row:
| Action | Effect |
|---|---|
| Click 「+ 标签」 | An input row opens under the tools row |
Enter |
Creates the tag and keeps the focus, so several can be added in a row |
| Duplicate | Says 「已有 #xxx」, creates nothing and keeps the text (case differences count as duplicates) |
Esc / click elsewhere |
Closes the row |
A freshly created tag has no passages, so it shows as ×0 under 「全部」› 管理全部标签 — it exists, nothing uses it yet.
- Clicking a
×0tag does not filter; it explains that the tag has no passages yet (filtering by it could only produce an empty list) - Tag any passage with it and the count becomes
×N; the name is never duplicated - Standalone tags appear in the 「全部」 view only: 「本对话」 counts what this conversation holds, not the global vocabulary
- At most 200 tags
5. Quote into a message
Two shapes, and both carry their content — neither is a pointer:
- 「引用 / 固定并引用」 in the bar: a quote block with its source line goes into the composer
- Type
@in the composer: the first row is 「固定片段」; once inside, typing filters it (matching text and tags), and picking inserts a reference chip
Either way the passage really reaches the model, and never expires afterwards.
6. Settings: bars, shortcut, storage
Settings → Plugins → Pinned passages.
Selection toolbar (one of three) — DSH 0.2.2 added its own 「引用文本」, and the two would claim the same spot:
| Option | Effect |
|---|---|
| Show both (「两个都显示」, default) | The host's above the selection, this plugin's below it |
| This plugin's bar only (「只用我的」) | The host's button is hidden; its quote rendering keeps working |
| The host's 「引用文本」 only (「只用官方」) | This plugin's bar stays out of the way; pinning still works via Alt+P and the side panel |
Keyboard shortcut: Alt + P pins / unpins; turn it off here if it clashes with another extension.
Hover bar: pointing at a filed passage shows 取消固定 / 引用 / 标签 / 复制 next to the cursor. Turning it off also removes the hover highlight and the two edge marks; clicking a mark to reveal its card keeps working.
Backup & restore: the last section on the settings page; details are in section 8 below.
Storage used (read-only):
| Figure | What it is |
|---|---|
| This plugin | passage count, characters, roughly what percentage of this origin's storage |
| Whole origin | key count, characters, roughly what percentage, with a progress bar |
| ≥90% | a reminder banner; when full, the page states plainly that new pins will not be saved |
Recalculates after pinning, deleting or re-tagging.
7. The side panel
| Action | Effect |
|---|---|
| Header | Two views (this conversation / all), four sort orders, search, multi-select tag filter, tag management, Markdown outline export |
| Filters in the two views | Kept separately: a tag or search term chosen in 「全部」 does not follow you into 「本对话」, and is still there when you come back. Sort order is a global preference and is remembered |
| Left sidebar foot | The 「固定片段」 entry, with a count |
| Reference chip in the composer | Click it: the side panel opens and that card pulses |
8. Backup & restore
A JSON backup is for restoring on a machine; the markdown outline in the panel header is for reading. Two channels, do not mix them up.
| Action | Result |
|---|---|
| Export · everything | One dsh-pins-backup-<date>.json with every conversation's passages, standalone tags, sort order and preferences |
| Export · current conversation | Only the conversation open in the main column — the side panel does not need to be open |
| Import | Pick a file → preview (new / duplicate / conflict / invalid) → confirm. Merge only, never delete |
When to use it: moving machines, before clearing site data, or keeping a copy somewhere else. The success notice says whether it exported everything or just this conversation.
What an import does:
| Situation | Handling |
|---|---|
| Already on this machine | Skipped as a duplicate; a tag-only difference is unioned, not treated as a conflict |
| Same id, different content | Local is kept by default; tick rows to overwrite, or open the full diff in a new tab |
| Not on this machine | Added |
| Source conversation is gone | Imported, but the card is marked 「原会话不在本机」: readable and copyable, not jumpable |
After the import you get a one-line summary and a JSON report file (outcome and reason for every record). "Also import preferences" is off by default — ticking it overwrites the current interface settings with the ones in the backup.
Both export and import use the download-plus-clipboard channel: if the browser refuses the download, the text is copied to the clipboard and the notice says which path was used.
What it does not do
- No Markdown parsing, no HTML snapshots. What is stored is the text you selected, plus its turn and offset — readable and portable.
- It never switches your conversation. Clicking a card from another conversation in 「全部」 explains itself instead of moving you out of what you are reading.
- No context injection. Nothing is ever quietly pushed into the model's context; either you quote it, or the model asks for it explicitly (the latter is not implemented yet).
- No hidden state. Pinning is an explicit action, and so is deleting.
Known limitations
- Web only (
platform: web). TUI and Desktop have no such surface. - Anchors depend on the host's DOM contract (
data-chat-flow-key,data-chat-turn,[data-conversation-scroll]). If the host renames them all at once, durable marks and precise jumps break together — your data does not (it is still text, turn and offset), and jumping degrades to a position-based fallback. This is the one risk the plugin cannot verify for itself, so it is written down here. - A selection longer than 2000 characters is kept as its first 2000 (the toolbar and the success notice say so at capture time, and the card marks it 「已截断」 with a tooltip). Quotes and chips share that ceiling. Passages saved before 1.0.4 hold only their first 600 characters, and that part cannot be recovered.
- When the same text appears several times in one message, the jump picks the occurrence nearest the recorded offset that also passes a text check; if none does, it falls back to the whole message and marks the card 「原文未找到」.
- The 「全部」 view sorts and filters across every conversation; with many entries, folding groups or filtering by tag beats scrolling to the bottom.
- The import report cannot tell "never imported" from "imported, then deleted": this plugin keeps no tombstones, so the report only says "not on this machine / source conversation is missing". That is a deliberate trade — a separate storage key for one edge case may never be used by a future version, and deletions would get harder to handle.
- An imported passage may not jump back to its source: if it came from another machine, or that conversation was deleted, the card is marked 「原会话不在本机」 — the content is intact, copy and delete still work, only the jump is unavailable. Copying the matching .dsh/sessions back restores it.
Compatibility
Verified on: DSH 0.2.1-rc.5 · Node 24.14.1 · pnpm 12.6.0 (1.0.3 and earlier were verified on 0.2.0-rc.2).
Since DSH 0.2.2 the host ships its own selection toolbar, 「引用文本」. This plugin is adapted: by default it yields the band above the selection and places itself below it, and the settings can make either one the only one. The host surface is recognised through its public data-text-interaction-surface attribute rather than an internal class name — if the host changes that, this plugin simply behaves as if there were no host toolbar and falls back to its old placement.
Backward compatible: builds before 0.2.2 work too, with no loss of features. When no host toolbar is found the bar is placed the old way; on an older build the 「host toolbar only」 mode simply hides this plugin's bar (see the table under What's new).
The package declares no peerDependencies and no engines.dsh, deliberately: it imports no Harness package (the browser half only requires react; the host half is an empty apply), and every host interaction is feature-checked and either degrades or reports clearly. Declaring a version range I cannot verify would only block installs.
Upgrading to a newer version never touches the passages you already have, nor the standalone tags you created but have not used yet.
Development
dsh-pins/
├── package.json bundle manifest: dsh.bundle.patch + dsh.client
├── cordis.patch.yml inserts one row into the profile
├── index.js host half (a reserved pinsHost service, currently empty)
├── client.js browser half: the entire plugin lives in this one file
├── locale/{zh,en}.json display name and description (the meta.title the marketplace reads)
├── icon.svg icon (≤ 256 KiB)
└── docs/ install troubleshooting (Chinese)
For local development, dsh plugin --profile web add <absolute path> installs it as a link dependency; edit client.js and refresh the page. The plugin_manager tool and the Web Plugins page manage the same profile state.
License
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-task-board★ 10703
Task board for the dsh web GUI: a sidebar multi-column kanban whose cards run in real DSH agent sessions and can also be scheduled with cron expressions, executed host-side even with the browser closed.
zhu1090093659/dsh-web#packages/dsh-web-all★ 10703
Plugin and skin collection for the DSH Web UI: task board, Git graph, right-side panel, remote mobile UI, pet, live token stats, and a skin center.
ccch1mneyyy/dsh-TUI★ 8557
Claude Code-style full-screen terminal UI: pixel-whale header, live status line, and streaming thought expansion.
MeteorNOX/DeepSeek-Balance-Whale-Widget★ 7523
A fixed-corner whale widget for the DSH web GUI — balance, today's usage and per-turn cost with peak/off-peak pricing, editable balance-alert and daily-budget bubbles, a module-based custom bubble queue with A/B weighted choices and random lines or images, 30+ vendor templates (OpenAI, OpenRouter, Kimi, SiliconFlow, Ark, Zhipu, MiniMax and more) with per-model balance and subscription quota, plus task-end sound, imported audio, custom roles and a resource manager. Local-only, no telemetry.
omdsh-dev/DSH-better-sidebar★ 5405
Full sidebar workbench with file rendering and editing, terminal, Git, and subagents; third-party plugins can register new tabs.
omdsh-dev/dsh-genui★ 1091
Interactive UI components rendered inline in replies: layout, charts, forms, quizzes, mermaid, 3D scenes, and an action event loop back to the model.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.