dsh-chatpaper
arXiv paper tools for DeepSeek Harness: search, summarize, translate, and survey papers as native tools. No Python, no MCP — HTML-first extraction.
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:puppet2004/dsh-chatpaper说明文档
阅读完整 README ↗dsh-chatpaper
在DSH发布之后,我会把经常使用的一些工具作为DSH的插件慢慢积攒起来。
ChatPaper这个工具给我带来了很大的便利,节省了大量找文章,做调研的时间,因此,为了将其适配DSH的插件,我花了些时间用AI修改了代码并发布到了githuib上,希望给更多人带来便利。
面向 DeepSeek Harness(DSH)的 arXiv 论文工具,以原生工具形式提供——不需要 Python,也不需要 MCP server。论文正文优先从 arXiv 官方 HTML 渲染(LaTeXML)提取,并带 ar5iv 与 PDF 兜底。
本项目是参考 ChatPaper 做的DSH插件移植:工具契约与查询逻辑保持一致,但改为直接跑在 DeepSeek Harness 的原生接口之上。出处与引用见文末 致谢。
工具
| 工具 | 功能 |
|---|---|
search_arxiv | 搜索 arXiv。自然语言(如 "agent as a judge")会按 all: 短语匹配,查不到时退化为对关键词的 AND 匹配;原生 arXiv 查询语法(ti:transformer、cat:cs.CL AND all:agent)原样透传。 |
summarize_paper | 下载论文、提取正文,并按固定章节(Background, Methods, Results, Conclusions)用 LLM 生成摘要。 |
translate_paper | 分块翻译论文全文;长文可后台执行。 |
generate_survey | 基于搜索结果撰写文献综述——摘要级(快)或全文深读模式(每篇一个摘要、并发、可后台执行)。 |
后台运行(run_in_background: true)会注册标准的 DSH 任务:调用立即返回 job id,完成后用 harness 自带的 job_output 工具取回结果(或失败详情)。单次读取输出上限 20000 字节。
search_arxiv 不需要任何 API key。三个 LLM 工具走 harness 的 LLM 服务(ctx.llm)——网页 Models 页配置的 provider、模型、凭据、重试策略与路由全部直接复用,插件内无需任何配置。provider/model 留空时,会在调用时自动解析为当前部署的 deepseek 路由及其默认模型;显式配置则优先使用。
安装
从 npm 安装(预构建产物,无需安装期构建授权):
dsh plugin --profile add dsh-chatpaper
从 GitHub 源码安装(会执行 prepare 构建;pnpm 需要在该 profile 的 pnpm-workspace.yaml 中授予 allowBuilds——更推荐 npm 方式):
dsh plugin --profile add github:puppet2004/dsh-chatpaper
该组合包会注册一个 chatpaper 行;安装后该 profile 的每个会话都能看到这 4 个工具。
配置
在 profile 的 cordis.patch.yml 中新增或覆盖该行:
- insert:
- id: chatpaper
name: dsh-chatpaper
config:
provider: ''
model: ''
| 配置项 | 默认值 | 说明 |
|---|