DeepSeek Harness plugin

dsh-chatpaper

arXiv paper tools for DeepSeek Harness: search, summarize, translate, and survey papers as native tools. No Python, no MCP — HTML-first extraction.

Jump to install

Source facts

Repository
puppet2004/dsh-chatpaper
Latest update
Aug 15, 2026
Category
Tools & Capabilities
GitHub stars
0
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/puppet2004/dsh-chatpaper
Plugin: dsh-chatpaper
Author: puppet2004

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer2 files
README.mdSource · read only

dsh-chatpaper

After DSH's release, I plan to gradually accumulate the tools I use frequently as DSH plugins.

ChatPaper has brought me a lot of convenience — it saves a great deal of time searching for papers and doing research. So, to adapt it into a DSH plugin, I spent some time modifying the code with AI and published it to GitHub, hoping to bring the same convenience to more people.

arXiv paper tools for DeepSeek Harness (DSH), provided as native tools — no Python, no MCP server. Paper text is extracted primarily from arXiv's official HTML rendering (LaTeXML), with ar5iv and PDF fallbacks.

This project is a DSH plugin port referencing ChatPaper: the tool contracts and query logic are kept consistent, but it now runs directly on DeepSeek Harness's native interfaces. See [Acknowledgments](#acknowledgments) at the end for the source and citation.

Tools

ToolWhat it does
search_arxivSearch arXiv. Natural language (e.g. "agent as a judge") is matched as an all: phrase, falling back to an AND match over its content words when nothing is found; native arXiv query syntax (ti:transformer, cat:cs.CL AND all:agent) passes through untouched.
summarize_paperDownload a paper, extract its text, and summarize it with an LLM under fixed headings (Background, Methods, Results, Conclusions).
translate_paperTranslate a paper's full text chunk by chunk; long papers can run in the background.
generate_surveyWrite a literature survey from search results — abstract-level (fast) or full-text deep mode (one summary per paper, concurrent, background-capable).

Background runs (run_in_background: true) register standard DSH jobs: the call returns a job id immediately, and after completion the result (or failure detail) is retrieved with the harness's built-in job_output tool. A single read is capped at 20000 bytes.

search_arxiv needs no API key. The three LLM-backed tools use the harness LLM service (ctx.llm) — the provider, model, credentials, retry policy, and routing configured on the web Models page are all reused directly, with nothing to configure inside the plugin. When provider/model are left empty, they resolve at call time to the deployment's deepseek route and its default model; explicit configuration takes precedence.

Install

From npm (prebuilt, no install-time build authorization needed):

dsh plugin --profile <name> add dsh-chatpaper

From GitHub source (runs a prepare build; pnpm requires an allowBuilds grant in the profile's pnpm-workspace.yaml — the npm route is preferred):

dsh plugin --profile <name> add github:puppet2004/dsh-chatpaper

The bundle registers one chatpaper row; after installation, every session of that profile sees these 4 tools.

Configuration

Add or override the row in your profile's cordis.patch.yml:

- insert:
    - id: chatpaper
      name: dsh-chatpaper
      config:
        provider: ''
        model: ''
KeyDefaultDescription
provider''Harness LLM provider route; empty resolves to the deployment's deepseek route (deepseek-official in the official deployment).
model''Harness LLM model id; empty resolves to the adapter's advertised default model.
cacheDir~/.dsh-chatpaper-cachePaper-body cache directory, keyed by versioned arXiv id.
surveyConcurrency4Concurrent per-paper summaries in deep survey mode.
summaryChars15000Text slice fed to a summary.
surveyPaperChars8000Text slice fed to a deep-survey per-paper summary.
translateChunkChars6000Size of one translation chunk.
translateMaxChars60000Cap on source characters to translate.
searchDelayMs3000Delay before each arXiv API request (rate-limit courtesy).
searchRetries3arXiv API retry count.
downloadTimeoutMs120000Paper-body download timeout.

How paper text is fetched

1. Official HTMLhttps://arxiv.org/html/<versioned-id>; structured extraction preserves section headings and math (<math alttext> → LaTeX). 2. ar5ivhttps://ar5iv.labs.arxiv.org/html/<id> for older papers without official HTML. 3. PDF fallbackpdfjs-dist text extraction for papers with no HTML at all.

Each tier's output is validated (an empty shell or fewer than 200 extracted characters falls through to the next tier). Extracted text is cached, so repeated calls are instant.

Model Experience

What the model sees

4 native tools with their declared schemas. search_arxiv returns structured paper metadata (id, title, authors, date, categories, pdf URL, abstract) rendered as a numbered list. The LLM tools return structured results whose render shows the summary/translation/survey text; surveys also carry an [n]-indexed reference list.

Token and KV-cache effects

Tool schemas are fixed, so the model-facing definition prefix is stable across requests. Tool results are plain text; no binary or image payloads enter context. Paper bodies are truncated (summaryChars/surveyPaperChars/translateMaxChars) before every LLM call, keeping prompts bounded. Cache hits avoid re-downloading and re-extracting entirely.

Acknowledgments

This project is a port of the open-source ChatPaper project. The search query logic, paper-summarization prompts, and survey workflow follow the original design, re-implemented on DeepSeek Harness native interfaces (ctx.llm, ctx.tools, ctx.jobs). Thanks a lot for ChatPaper's work. If you use this plugin or build on it, please also cite the original project:

@misc{ChatPaper,
  author={Yongle Luo, Rongsheng Wang, Peter Gam, Jiaxi Cui, circlestarzero, Shiwen Ni, Jaseon Quanta, Qingxu Fu, Siyuan Hou},
  title = {ChatPaper: Use LLM to summarize papers.},
  year = {2023},
  publisher = {GitHub},
  journal = {GitHub repository},
  howpublished = {\url{https://github.com/kaixindelele/ChatPaper}},
}