rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:ECHOUniverse/dsh-zoteroplugin
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 简体中文
A standalone Zotero plugin for DeepSeek Harness (DSH). It adds a right-sidebar tab in DSH for browsing and working with your local Zotero library — search, item details, a PDF reader with annotations and highlights, citations — and exposes 19 agent tools so the chat assistant can do the same on your behalf.
titleCreatorYear) and full-text (everything)
modes, tag filters, ranked results..bib.zotero:// links (server-constructed, platform allow-listed commands).Real captures from DSH Desktop 0.2.2 with the plugin installed — light and dark themes, no mockups.
Search metadata or full text from the right-sidebar tab; the tab bar shows the Zotero connection status.
Ask the assistant to open a paper and highlight a passage — the quote lands in the PDF reader as a session highlight next to the chat.
The same reader with the DSH dark theme; highlights, annotations, and page controls stay in place.
>=0.2.1-rc.1 <0.3.0-0From npm (recommended):
dsh plugin --profile desktop add @hanxu131/dsh-zotero
From a local checkout (symlink install; the mapping lives in cordis.patch.yml):
dsh plugin --profile desktop add link:/path/to/dsh-zoteroplugin
After installing, fully quit DSH and start it again so the plugin's host half (agent tools and routes) is loaded. Uninstall or disable it from the DSH plugin management page.
The UI language (中文 / English) follows the DSH host language.
The plugin has a single setting:
| Setting | Default | Description |
|---|---|---|
localApiBaseUrl |
http://127.0.0.1:23119 |
Base URL of the Zotero local API. Loopback addresses only; other hosts are rejected. |
The default is set in cordis.patch.yml, which mounts the plugin into a DSH profile. There is nothing else to configure.
19 tools are registered with the DSH agent. Read tools never change your library; view tools drive the sidebar UI; write tools require a DSH approval prompt and, on first use, Zotero's authorization dialog.
Read-only
| Tool | Description |
|---|---|
list_collections |
List the collection tree and saved searches of a library. |
search_library |
Search items (metadata or full-text mode) with tag filters, sorting, and pagination. |
get_item |
Fetch full metadata of one item: creators, fields, abstract, tags, attachments, notes. |
search_annotations |
Search the PDF annotations of an item by text or tag. |
cite |
Format a citation (APA) or return a BibTeX entry. |
read_fulltext |
Read a PDF's extracted text with page markers and a per-call character budget. |
find_in_pdf |
Find a word or phrase in a PDF and report physical page, page label, and context. |
export_bib |
Export BibTeX/RIS as text; optionally write a workspace-relative .bib file after approval. |
View (drive the sidebar UI)
| Tool | Description |
|---|---|
open_item |
Open an item or its best PDF in the panel, optionally at a page or quote. |
show_items |
Show a list of items in the panel. |
highlight |
Highlight a quoted passage in the reader as a session highlight; save: true also writes it to Zotero (write approval). |
clear_highlights |
Remove session highlights only. Never deletes annotations in Zotero. |
Write (DSH approval + Zotero authorization)
| Tool | Description |
|---|---|
save_highlights |
Save session highlights as Zotero annotations. |
add_item |
Create an item from structured fields or a DOI/arXiv identifier; optionally download and attach a PDF. Duplicate DOIs are detected. |
update_item |
Update fields of an existing item. |
add_note |
Add a child note to an item. |
create_collection |
Create a collection. |
attach_pdf |
Attach a PDF to an item from a local path, an SSRF-guarded URL, or inline bytes. |
authorize_writes |
Request or verify Zotero write authorization. |
realpath comparison, and files are
validated (%PDF- magic, size cap) and read in chunks. export_bib can
only write workspace-relative .bib files; absolute paths, ..
segments, and symlink escapes are rejected.Honest summary; the full development and acceptance log (in Chinese) is in docs/development-status.md.
npm run verify runs typecheck, tests, build, and smoke together.zotero:// deep links, real workspace export, and
write-upload endpoints.Requires Node ^22.19.0 || >=24.
npm install
npm run verify # typecheck && test && build && smoke
npm run watch # incremental client-side bundle build
Individual steps: npm run typecheck, npm run test, npm run build,
npm run smoke.
| Document | Contents |
|---|---|
| docs/implementation-spec.md | Full implementation spec: feature list, DSH/Zotero contracts, test seams, milestone acceptance matrix, non-goals. |
| docs/adr/ | Three architecture decisions: local API + Zotero 10 (0001), two-half plugin + webServer + single right tab (0002), differentiated write approval (0003). |
| docs/development-status.md | Detailed development record: implementation notes, milestone log, real-machine acceptance status, load-contract and troubleshooting notes (Chinese). |
| THIRD_PARTY_NOTICES.md | Apache-2.0 notices and third-party material registry. |
node scripts/probe-desktop.mjs [port] is a read-only diagnostic that
checks the running Desktop's /dsh-zotero/health, /status, and bundle
URLs (loopback GET requests only).Apache-2.0. Parts of the data layer and metadata import were
ported and adapted from the official ZCode Zotero plugin
(zai-org/zcode-plugins
ui-plugins/zotero, Apache-2.0, modifications noted); the rest is original.
See THIRD_PARTY_NOTICES.md for details.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。