dsh-memory
v0.1.4
会话与记忆
写入文件
融合 Claude Code 的 Auto Memory 与 Codex 的 Session 记忆整理,为 DeepSeek Harness 提供简单、透明、上下文友好的长期记忆。
作者原文(英文)
Claude Code- and Codex-inspired long-term memory for DeepSeek Harness
中文简介由 DeepSeek 模型翻译,仅供参考。
deepseek-harnessdshmemorylocal-firstmarkdownagentagent-memoryclaude-code
检测报告
有一定能力。命中了若干能力模式,大多是插件正常工作时会用到的。
1需留意5一般18未命中
高关注需留意一般
能力清单
- 写入文件
writes-files需留意23 处命中lib/index.mjs:58mkdirSync(join(this.root, "workspaces"), { recursive: true });lib/index.mjs:328mkdirSync(dirname(directory), { recursive: true });lib/index.mjs:331mkdirSync(staging);lib/index.mjs:333for (const record of records) writeFileSync(join(staging, `${record.name}.md`), serializeWorkspaceRecord(record), "utf8"…- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 接触凭据或密钥
credentials一般30 处命中…olidation-failure-diagnostics.md:11Each attempt also appends stage and error-chain diagnostics to `$DSH_HOME/memory/debug/<review-id>/attempt-<n>.jsonl`. D……olidation-failure-diagnostics.md:22- Write source events and model payloads into the debug file. The worker Session already retains replayable model-visibl……olidation-failure-diagnostics.md:31- Redaction is defense in depth, not a guarantee that arbitrary secrets embedded in unusual error messages can always be……consolidation-model-selection.md:5The dedicated consolidation worker needs a user-selectable model, but dsh-memory must not duplicate Provider credentials…- 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
- 读取文件
reads-files一般19 处命中lib/index.mjs:60if (!existsSync(globalPath)) atomicWrite$1(globalPath, DEFAULT_GLOBAL);lib/index.mjs:105const content = normalizeMarkdown(readFileSync(join(this.root, GLOBAL_FILENAME), "utf8"));lib/index.mjs:161return readdirSync(workspacesRoot, { withFileTypes: true }).filter((entry) => entry.isDirectory()).flatMap((entry) => {lib/index.mjs:313const sources = readdirSync(directory, { withFileTypes: true }).filter((entry) => entry.isFile() && entry.name.endsWith(…- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 文中出现远程脚本地址
remote-url-reference一般5 处命中docs/evaluation-benchmarks.md:87- [`ingest.py`](https://github.com/volcengine/OpenViking/blob/main/benchmark/locomo/claudecode/ingest.py)docs/evaluation-benchmarks.md:88- [`eval.py`](https://github.com/volcengine/OpenViking/blob/main/benchmark/locomo/claudecode/eval.py)docs/evaluation-benchmarks.md:89- [`judge.py`](https://github.com/volcengine/OpenViking/blob/main/benchmark/locomo/claudecode/judge.py)docs/evaluation-benchmarks.md:243相关入口见官方 [`evaluate_qa.py`](https://github.com/xiaowu0162/LongMemEval/blob/main/src/evaluation/evaluate_qa.py) 和 [`print_…- 只是文本里出现了远程脚本地址,没有看到加载它的调用。多半是文档或注释;若确实可疑,搜一下这个地址在包里的其他出现位置。
- 动态加载模块
dynamic-import一般3 处命中lib/index.mjs:513return this.require(agent).globalRevision;lib/index.mjs:516const workspace = this.require(agent).workspace;lib/index.mjs:544require(agent) {- 动态导入本身无害,但会让依赖关系难以静态审阅。
- 读取环境变量
reads-env一般2 处命中lib/index.mjs:323const configured = process.env.DSH_HOME?.trim();lib/index.mjs:324const dshHome = configured === void 0 || configured === "" ? join(process.env.HOME ?? process.cwd(), ".dsh") : resolve(c…- 环境变量里常混有密钥。看它是否把整个 env 都读走。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 写入文件 | writes-files | 需留意 | 23 |
| 接触凭据或密钥 | credentials | 一般 | 30 |
| 读取文件 | reads-files | 一般 | 19 |
| 文中出现远程脚本地址 | remote-url-reference | 一般 | 5 |
| 动态加载模块 | dynamic-import | 一般 | 3 |
| 读取环境变量 | reads-env | 一般 | 2 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 46 个文件,扫描于 2026-10-14。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
依赖安全公告
这个插件声明的依赖中,有 2 条已公开的安全公告 (最高等级:中):
| 等级 | 依赖包 | 编号 | 摘要 |
|---|---|---|---|
| 中 | yaml | CVE-2023-2251 | Uncaught Exception in yaml 修复版本:2.2.2 详情 → |
| 低 | yaml | CVE-2026-33532 | yaml is vulnerable to Stack Overflow via deeply nested YAML collections 修复版本:1.10.3, 2.8.3 详情 → |
查询的是依赖声明范围的下界(如 ^4.2.0 查 4.2.0),
不是实际安装到的版本。真正装的时候如果解析到了修复版本,就不受影响——
所以这是「可能受影响」,不是「这个插件有漏洞」。数据来自
OSV.dev。