Study-Mate
Miaotofu01
你的AI学习搭档:定路线、讲知识、做项目,边学边做,学透一门科目
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:peishenglai3-hash/dsh-research-mode
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Evidence-first research workflow — local-first, file-based, and honest about what it can prove.
把科研还给具体的人:一个本地优先、证据优先的科研工作流。 它不是"会写论文的聊天框",而是把产物(Artifact)和证据链(Provenance)做成一等对象。
Most AI research tools optimise for answers. That is the wrong unit for research, because an answer cannot be re-checked, handed over, or challenged. This project optimises for the thing that can be: a content-addressed artifact with a provenance record that says where it came from, what was actually run, and what remains unknown.
It is a set of plugins for DeepSeek Harness (a plugin-based agent runtime), plus skills that encode research discipline rather than research marketing.
Designed for social-science work first (small samples, textual sources, local literature) — the first preset ships a Chinese social-science persona — but the evidence model is field-agnostic.
Ten bundles, 24 tools, no third-party runtime dependencies (Node builtins only).
| Bundle | What it provides |
|---|---|
research-host |
Artifact store with 7-face provenance, review records with per-round content signatures, .science archive export/import |
research-workspace |
Left-sidebar research workspace: project templates, Host project list, launch a session scoped to a project |
research-hub |
Single right-pane entry with four tabs: artifacts · provenance · reviews · local library |
research-connectors |
8 read-only connectors (OpenAlex, Crossref, DataCite, OSF/SocArXiv, PKU Dataverse, World Bank, ILOSTAT, NBS snapshot) |
research-phase2-litdb |
Read-only search over a local Chinese social-science sample database (FTS5 with LIKE fallback) |
research-phase2-notebook |
Read-only .ipynb inspection: cells, execution counts, imports, reproducibility gaps |
research-phase2-replay |
Read-only replay plan: artifacts, reviews, exports, gaps |
research-preset / research-preset-cn-social |
Agent presets: evidence-first persona + reading guardrails |
skills/ (10) |
The discipline: literature review, evidence audit, review, reproduction, design, figures, narrative, litdb, environment |
Data layout — everything lives in a plain directory you own:
.research/
projects/<id>/
project.json
artifacts/<sha256> # immutable payload, content-addressed
artifacts/<sha256>.json # sidecar: 7-face provenance
reviews/<artifactId>.json # per-round history + signature
exports/<name>.science # tar.gz, manifest + RO-Crate stub + payload
The bundles are published to npm, so a profile can install them as ordinary packages. Replace
<your-profile> with the profile you want the research workspace to appear in; exec is
deliberately not in this list (see "What this software does not do").
for pkg in host workspace hub preset preset-cn-social connectors \
phase2-litdb phase2-notebook phase2-replay; do
dsh plugin --profile <your-profile> add "@peisheng_lai/dsh-research-${pkg}"
done
dsh --profile <your-profile> --dump-config # expect 9 research rows, 0 skipped
Working from a clone instead of npm is supported too, but a relative link: resolves against the
profile directory, not against the clone — use an absolute path
(link:/abs/path/to/repo/plugins/active/research-host). docs/INSTALL.md gives both recipes.
Read docs/EVIDENCE-MODEL.md for what the seven provenance faces mean, and note that
available records that something was written down; it does not mean "verified".
node tools/w03/run-tests.mjs # the test suite (enumerates the files itself)
node tools/w01/probe-containment.mjs # 12 path-containment vectors
node tools/w01/s1-check-skill-contracts.mjs # skill <-> tool contract + mirror drift
node tools/release/npm-preflight.mjs # publication metadata (offline)
All of these are zero-dependency Node scripts, and the same four run in CI on every push. They
exist because "it works" should be a command, not a claim. tools/w01/verify-acceptance.mjs adds
13 acceptance checks, but one of them inspects a local harness profile directory and therefore
FAILs (not skips) on a machine that has no such profile — that script is a local check, not a CI
gate. Two things the suite still does not cover: bundle mounting and the GUI — see
CONTRIBUTING.md.
This section is longer than usual on purpose. A provenance tool that oversells itself is worse than none.
provenance.reproducibility.available does not mean "reproduced". It means a checksum,
byte count and source were recorded. Nothing was re-run.provenance.environment.available does not mean "reproducible environment". If you did not
pass one in, the tool fills in {platform, arch, node, python} automatically. Compare the keys
before trusting it.provenance.review.available does not mean "reviewed by a human". Signature =
unkeyed content hash. It proves the record was not edited; it does not prove identity.review verify → valid does not prove history is complete. A single file cannot prove older
rounds were not deleted or reordered. Rounds without signatures are reported as legacy, not valid.payloadVerified: true does not mean "unaltered". It means the bytes hash to the artifact id.
Nothing signs the artifact set, so someone with write access can write new bytes under a new id
with a matching sidecar and delete the original — internally consistent, and undetectable from
inside the store. Editing a payload in place is caught. See docs/EVIDENCE-MODEL.md.confirm=true is a tool parameter, not human consent. It is a speed bump, not a control..science import read-only is declared, not enforced. On Windows the copied tree is still writable.unavailable, never inferred.grep your own research.Early — v0.1.2 (CHANGELOG). The evidence layer and the local data layout are
exercised by a real acceptance suite and by CI; the reading/parsing path depends on an external PDF
parser (Docling) and is documented as such, including its measured cost — conversions of the same
two-page fixture took 115 s and 317 s, and the MCP surface exposes anchors but not page numbers.
Interfaces may change before 1.0.
This repository is the source of truth. Development, issues and releases happen here. See
CONTRIBUTING.md for the workflow and for the two things the test suite does
not cover (bundle mounting and the GUI).
Packaging: the nine bundles are published to npm as @peisheng_lai/dsh-research-* and install as
ordinary packages (dsh plugin --profile <name> add <pkg>). A clone with absolute link: paths
still works — see docs/INSTALL.md. research-phase2-exec is intentionally
not published: it executes code and has no per-tool authorization gate.
Current versions: host 0.2.1; hub, litdb, notebook and replay 0.1.1; workspace and preset
0.2.0; connectors and the Chinese social-science preset 0.1.0. The evidence fixes in 0.1.2
live in the first five — the other four did not change.
MIT — see LICENSE.
Built as part of a sociology-of-AI practice: the questions that drove it were about digital inequality, social atomisation, and what accountability looks like when knowledge production is automated. The code is the smallest possible answer we could make honest.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: research。