Preface¶
When conversing with models in DeepSeek Harness (DSH), local e-books usually have to be opened in separate windows or external readers. Stuffing an entire book into the context would waste tokens and clutter the conversation. A common practice is to hand the path to the Agent for summarization or Q&A, but there is still no entry for “continuously reading the body text” that sits on the same screen as the conversation without entering the model.
Below we introduce the community plugin dsh-read (maintainer mic1on): it adds a /read command to DSH, streaming EPUB, MOBI, and plain-text files from disk as conversational cards, appearing character by character like an AI reply, with speed control, pause, table of contents, and resume-from-breakpoint. The body text never enters the model context, and the command lifecycle is not wrapped into ordinary conversation turns.
What Is This¶
dsh-read is a client plugin for DSH (platform: web), aimed at the scenario of reading local books in the browser GUI. Its core value can be summarized in two points: reading happens inside a real Chat node within the conversation transcript, rather than as a sidebar add-on; /read costs zero tokens — the book text never enters the model context.
The current plugin version can be found in the repository’s package.json (0.2.1 in the materials), licensed under MIT, source code: https://github.com/mic1on/dsh-read. Community directory page: https://www.skillhub.cn/plugins/mic1on/dsh-read (an independent community site with no official affiliation with DeepSeek / High-Flyer).
Core Features¶
In-Conversation Reading Card¶
After entering /read and specifying a book, the reading area occupies the conversation viewport with a fixed-height card; paragraphs scroll within it, avoiding a full-page reflow as the body text grows. Text streams out character by character with an active cursor; it supports Slow / Medium / Fast (about 10 / 20 / 60 chars/sec) and a custom slider of 10–160 chars/sec (which only appears after selecting custom). You can pause, go to the previous/next paragraph, restart, and pick a chapter from the dropdown; the speed choice is remembered.
When the pointer moves into the card or a control gains focus, the top bar, chapter row, and control bar collapse, leaving only a thin progress line; they slide out again when needed.
Formats and Parsing¶
| Format | Read method | Notes |
|---|---|---|
.epub |
OCF/ZIP → OPF manifest and spine → XHTML | Skips the nonlinear spine; does not expand stylesheets or fonts; illustrations only those declared in the manifest |
| Illustrations | Enter the reading stream as standalone items | They appear at their position within the book; playback pauses on them rather than rushing past |
Unzipped .epub |
Read the OCF package directly on disk | Recognizes META-INF/container.xml and treats it as a single book rather than an ordinary directory |
.mobi |
PalmDB → PalmDOC LZ77 | Supports uncompressed and PalmDOC-compressed files |
.azw3 / .azw |
Same as .mobi (the MOBI-7 text part) |
Pure KF8 raises an error and prompts for conversion |
.txt, .md, etc. |
Encoding detection | UTF-8/UTF-16, GB18030/GBK, Big5, Shift-JIS, etc. |
Companion Reading and Notes¶
Selecting a paragraph brings up Ask AI or Make a Note. Ask AI writes the book name, paragraph, and quote into the input box, leaving you to add context before sending; Make a Note only records locally and does not occupy the conversation. Notes are stored per book in $DSH_HOME/dsh-read/notes.json (usually ~/.dsh/dsh-read/notes.json), avoiding cluttering the transcript with fragments.
Progress and Library¶
The card shows a live percentage; each book in the Reading Center also shows the same progress, saved per book so you can resume from the last paragraph on reopen. Scrolling up loads earlier paragraphs, allowing you to go all the way back to the beginning of the book.
Finding Books in Natural Language¶
The Agent can invoke book_search to look up books by title under the library roots, and you then open the path with /read.
Interaction Details¶
After clicking a card to focus it, Space toggles play/pause on that card (bound to the card, avoiding accidental triggering of a global Space in the input box). The plugin reads the existing CSS variables of the DSH conversation scroll container to adapt to window resizing and composer height changes.
Installation and Activation¶
dsh plugin add forwards to pnpm, so you can use GitHub and other specifiers directly without publishing to npm first. The commands given in the README are as follows (use the profile you actually run; the browser GUI is usually web):
# 直接从 GitHub 安装
dsh plugin --profile web add github:mic1on/dsh-read
# 固定到某个 tag,便于可复现安装
dsh plugin --profile web add github:mic1on/dsh-read#v0.1.0
# 本地目录(开发或自审源码时)
dsh plugin --profile web add -w link:/path/to/dsh-read
Restart DSH after installation. The client bundle is assembled at startup; merely refreshing the page is not enough. The repository has no separate build step; installing from a git source is ready to use. The environment requires Node >= 22.13 (see engines in package.json).
The plugin accesses local files with the permissions of the current DSH process; please review the source code and the MIT license yourself before installing, and confirm that the library paths fall within an acceptable range of access.
Typical Usage¶
Reading Center (Settings → Reading Center)¶
Open Settings at the bottom of the sidebar and select the Reading Center with the book icon (it does not occupy a tab next to “Conversation / Trajectory”, to avoid crowding the conversation top bar).
- The directory bar shows the library root remembered by the plugin; it is restored each time the page opens. Enter an absolute path and click Load; that directory becomes the primary library root and is persisted.
- Subdirectories are listed first, making it easy to drill down into your collection locations.
- Each book shows format, size, and progress (e.g.,
5.9% read · paragraph 124 / 2083, or Not started). - Start reading / Continue reading runs the same logic as
/readin the currently selected conversation, closes the settings page, and jumps straight into the card to resume reading. - Set progress lets you drag the slider under a book to position it arbitrarily (books never opened are parsed first before the slider appears); Reset progress clears the book’s position.
Note: Space to pause/resume — click the card to focus it first, then use Space to toggle playback.
The /read Command¶
The Reading Center is just a convenient entry point for the command; the behavior is identical.
/read ~/Books/三体.epub
/read /Volumes/library/Dune.mobi
/read 三体
The third form is a keyword: it matches by file name under the library roots. The default roots include ~/Books, ~/Documents/Books, ~/Downloads, and ~/Documents (only directories that exist take effect). They can be extended in the configuration:
// $DSH_HOME/dsh-read/config.json (常见路径 ~/.dsh/dsh-read/config.json)
{ "libraryRoots": ["/Volumes/books", "~/Calibre Library"] }
You can also let the Agent find books, for example:
Help me find 《The Three-Body Problem》
→book_search({ "query": "三体" })→ returns the path → then/readthat path
Use Cases and Caveats¶
Suitable for: users who have long conversations in the DSH Web client and want to read local EPUB/MOBI/txt on the same screen without pouring body text into the context; readers who need resume-from-breakpoint, speed control, chapter jumps, and selection-based questions / local notes.
Caveats:
- The plugin is classified as a client plugin, depending on peer dependencies such as
@deepseek-ai/dsh-client-ui-conversation, and targets the web profile. - Both reading and book lookup access local paths with permissions equal to the user running DSH; library roots and note JSON are written under
$DSH_HOME/dsh-read/. - Some formats have deliberate limitations (e.g., pure KF8); these produce actionable error messages rather than silent failures; refer to the README’s “Supported formats” for details.
- Community directory and GitHub star metadata may change; features and commands are subject to the repository README.
Conclusion¶
dsh-read brings local e-books into the DSH conversation flow: streaming cards, zero tokens, multi-format support, and unified management via the Reading Center — ideal for “companion reading inside the Harness” rather than stuffing books into the model context. Install it with dsh plugin --profile web add github:mic1on/dsh-read from the README; after restarting, you can /read or open from the Reading Center.
- Community directory: https://www.skillhub.cn/plugins/mic1on/dsh-read
- Source code and documentation: https://github.com/mic1on/dsh-read