R

relay-dsh-plugin-codex

github.com/Maybank01/agentrouter-dsh-plugins

v0.2.2-agentrouter.1 会话与记忆 可执行外部程序R010 向其他插件注入写入文件

`relay-dsh-plugin-codex` 为官方 DeepSeek Harness(DSH)Web UI 添加了 **Codex 作为原生对话后端**。你可以继续使用 DSH 的工作区、对话历史、输入框、审批和工具,同时每个 DSH Session 会持续对应一个 Codex App Server Thread。该插件可独立安装,无需检出 Relay。

作者原文(英文)

Codex conversation backend for DeepSeek Harness, powered by the Codex App Server with approvals and DSH tool support. AgentRouter fork: generic child-process launch configuration and pinned Codex runtime.

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

dsh-plugindeepseek-harnessdsh
分类
session
发布
2026-09-07
版本
v0.2.2-agentrouter.1
源仓库已无法访问 这个仓库已经删除、改名或转为私有,看不到源码了。npm 上的包仍然可以安装——安装走的是 npm,不读 GitHub——但无法审阅代码,装之前请自行判断。

检测报告

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

能力清单

  • 可执行外部程序spawns-processes高关注1 处命中
    • lib/host-plugin.js:5import { spawn } from "node:child_process";
    • 看它调用哪些程序。调用本机已有的工具是常见做法。
  • R010 向其他插件注入plugin-tree-injection高关注1 处命中
    • relay-dsh-plugin-session-import
    • 看 patch 里 insert 的包是不是本项目自己的。插入第三方代码要格外留意。
  • 写入文件writes-files需留意12 处命中
    • lib/host-plugin.js:1917await mkdir(root, {
    • lib/host-plugin.js:1925await writeFile(temporary, data, {
    • lib/host-plugin.js:1941await unlink(temporary).catch((error) => {
    • lib/host-plugin.js:4018mkdirSync(dirname(this.path), { recursive: true });
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 读取文件reads-files一般11 处命中
    • lib/host-plugin.js:1757const data = await readFile(target);
    • lib/host-plugin.js:1936const existing = await readFile(path);
    • lib/host-plugin.js:2111].map(([label, relative]) => [label, join(dependencies, relative)]).filter(([, path]) => existsSync(path));
    • lib/host-plugin.js:2132if (!existsSync(manifest)) return "unknown";
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 读取环境变量reads-env一般11 处命中
    • lib/host-plugin.js:299function resolveCodexLaunch({ command, env = process.env, execPath = process.execPath, platform = process.platform, arch…
    • lib/host-plugin.js:1466return join(codexHome ?? process.env.CODEX_HOME ?? join(homedir(), ".codex"), "visualizations", year, month, day, thread…
    • lib/host-plugin.js:1913function codexInputImageRoot(codexHome = process.env.CODEX_HOME?.trim() || join(homedir(), ".codex")) {
    • lib/host-plugin.js:2128return process.env.CODEX_PRIMARY_RUNTIME_ROOT ?? join(homedir(), ".cache/codex-runtimes/codex-primary-runtime");
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
  • 接触凭据或密钥credentials一般11 处命中
    • README.md:103using the CLI, verify the shared local credentials with:
    • README.md:112installation and sign-in options. Credentials stay under Codex's normal local
    • docs/reliability-acceptance.md:13| C6 Secret-safe shell environment | Start the isolated Host with a unique secret and digest-only consumer; retain the o…
    • docs/reliability-spec.md:18receive the effective Codex child environment; Relay does not turn secret delivery
    • 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
  • 动态加载模块dynamic-import一般4 处命中
    • lib/host-plugin.js:35require(name, range = "*") {
    • lib/host-plugin.js:43return this.require(name, range);
    • lib/host-plugin.js:238require(name) {
    • lib/host-plugin.js:241return registry.require(name, range);
    • 动态导入本身无害,但会让依赖关系难以静态审阅。
逐条扫描明细
能力标识关注度命中次数
可执行外部程序spawns-processes高关注1
R010 向其他插件注入plugin-tree-injection高关注1
写入文件writes-files需留意12
读取文件reads-files一般11
读取环境变量reads-env一般11
接触凭据或密钥credentials一般11
动态加载模块dynamic-import一般4

这份报告的口径

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

依赖安全公告

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

← 返回全部插件