Study-Mate
Miaotofu01
你的AI学习搭档:定路线、讲知识、做项目,边学边做,学透一门科目
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:zju-yoyo/dsh-literature-library
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A DeepSeek Harness plugin that turns DSH into a paper reader: search arXiv and Crossref, keep a local library, read the original pages side by side with translation, summaries, and grounded Q&A — plus matching agent tools so the chat can do the same work.
literature_search, literature_add, literature_list,
literature_read, literature_summarize, literature_ask,
literature_update.dsh web). The plugin registers a sidebar
launcher and a frame-wide workspace, and serves its own HTTP routes.officeKit, bundled with DSH) for page
rendering. Without it the text and AI features still work; only 原文 is
unavailable.provider/model in the plugin
row) for translation, summaries, and Q&A.Tested with DSH 0.2.2-rc.3 (Desktop app, Windows) and the desktop profile.
https://github.com/zju-yoyo/dsh-literature-library, orgithub:zju-yoyo/dsh-literature-librarydsh-literature-library bundle if it is not enabled yet.Git installs are pinned to the resolved commit; use the Plugins page's update action (or remove and re-add) to move to a newer commit.
dsh plugin --profile <profile> add github:zju-yoyo/dsh-literature-library
Then enable the bundle on the Plugins page — the CLI forwards to pnpm and does not change bundle selection.
Copy or clone this directory anywhere, then add that absolute directory as a plugin (local directory installs are linked, not copied):
dsh plugin --profile <profile> add link:/absolute/path/to/dsh-literature-library
Chat tools mirror the UI; for example:
用 literature_search 找一下 "selective state space models" 的最新工作,
把最相关的一篇加入文献库,然后总结它的方法。
The bundle inserts one Loader row. Override its config in the profile's
cordis.patch.yml (Settings → Plugins for bundle selection; this file for
values), then reload the plugin:
- id: literature-library
name: dsh-literature-library
config:
language: zh
maxTextPages: 80
| Field | Default | Meaning |
|---|---|---|
dataDir |
<DSH_HOME>/literature |
Library, PDF, text, geometry, and page-image cache |
language |
zh |
Target language for translation and summaries (zh/en) |
provider, model |
profile default model | Explicit model route for the AI actions |
maxPdfBytes |
41943040 (40 MB) |
Largest accepted PDF |
maxTextPages |
80 |
Pages extracted per paper |
maxPromptChars |
60000 |
Paper text sent to the model per request |
searchMaxResults |
8 |
Results per search source |
The bundle ships no Config schema, so the Plugin Manager row editor shows no fields; edit the row config directly.
<DSH_HOME>/literature (~/.dsh/literature by default) — never in
this repository and never in your workspace.export.arxiv.org and api.crossref.org; PDFs come from
the paper's public link. Page rendering is local.| Symptom | Cause and fix |
|---|---|
| No 文献库 button in the sidebar | The bundle is installed but not enabled; enable it on the Plugins page, then reload the page once. |
| 原文 pages stay blank or show a render error | The profile has no document engine (officeKit), or the engine rejected the page. The failure line under the page carries the reason; retry, or lower the density. |
| First page takes a few seconds | Page images are rendered on demand by the local engine, then cached under pages/. Later visits are instant. |
| 翻译/总结/提问 unavailable | No default model is configured. Pick one under Settings → Models, or set provider/model in the row config. |
| PDF download warning on add | The public PDF link needed a login or the page changed. Upload the PDF locally instead. |
| Search returns nothing for a phrase | arXiv phrase search is exact; try fewer words, or switch the source to Crossref. |
No build step: the plugin is plain ESM. index.js is the Host half, client.js
is the browser half, and lib/ holds the shared operations.
node scripts/check.mjs # imports every module, validates manifest/locales/assets
scripts/check.mjs has no dependencies and runs in CI
(.github/workflows/check.yml). Host code changes
need a plugin reload (toggle it on the Plugins page); Client changes reach an
open page through DSH client HMR.
Layout:
index.js Host plugin: routes, tools, config, library wiring
client.js Browser plugin: launcher, workspace, reader, AI panes
lib/ store, search, pdf text, page rendering, LLM, routes, tools
vendor/pdf/ pdf.js 6.3.289 (Apache-2.0) used for text extraction
locale/ Plugin Manager titles/descriptions (zh, en)
docs/ Detail document and feature illustration
scripts/check.mjs Dependency-free repository check
This repository is published at https://github.com/zju-yoyo/dsh-literature-library. To cut a release:
node scripts/check.mjs
npm version minor # or edit package.json + CHANGELOG.md by hand
git push && git push --tags
Forks that publish under another account should update homepage,
repository, and bugs in package.json, the CI badge URL above, and the
install specs in this README.
Optional npm release: the package has no runtime dependencies, so npm publish
works after choosing a name that is free on npm. Users can then install
dsh-literature-library@0.2.0 by name instead of by git URL.
把 DSH 变成文献阅读器:在侧边栏底部打开「文献库」,检索 arXiv / Crossref、
按链接或编号入库、分屏阅读原文;选中原文任意文字即可翻译或提问,右侧提供
文本 / 翻译 / 总结 / 提问;支持阅读状态、标签、笔记与库内搜索,并把这些操作
同时暴露为 Agent 工具。数据保存在 <DSH_HOME>/literature。安装:设置 →
插件 → 添加插件,填入本仓库的 GitHub 地址即可。
MIT — see LICENSE. Vendored pdf.js is Apache-2.0; see THIRD-PARTY.md.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: arxiv。