dsh-acp-adapter
github.com/zaimokuza-yoshiteru/dsh-acp-adapter
v0.1.0-rc.10
界面与主题
写入文件
通过 DeepSeek Harness(DSH)会话页面使用智能体,包括 Devin、Codex、Kimi 和 Claude。智能体继续负责自己的模型、工具、skills、登录状态和运行时。
作者原文(英文)
Use AI agents from the DSH session UI.
中文简介由 DeepSeek 模型翻译,仅供参考。
dshdsh-plugindeepseek-harnessagent-client-protocolacpai-agents
检测报告
有一定能力。命中了若干能力模式,大多是插件正常工作时会用到的。
1需留意4一般19未命中
高关注需留意一般
能力清单
- 写入文件
writes-files需留意7 处命中lib/protocol/v1/connection.js:455fs.rmSync(probeCwd, { recursive: true, force: true });…lient-capabilities/filesystem.js:199await abortable(writeFile(temp, bytes, { flag: 'wx', mode }), requestSignal);…lient-capabilities/filesystem.js:207await abortable(rename(temp, target), requestSignal);…on/installed-profile-registry.js:221fs.mkdirSync(probeBase, { recursive: true });- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 接触凭据或密钥
credentials一般68 处命中lib/host/factory/agent-loop.js:72import { createAgentConfigAudit, redactSecretText } from "../../domain/policy/events.js";lib/host/factory/agent-loop.js:89const clean = redactSecretText(value).replace(/[\u0000-\u001f\u007f]/g, ' ').trim();lib/host/factory/agent-loop.js:174const detail = raw === undefined ? null : redactSecretText(raw).slice(0, 4_000);lib/domain/policy/elicitation.js:8const SENSITIVE_FIELD = /(?:password|passwd|token|secret|credential|api[\s_-]*key|authorization|private[\s_-]*key|passph…- 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
- 读取文件
reads-files一般10 处命中…lient-capabilities/filesystem.js:188before = await abortable(fs.promises.readFile(target), requestSignal);…lient-capabilities/filesystem.js:202const current = await abortable(fs.promises.readFile(target), requestSignal);…on/installed-profile-registry.js:230for (const entry of fs.readdirSync(probeBase)) {lib/persistence/sidecar.js:476if (!existsSync(this.dbPath))- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 读取环境变量
reads-env一般9 处命中…runtime/process/agent-process.js:104env: envSpecWithTombstones(args.env, process.env),lib/host-compat/host-scope.js:101if (process.env['VITEST'] !== 'true' || process.env['DSH_ACP_TEST_HOST_SCOPE_STDERR'] === '1') {lib/host-compat/host-scope.js:107if (process.env['VITEST'] !== 'true' || process.env['DSH_ACP_TEST_HOST_SCOPE_STDERR'] === '1') {…in/session/launch-fingerprint.js:39const source = input.source ?? process.env;- 环境变量里常混有密钥。看它是否把整个 env 都读走。
- 动态加载模块
dynamic-import一般3 处命中lib/host-compat/host-scope.js:33importModule: async (href) => await import(__rewriteRelativeImportExtension(href)),…/types/client/ui/AcpToolRow.d.ts:80export declare function AcpToolRow({ callId, block, cwd, openFile, inspect, t, loadPresentation }: AcpToolRowProps): imp……/types/domain/session/agent.d.ts:166recordFileAudit?: (event: import('../../runtime/client-capabilities/filesystem.ts').AcpFileOperationAudit) => Promise<vo…- 动态导入本身无害,但会让依赖关系难以静态审阅。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 写入文件 | writes-files | 需留意 | 7 |
| 接触凭据或密钥 | credentials | 一般 | 68 |
| 读取文件 | reads-files | 一般 | 10 |
| 读取环境变量 | reads-env | 一般 | 9 |
| 动态加载模块 | dynamic-import | 一般 | 3 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 125 个文件,扫描于 2026-10-14。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。