Scan your whole stack
From OX Research Newsroom
Are you using dsh-hanlin?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.1.0
dsh-hanlin was last scanned on 29 Nov 2026 at version 0.1.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.1.0 LATEST | 29 Nov 2026 | No rules fired |
| 0.0.0-stage | 29 Nov 2026 | Not shown |
Findings for v0.1.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.1.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.

宣传图为按实机 CSS 渲染的脱敏演示界面,不是运行截图。
面向 DeepSeek Harness(DSH) 的独立、轻量、自主可控权威记忆插件:AI 提草案、人掌终审权、按需主动检索、零后台模型费用。
在长期使用 AI 辅助研发与日常研究时,传统记忆插件往往存在四个痛点:
翰林院(dsh-hanlin) 采用相反的设计哲学:用约 1,350 行零第三方依赖的纯 ESM 核心,把记忆的主权、可读性与成本控制权完整交还给用户。
翰林院严格区分**「层级(用途)」与「类型(性质)」**,避免语义重叠:
| 层级 | 中文名称 | 英文 | 用途定位 |
|---|---|---|---|
| M0 | 底档 | Source | 原始证据的引用与锚点(约定不复制会话正文;未做程序强制) |
| M1 | 随记 | Notes | 短期会话备忘、当前任务进度 |
| M2 | 实录 | Record | 项目客观事实、技术根因、环境约束 |
| M3 | 决议 | Resolution | 架构裁决、方案选型与变更结论 |
| M4 | 律令 | Statute | 长期个人规范与制度约束(可设为全局生效) |
| 类型 | 中文名称 | 英文 | 性质说明 |
|---|---|---|---|
| Fact | 事实 | Statement / Fact | 已观察到的客观情况或根因 |
| Decision | 决策 | Decision | 经过权衡的方案选择与拍板 |
| Claim | 主张 | Claim | 待核实或过程性的陈述 |
| Hypothesis | 假设 | Hypothesis | 尚待验证的推断或猜想 |
注:
M4 律令固定为规则(Rule),界面上只展示「M4 律令」,不重复显示类型标签。

hanlin_memory_submit 提交的所有记录强制进入「待审核(candidate)」状态,绝不自动进入日常检索。suggestClassification,在导入、新建或提交时自动建议所属层级(M1–M4)与类型,0 额外模型调用。verify)后,记忆才转为「已生效(active)」。locked)」**:内核级程序门禁,AI 永远无法修改、覆盖、归档或解锁已锁定条目。hanlin_memory_search 检索(单次最多返回 10 条)。M4 律令」。[DATA] 前缀,仅作数据参考,不提升为系统指令。validAt / invalidAt)与系统认知时间(createdAt / expiredAt / archivedAt),支持按历史时点回溯查询(as-of)。supersede):保留旧版本与变更原因(v1 → v2),防止历史错误方案静默复活。memory.json(上限 5,000 条记忆 / 1,000 条审计日志),人类可读、易于备份与 Diff 审计。canonicalDir(含 Windows Junction 规范化)的跨进程文件锁、append-only 单调递增 Epoch Fencing、Copy-on-Write 原子落盘(tmp + fsync + rename),以及残留 .tmp 故障关闭(fail-closed)。conversation.view,与「对话 / 轨迹 / 挂载文件 / 统计」并列),不挤占输入框空间。从 npm 安装(在目标 DSH profile 内执行):npm install dsh-hanlin。也可以将发布包解压/链接到 profile 的 node_modules\dsh-hanlin。随后在 dsh.profile.bundles 中加入 dsh-hanlin,并在 profile 的 cordis.patch.yml 中配置:
- insert:
- id: dsh-hanlin
name: dsh-hanlin
config:
dataDir: '<你的记忆数据目录绝对路径>'
projectRoots:
- root: '<你的项目根目录绝对路径>'
projectId: '<稳定项目 ID>'
uiEnabled: false
memoryMode: builtin
| 配置项 | 必填 | 说明 |
|---|---|---|
dataDir |
是 | 权威记忆库 memory.json 与锁文件所在目录的绝对路径(不提供默认生产路径,防止误写)。 |
projectRoots |
否 | 显式登记的项目根目录与 projectId 映射,按最长前缀匹配;未登记目录各自按 cwd:<规范化路径> 隔离,Git 根目录不会自动扩权。 |
memoryMode |
否 | builtin(独立运行,默认)或 hanlin-service(由外部集成方经服务接口访问)。 |
hanlin_memory_search:按宿主可信 sessionId 与 cwd 派生项目范围,按需检索当前有效记忆(忽略模型自报的 sessionId/cwd/projectId)。hanlin_memory_submit:以 1–3 句高密度格式提交候选记忆(保留路径、命令、参数、错误码等硬锚点),自动或手动指定 layer 与 kind。由于采用跨进程唯一写者锁,DSH 运行期间请直接使用顶部「翰林」Tab 进行在线管理;仅在 DSH 停机维护时使用 tools/manage.mjs:
# 查看状态与列表
node tools/manage.mjs status --data-dir <数据目录>
node tools/manage.mjs list --data-dir <数据目录> --all --limit 100
# 确认、锁定与归档(写操作必须带 --confirm)
node tools/manage.mjs verify --data-dir <数据目录> --id <id> --confirm
node tools/manage.mjs lock --data-dir <数据目录> --id <id> --confirm
node tools/manage.mjs archive --data-dir <数据目录> --id <id> --confirm
# 维护导入(需同时具备 --maintenance --confirm 且 --maintenance-token 匹配环境变量 HANLIN_MAINTENANCE_TOKEN)
node tools/manage.mjs import --data-dir <数据目录> --file <snapshot.json> --maintenance --confirm --maintenance-token <token>
为保持个人可长期维护的轻量边界,本项目明确不做:
MIT
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.