- Home
- Plugins
- Tools & Capabilities
- dsh-review-notes
dsh-review-notes
csp31916/dsh-review-notes
在DeepSeek Harness的文件预览里直接加审阅批注,一次转成Agent能执行的带文件、行号和原文引用修改指令,简化多轮修改中撰写提示词时难以准确引用修改内容和指定修改方法的问题。
Install
dsh plugin --profile web add github:csp31916/dsh-review-notesREADME
Review notes
Annotate a previewed workspace file, then send every note to the agent as one review request. This replaces "re-locate the spot and rewrite the prompt" with "select, comment, send".
Use it
-
Open a file in the right sidebar preview.
-
Select the text that should change, then either:
- right-click the selection and choose 批注 (the menu also keeps 复制), or
- click the comment icon in the preview header.
The header icon exists because the same action must work when a right-click is not available; it shows a tooltip and has no text label, so it never wraps in a narrow preview header.
-
Write what should change, choose a change kind (改写 / 删除 / 插入 / 提问) or 自定义 and type your own action, optionally attach reference files from the workspace, then save.
-
The review bar sits directly above the composer and reads
审阅批注 · N 条待处理 | 展开: 生成修改指令 drafts the request in the input (edit it, then press Enter), 生成并发送 drafts and sends it in one step, and 展开 opens the list of notes. -
↗ on a note re-opens the file at its line when the preview supports source-line navigation (plain text and code do; Markdown does not).
The generated message contains, per note, the file path, the line range, the quoted original text, the change kind, the note, and any reference files, plus a short instruction to re-locate by quote and report each item. Notes whose quoted text has left the file are marked as possibly handled, and notes whose quote appears several times say so.
Install
Requires DSH 0.2.2-rc.5 or newer (engines.dsh).
From a Git install, pin a release so a later push cannot change what people run:
dsh plugin add git+https://github.com/csp31916/dsh-review-notes.git#v0.2.0
A tag is convenient; pin the full commit when a catalog or a stricter setup requires one (the market index does). To read the commit a tag points at:
git ls-remote --tags https://github.com/csp31916/dsh-review-notes.git v0.2.0
In the desktop app, use Plugins → Add plugin with the same spec. A local directory works too while developing.
Publishing (maintainer notes)
- Create a public repository named
dsh-review-notesand publish this directory; this repository is the reference. - Add the GitHub topic
dsh-pluginso community catalogs can discover it. - Tag the release:
git tag v0.2.0 && git push --tags. - Publish the exact commit:
git rev-parse HEAD, then hand outgit+https://github.com/csp31916/dsh-review-notes.git#<commit>.
Without a local git, scripts/publish-github.mjs does the same through the Git
Data API: it uploads every file as blobs, builds one commit, moves the branch,
and tags the release. Create an empty repository first, then run it with a
fine-grained token that has Contents: Read and write on that repository:
GITHUB_TOKEN=<token> node scripts/publish-github.mjs --dry-run # list files only
GITHUB_TOKEN=<token> node scripts/publish-github.mjs # publish
The token is read from the environment only and never printed; --dry-run
sends nothing.
Market index entry (optional)
DSH discovers plugins through user-configured plugin indexes (a single JSON
document, format 1, validated by @deepseek-ai/dsh-plugin-market-index). The
official marketplace was announced but had not shipped a public index yet, so
this section is for the moment one exists or for a community index. The entry
for this plugin looks like:
{
"format": 1,
"title": { "en": "Review notes", "zh": "审阅批注" },
"metadata": { "categories": {}, "labels": {}, "sortKeys": {} },
"plugins": [{
"name": "dsh-review-notes",
"title": { "en": "Review notes", "zh": "审阅批注" },
"description": { "en": "Annotate previewed files and send the notes as one review request.", "zh": "给预览中的文件加批注,并一次转成修改指令。" },
"author": "csp31916",
"homepage": "https://github.com/csp31916/dsh-review-notes",
"repository": { "url": "https://github.com/csp31916/dsh-review-notes" },
"icon": "https://raw.githubusercontent.com/csp31916/dsh-review-notes/<commit>/icon.svg",
"metadata": { "keywords": ["review", "annotation"], "labels": [], "sortKeys": {} },
"versions": [{
"version": "0.2.0",
"publishTimestamp": 1790000000,
"source": {
"type": "git",
"url": "https://github.com/csp31916/dsh-review-notes",
"commit": "<40-char-commit>"
},
"engines": { "dsh": ">=0.2.2-rc.5" }
}]
}]
}
Rules the validator enforces: commit is a full lowercase 40-hex SHA, version
is exact SemVer, publishTimestamp is Unix seconds, icon is an absolute URL or
a base64 data: URL, and every categories / labels / sortKeys id used by a
plugin must be declared in metadata. source.url has no .git suffix, no
credentials, query, or fragment.
Limits
- Notes are stored in this browser (
localStorage, keydsh.review-notes.v1), per session. Clearing site data clears them. The generated message is the durable record. - The plugin never edits a file. It only produces the request message.
- Right-click interception applies only inside a document preview tab and only while text is selected; other right-clicks keep the browser menu.
- Line numbers come from a text read of the file and a search for the quoted selection. Word/PowerPoint previews are converted PDFs and spreadsheets render as tables, so those notes usually keep the quote without a line number.
- Reference files are workspace paths chosen in a picker: type a keyword to search the workspace, or browse directories from the session's working directory. The agent reads them itself; they are not uploaded.
- Notes are per session and are not shared with other browsers or machines.
中文说明
给预览中的文件加批注,再把所有批注一次转成给 Agent 的修改指令。两种入口:在预览里
选中文字后右键,菜单里多出「批注」(同时保留「复制」);或点预览头部的批注图标。
编辑框里可以写批注、选改动方式(也支持「自定义」自己写一条),并可从工作区挂参考
文件。输入框正上方是批注栏:审阅批注 · N 条待处理 | 展开,右侧「生成修改指令」填入
输入框、「生成并发送」直接发出。
限制:批注只存在本浏览器;插件不改文件;右键接管只在文档预览标签页内、且有选中 文字时生效;Word/Excel 预览是转换渲染,批注通常只有原文引用而没有行号。
Related plugins
archify (deepseek-harness)
tt-a1i/archify
WeKnora (dsh-weknora)
tencent/weknora
next-ai-draw-io (dsh-plugin)
dayuanjiang/next-ai-draw-io
AiToEarn (dsh-plugin-aitoearn)
yikart/aitoearn