dsh-doc-anchor-viewer

Renders .docx with Word's own layout and turns the outline plus your own marks into jump targets, in a full-width panel and a right-sidebar tab that claims *.docx over the built-in office preview. A doc_viewer tool hands the agent the same anchors in 11 actions — open, get_digest, read_section, set_marks and more — so long documents are read section by section instead of pasted whole into context. Severity and category on a mark are free text colored by a hash, so one mechanism serves contract review, clinical notes and code review.

Overview

Renders .docx with Word's own layout and turns the outline plus your own marks into jump targets, in a full-width panel and a right-sidebar tab that claims *.docx over the built-in office preview. A doc_viewer tool hands the agent the same anchors in 11 actions — open, get_digest, read_section, set_marks and more — so long documents are read section by section instead of pasted whole into context. Severity and category on a mark are free text colored by a hash, so one mechanism serves contract review, clinical notes and code review.

Installation

Install from npm

dsh plugin --profile web add dsh-doc-anchor-viewer

Resolves a published tarball rather than cloning the repository, and installs without any extra setup. Swap `web` for your profile name if you run another one.

Install from GitHub

dsh plugin --profile web add github:huyuanxin/dsh-doc-anchor-viewer

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.

Installation notes

  • May run terminal commands