SponsorLobeHubLobeHubLearn more
dshfind
Back to plugins

dsh-annotationB65

@omdsh-dev
View Repo

A selection-annotation plugin for DSH Web: select text in a reply, annotate it, and press Enter to send it along with your message — the model answers each annotation by number. The annotation block never appears in your own bubble (removed before paint, zero flicker), and Annotation labels in the reply are hoverable chips. Official bundle, zero core changes.

Star
45+6
7-day growth
Contributors
1
Language
JavaScript
Updated
2026-08-14
Install
Derived from package metadata
dsh plugin --profile web add github:omdsh-dev/dsh-annotation

The author hasn't published to npm, so this command installs from git source. pnpm ≥ 10 refuses to run a git dependency's prepare script until you grant it, so your first install needs an allowBuilds entry in that profile's pnpm-workspace.yaml — which means letting this package's code run on your machine. Pin a #commit while you're at it.

The name after --profile is a profile name you choose yourself — swap in whichever one you use.

Editor's notes

Select any text in an assistant reply to annotate it, and the annotation body may be left empty — that just marks the passage. Annotations accumulate across messages and turns, numbered from 1, and an "Annotations ×N" chip appears next to the input box; hover it to view every annotation and remove them one by one. Press Enter and the annotation block goes to the model together with whatever question is in the input box, so the model receives the full content — number, original passage and your note — and replies with `Annotation 1: …` through `Annotation N: …`, one per annotation, with every Annotation label in the reply rendered as a hoverable chip showing the annotated passage and your note. One detail is handled cleanly: the annotation block is removed from your own bubble's DOM the moment you send, before the browser paints, so there's zero flicker — the bubble keeps only the question plus that chip, and historical messages self-heal after a refresh. The numbered marker is a blue highlight anchored to the passage, viewport-anchored with collision avoidance, never lost when scrolled out of view. In form it's an official bundle plugin (`dsh.bundle` plus a `dsh.client` declaration in package.json, injected into the browser via client-modules, with the Node half an empty implementation) and it makes zero core changes — no DSH files are touched, `cordis.patch.yml` only inserts its own id once, and the profile patch stays `[]`.

  • Select text in a reply to annotate it (an empty body just marks the passage); annotations accumulate across messages and turns, numbered from 1
  • Enter sends the annotation block with your question, and the model replies `Annotation 1: …` one by one, with hoverable chips on every label
  • The annotation block leaves your bubble before the browser paints — zero flicker, only question plus an "Annotations ×N" chip, with history self-healing on refresh
  • Official bundle form with zero core changes: no DSH files touched, `cordis.patch.yml` inserts its own id once, profile patch stays `[]`
Score breakdown
Scored 2026-08-14
Activity
20.9
Star heat
18.9
Engineering
19
Maintainer
6

选中批注随消息发送、模型按编号回应,交互设计巧

Share card

Drop it into your README — it links back to this page.

Badge (inline)
Badge (inline)
[![dshfind](https://dshfind.com/api/badge/omdsh-dev/dsh-annotation)](https://dshfind.com/en/plugins/omdsh-dev/dsh-annotation?ref=badge)
Card (440×200)
Card (440×200)
[![dshfind](https://dshfind.com/api/card/omdsh-dev/dsh-annotation)](https://dshfind.com/en/plugins/omdsh-dev/dsh-annotation?ref=badge)