dsh-response-letter
IdentifiedReviewer-response workflow for DeepSeek Harness: parse reviewer comments with locators, check point-by-point coverage by response number, and export a Markdown response letter with a coverage table; p
dsh-response-letter
当前版本 0.1.4。
Every reviewer comment answered — and provably so, by number.
Parses reviewer comments (Reviewer/Referee/审稿人 headers, numbered or paragraph mode), checks the point-by-point letter by response number (missing, too short, extra, duplicates), and exports a Markdown letter with a coverage table.
What it does
letter_parse— recognizesReviewer 1,Referee #2,审稿人 2,R1headers and numbered markers (1.,2),Comment 3:,Q4:), assigning a global number to every comment (the number a response must cite), a reviewer label and a character locator. Falls back to paragraphs with an explicit warning.letter_check— matches response numbers to comment numbers and reports: missing numbers, answers shorter than 20 characters, duplicate response numbers, and responses citing a number that no comment has.letter_export— a Markdown table (#, reviewer, comment, response) with unanswered points in bold, plus the coverage table. Markdown is the deliverable; nothing is emailed or uploaded.
Structure: parse → check → export; coverage and findings[] are the two check outputs, and letter_export renders Markdown only. The token labels inside the diagram are the real tool, marker and field names, so the same picture serves all five languages.
What it does not do
- No adequacy judgement. Coverage counts numbered answers; it does not say whether an answer is convincing, polite or evidence-based.
- No reviewer text editing. Comments are reproduced verbatim; the author writes the responses.
- No DOCX/PDF. Convert to
.md/.txt(PDF text:dsh-doc-anchor). - No submission. It does not touch the journal system.
- No AI-generated rebuttals. The plugin parses and checks; the words stay the author's.
How numbering works
Comments are numbered 1..N in document order across reviewers (not per reviewer). The response letter must cite the same global numbers. If the letter uses its own per-reviewer numbering, the numbers will not match and the check says so rather than guessing.
Tools
letter_parse
{ text? | path?, persist? } → { ok, parse: {comments, reviewers, mode, warnings}, evidenceId?, recordPath? }.
letter_check
{ comments? | reviewText? | reviewPath?, letterText? | letterPath? } → { ok, coverage, comments, responses, warnings }.
letter_export
{ comments, responses? | letterText?, title? } → { ok, markdown, coverage }.
Error codes
INVALID_INPUT · NOT_FOUND · PATH_ESCAPE · NOT_A_FILE · TOO_LARGE · UNSUPPORTED_FILE · STORE_ERROR
Compatibility & install
| DeepSeek Harness | dsh-v0.2.3-alpha.1 (verified 2026-11-22); peer >=0.2.1-0 <0.3.0 || >=0.2.2-0 <0.3.0 |
| Node | ^22.19.0 || >=24.9.0 (tested 24.22.1), ESM only |
| Peers | @perrylink/dsh-research-core ^0.1.0, @deepseek-ai/cordis ^4.0.5-alpha.1, @deepseek-ai/dsh-tools, @deepseek-ai/schemastery ^3.18.5-alpha.1 |
| Runtime dependencies | zero |
dsh plugin --profile <name> add @perrylink/dsh-research-core dsh-response-letter
dsh --profile <name> --dump-config | grep dsh-response-letter
Configuration
| Key | Default | Meaning |
|---|---|---|
enabled | true | false mounts nothing |
root | .response-letter | store/record root |
workspaceRoot | process.cwd() | paths must resolve inside it |
maxChars | 1000000 | character cap (fails, never truncates) |
persist | true | store parsed reviews as REP evidence + record |
Security boundaries
- Read-only on review and letter files; writes only under
root. realpathcontainment rejects symlink escapes.- Character cap fails loudly; DOCX/PDF rejected with a conversion hint.
- Comments are treated as data; any instruction-like text in them is never executed (the plugin has no executor).
Evaluation

Animated: the real pnpm exec vitest run --reporter=verbose output and the package gate (re-run 2026-11-21; the suite has 22 tests today). Parsing and coverage are checked against explicit fixtures; nothing here touches the network.
22 tests: numbered parsing with reviewer headers (including R1) and CRLF text, paragraph fallback with warning, empty-text rejection, response extraction, full/partial coverage (missing, short, extra), duplicate numbers and duplicate-export consistency, runtime (valid REP record, file and text paths, traversal/symlink/DOCX/oversize rejection, malformed JSON payloads), tools (schemas, parse→check→export end-to-end, failure branch), plugin contract, package contract.
No benchmark is claimed: correctness here is parsing behavior on explicit formats, checked with fixtures; there is no labelled corpus of real review letters.
Known limitations (v0.1)
- The parser expects one comment per numbered line/block; a comment spanning several unnumbered paragraphs is split.
- Per-reviewer numbering is not auto-remapped; the check reports the mismatch instead.
- Response quality (tone, evidence) is out of scope.
- English/Chinese markers only; other languages need new patterns.
License
Apache-2.0. No third-party runtime code.
Comments
Loading…
Similar plugins
Review DeepSeek Harness responses with inline annotations, document reading, comment threads, and text revisions, then bring a reading summary back to the main conversation.
★ 0
dsh plugin --profile web add dsh-markupby The-Data-Galaxy
A versioned DPIA workbench for DeepSeek Harness: trace facts, resolve gaps, reassess risks, and produce reviewable reports.
★ 4
Apache-2.0
Python
Oct 25, 2026
dsh plugin --profile web add dsh-dpia-workbenchby LeslieWylie
A structured multi-panelist review workflow for the DeepSeek Harness: N panelists score in isolated subagents, blind to each other; a chair reconciles disagreement by anchor match then Δ-level adjudic
★ 3
MIT
JavaScript
Aug 18, 2026
dsh plugin --profile web add review-workflowby caihua8669
Document review workbench: select text in a Markdown file, leave comments saved as MRSF sidecar files next to it, and let the agent read them with doc_review_* tools and propose edits you accept or re
★ 1
MIT
JavaScript
Oct 17, 2026
dsh plugin --profile web add @caihua/dsh-doc-reviewby j7708git
OpenChamber-style handoff review for DeepSeek Harness: linked read-only review sessions, round by round.
★ 0
MIT
JavaScript
Oct 18, 2026
dsh plugin --profile web add dsh-handoff-reviewTurns DSH conversations into reviewable community feedback and, after confirmation, submits it to the official DeepSeek Harness Discussions.
★ 0
dsh plugin --profile web add dsh-feedback-bridge