Study-Mate
Miaotofu01
你的AI学习搭档:定路线、讲知识、做项目,边学边做,学透一门科目
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Lxion0553/dsh-arxiv-inspiration
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A DeepSeek Harness (DSH) plugin that turns arXiv into a personalized research-inspiration feed: on-demand surveys filtered by a local interest knowledge base + LLM ranking, a settings-page UI to review and give feedback, an accumulating paper library, and full-text deep-read notes.
arxiv_inspiration tool. Papers are fetched, coarse
filtered by your KB, ranked in parallel LLM batches, and distilled into
per-paper recommendations (中文推荐理由/💡启发/建议行动 + English agent context).~/.dsh-arxiv-inspiration/papers.jsonl with scores, feedback, Chinese
translations, notes, and deep-read state. Searchable (keyword + optional
semantic), browsable in the UI, and queryable by agents via
arxiv_knowledge_base tool actions (search_papers, get_paper,
add_paper, …).~/.dsh-arxiv-inspiration/analyses/<id>.md and open in a standalone
viewer window; cards show a 3–5 bullet Chinese summary. Agents can read and
write notes (read_analysis / write_analysis) and attach timeline notes
(add_note / list_notes).llm service
and your session model selection by default; a specific provider/model can
be pinned in settings).All data is stored under ~/.dsh-arxiv-inspiration/. Uninstalling the plugin
does not delete it.
PDF deep-read and semantic search use a small Python environment. Without it the plugin still works — surveys, ranking, library, and notes run fine; PDF deep-read is skipped and semantic search falls back to keyword matching.
The recommended way is uv:
# 1. Install uv (macOS / Linux)
curl -LsSf https://astral.sh/uv/install.sh | sh
# 2. Create a venv inside the plugin data dir (the plugin also auto-detects
# .venv inside its own install directory)
mkdir -p ~/.dsh-arxiv-inspiration
uv venv ~/.dsh-arxiv-inspiration/.venv
# 3. Install the two extras
uv pip install --python ~/.dsh-arxiv-inspiration/.venv/bin/python pymupdf fastembed
Notes:
pymupdf powers PDF text extraction (scripts/pdf_parse.py).fastembed powers semantic search (scripts/kb_vec.py, bge-small-en-v1.5,
ONNX, no torch). The model downloads on first use to
~/.dsh-arxiv-inspiration/models/.pip install — that is why a venv via uv is recommended
(python3 -m venv may lack ensurepip on macOS)..venv/bin/python in its install directory
first, then .venv/bin/python in ~/.dsh-arxiv-inspiration/, then plain
python3 on PATH.The optional alphaXiv assist (semantic discovery + PDF Q&A with page
citations) talks to https://api.alphaxiv.org/mcp/v1 with a Bearer token.
The plugin does not have a config field for it — it reuses the token from
a locally installed alphaxiv MCP bundle, so the
credential lives in exactly one place:
~/dsh-bundles/alphaxiv-mcp/cordis.patch.yml
The plugin scans that file for a header line matching
Authorization: Bearer <token> and uses it as-is. If you already run the
alphaxiv MCP bundle, the file exists and nothing to do. Otherwise create it
manually with the same shape the bundle uses, e.g.:
- insert:
- id: alphaxiv-mcp
name: dsh-mcp-client
config:
mcpServers:
alphaxiv:
url: https://api.alphaxiv.org/mcp/v1
headers:
Authorization: Bearer YOUR_ALPHAXIV_TOKEN
Notes:
If you also run the agentero-dsh
plugin (paper-reader skill), this plugin can surface its per-paper deep-dive
notes (NOTES.md) alongside its own digests — referenced, never merged:
your survey-generated notes stay untouched, and the external note is rendered
straight from its file.
Configure one field in the settings page (persisted as agenteroPapersDir in
~/.dsh-arxiv-inspiration/config.json):
/Users/<you>/<vault>/papers/papers ← the inner papers/ directory
The expected vault layout is what agentero's paper-reader skill creates:
<papersDir>/
├── 2105.01672/
│ ├── NOTES.md ← Obsidian-style deep-dive (frontmatter, wiki links)
│ ├── 2105.01672.pdf
│ └── source/ ← figures and LaTeX sources referenced by NOTES.md
└── 2610.37596/…
With the field set:
papersDir (paths escaping it are rejected).
Wiki links [[…]] are unwrapped to plain text, frontmatter is stripped, and
relative image/link targets are rewritten to the asset endpoint. Notes are
read-only — this plugin never writes into the vault.paper-reader deep-dive (external, full figures): <absolute path>,
placed between the deep-read note and the full text in the reading
hierarchy (abstract → deep-read note → paper-reader note → full text).arxiv_knowledge_base tool's get_paper action returns
agentero_note_path when a note exists, so an agent can read the file
directly.Leave the field empty (default) to disable the integration entirely.
# 1. Fetch the package into the profile
dsh plugin --profile web add github:Lxion0553/dsh-arxiv-inspiration
// 2. Register the bundle in ~/.dsh/profiles/web/package.json
// (add to the existing dsh.profile.bundles array)
"dsh": { "profile": { "bundles": [ /* … */, "dsh-arxiv-inspiration" ] } }
Step 2 is required for CLI installs: dsh plugin add fetches the package, but
only a bundle listed in dsh.profile.bundles has its cordis.patch.yml
composed into the running configuration. Installing from the GUI plugin market
does both steps for you.
After the restart the settings page gains an "arXiv Inspiration" section, and
sessions gain the arxiv_inspiration and arxiv_knowledge_base tools (open a
new session after install — tools are bound per session at creation).
Via the settings page (persisted to ~/.dsh-arxiv-inspiration/config.json):
categories, weekdays, cross-list toggle, max papers per digest, LLM
provider/model, push count & prompt, research context, alphaXiv toggles.
Recall tuning (same page):
0 days disables it.Every survey card also reports the recall funnel (fetched + carry-over → candidates → recommended) and the cost line (keyword/semantic lane sizes,
LLM batch count, estimated tokens).
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: research、arxiv。