D

dsh-plugin-agent-deck

github.com/asun-labs/dsh-plugin-agent-deck

v0.2.3 开发与运行时 可执行外部程序发起网络请求写入文件

`@asun-labs/dsh-plugin-agent-deck` 把 Codex 子任务接入 DeepSeek Harness 对话。一个面向模型的工具通过 `agent-switch` 启动并行的 Codex CLI 进程,在对话中渲染实时任务卡片,并在原生右侧边栏中打开它们的终端输出。手动多 CLI 运行时面板也可作为原生右侧边栏标签页使用。

作者原文(英文)

Codex delegation cards and docked CLI output for DeepSeek Harness

中文简介由 DeepSeek 模型翻译,仅供参考。

deepseek-harnessdsh-pluginagent-switchterminaldashboard
分类
dev
发布
2026-10-11
版本
v0.2.3
源仓库已改名 仓库已改名,页面上的地址是旧名(GitHub 会自动跳转)。

现在的地址:asun-labs/dsh-plugin-agent-switch

检测报告

关注度高。命中了不少能力模式,其中可能有需要留意的。逐条看下面的清单。
1高关注3需留意3一般17未命中
高关注需留意一般

能力清单

  • 可执行外部程序spawns-processes高关注1 处命中
    • lib/index.js:4import { spawn, spawnSync } from "node:child_process";
    • 看它调用哪些程序。调用本机已有的工具是常见做法。
  • 发起网络请求network需留意21 处命中
    • lib/index.js:610unregister.push(ctx.connection.fetch.register({
    • lib/index.js:621unregister.push(ctx.connection.fetch.register({
    • lib/index.js:625async fetch(request) {
    • lib/index.js:643unregister.push(ctx.connection.fetch.register({
    • 看请求发往哪些域名。发往作者自己的后端是常见做法。
  • 写入文件writes-files需留意6 处命中
    • lib/index.js:235await mkdir(this.root, { recursive: true });
    • lib/index.js:283await writeFile(join(this.root, "settings.json"), JSON.stringify(next, null, 2), "utf8");
    • lib/index.js:370await mkdir(join(this.root, groupKey(callId)), { recursive: true });
    • lib/index.js:446runtime.writes = runtime.writes.then(() => appendFile(join(this.root, groupKey(runtime.group.callId), `${child.id}.log`)…
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 启动伪终端spawns-pty需留意6 处命中
    • lib/index.js:7import * as pty from "node-pty";
    • package.json:67"node-pty": "1.2.0-beta.15"
    • README.md:23The plugin includes the `node-pty` native dependency. Its install script must be allowed to run so interactive terminals…
    • README.md:35`node-pty` needs to run its native install script. If DSH reports that pnpm blocked the `node-pty` build, open the Web p…
    • 伪终端等于给了一个完整 shell。确认这是插件的核心功能。
  • 读取环境变量reads-env一般8 处命中
    • lib/index.js:102const executable = process.platform === "win32" ? process.env.ComSpec || "cmd.exe" : "agent-switch";
    • lib/index.js:114...process.env,
    • lib/index.js:223return join(process.env.DSH_HOME || join(homedir(), ".dsh"), "agent-deck");
    • lib/index.js:254const base = process.env.AGENT_SWITCH_PROFILE_HOME || join(homedir(), ".agent-switch", "profiles");
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
  • 读取文件reads-files一般7 处命中
    • lib/index.js:237const persisted = JSON.parse(await readFile(join(this.root, "settings.json"), "utf8"));
    • lib/index.js:255return (await readdir(join(base, "codex"), { withFileTypes: true })).filter((entry) => entry.isDirectory() && SAFE_OPTIO…
    • lib/index.js:264const index = JSON.parse(await readFile(join(base, "codex", ".accounts", "index.json"), "utf8"));
    • lib/index.js:291const stored = JSON.parse(await readFile(join(this.root, groupKey(callId), "group.json"), "utf8"));
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 接触凭据或密钥credentials一般1 处命中
    • README.md:71Manual terminals use the Host plugin's configured working directory. Delegated Codex tasks use their parent DSH session'…
    • 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
逐条扫描明细
能力标识关注度命中次数
可执行外部程序spawns-processes高关注1
发起网络请求network需留意21
写入文件writes-files需留意6
启动伪终端spawns-pty需留意6
读取环境变量reads-env一般8
读取文件reads-files一般7
接触凭据或密钥credentials一般1

这份报告的口径

扫描读的是包里的源码,全程不执行第三方代码。 本次读了 5 个文件,扫描于 2026-10-14。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。

依赖安全公告

已查询这个插件声明的全部依赖,没有匹配到已公开的安全公告。(含 DSH 框架包在内的 @deepseek-ai/* 不作查询——那是运行时自己的问题,不是插件的。)

← 返回全部插件