D

dsh-plugin-opencode-omo

github.com/royenheart/dsh-plugin-opencode-omo

v0.2.0 模型与账号 R015 覆盖内置工具发起网络请求写入文件

dsh plugin + agent preset that replicates opencode + oh-my-openagent (omo): opencode's toolchain and system prompt, omo's multi-role subagent orchestration, and browser-side omo role selection + per-role model/fallback settings.

该插件尚未翻译,显示作者原文。

dshdsh-plugindeepseek-harnessopencodeomoagentpresetorchestration
分类
model
发布
2026-09-10
版本
v0.2.0

检测报告

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

能力清单

  • R015 覆盖内置工具tool-shadowing高关注3 处命中
    • apply_patch, bash, task
    • 看它是否覆盖了 DSH 内置同名工具。覆盖会改变你已有习惯的行为。
  • 发起网络请求network需留意48 处命中
    • lib/client.js:27const response = await fetch(`${endpoint}${suffix}`, { headers: { accept: "application/json" } });
    • lib/client.js:34const response = await fetch(endpoint, {
    • lib/client.js:48const response = await fetch(endpoint, {
    • …references/python/async-anyio.md:337async def fetch(url: str) -> bytes:
    • 看请求发往哪些域名。发往作者自己的后端是常见做法。
  • 写入文件writes-files需留意40 处命中
    • lib/index.js:781mkdirSync(join(home, ".agent-presets"), { recursive: true });
    • …ng/references/rust/one-liners.md:106std::fs::rename(entry, &target)?;
    • …ets/opencode-omo/apply-patch.mjs:94unlinkSync(ctx.fs.processPath(target))
    • …ets/opencode-omo/apply-patch.mjs:102unlinkSync(ctx.fs.processPath(target))
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 动态执行代码dynamic-code需留意2 处命中
    • …kills/ast-grep/references/cli.md:58sg run -p 'eval($CODE)' --lang js -C 3 .
    • …/ast-grep/references/pitfalls.md:277ast-grep is great when *the syntactic shape* is what you care about: "find every call to `eval(...)`", "find every `as a…
    • 看 eval / new Function 的入参来自哪里。常量字符串和用户输入是两回事。
  • 启动伪终端spawns-pty需留意1 处命中
    • 伪终端等于给了一个完整 shell。确认这是插件的核心功能。
  • 运行时改写自身配置modifies-own-manifest需留意1 处命中
    • …cripts/typescript/new-project.ts:81writeFileSync(join(root, "package.json"), JSON.stringify(pkg, null, 2) + "\n");
    • 运行时改写自身配置会让下次启动的行为和你看过的源码不一致。
  • 接触凭据或密钥credentials一般113 处命中
    • …ntend/references/design/aside.md:27- **Page topology:** compact nav, centered hero, sky/cloud hero wash, large browser-product frame, explanatory intro ban…
    • …ntend/references/design/aside.md:39The signature move is the contrast between calm white space, a gentle cloud-like blue wash, and dense browser-product fr…
    • …ng/references/rust/axum-stack.md:143.connect(config.db.url.expose_secret())
    • …ng/references/rust/axum-stack.md:351let claims = verify_jwt(token, &state.config.jwt_secret)?;
    • 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
  • 读取文件reads-files一般59 处命中
    • lib/index.js:498text: readFileSync(entry, "utf8")
    • lib/index.js:779if (!existsSync(PRESET_SOURCE)) return "unavailable";
    • …erences/designpowers/EVIDENCE.md:76const upstream = readFileSync(join("packages/shared-skills/upstreams/designpowers/skills", name, "SKILL.md"), "utf8");
    • …erences/designpowers/EVIDENCE.md:77const materialized = readFileSync(join("packages/shared-skills/skills/frontend/references/designpowers/vendor/skills", n…
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 动态加载模块dynamic-import一般48 处命中
    • …ates/playwright_mobile_chrome.js:57return require(resolvedModule);
    • …plates/playwright_real_chrome.js:63return require(resolvedModule);
    • …g/references/go/backend-stack.md:60import (
    • …g/references/go/backend-stack.md:91import (
    • 动态导入本身无害,但会让依赖关系难以静态审阅。
  • 读取环境变量reads-env一般22 处命中
    • lib/index.js:756const configured = process.env["DSH_HOME"];
    • …/references/methodology/08-qa.md:74- [runtimes/bundled-js-binary.md](../runtimes/bundled-js-binary.md) — `process.env.X` baked at build time, dead code fro…
    • …es/runtimes/bundled-js-binary.md:385| `process.env.X` resolved at BUILD time, not RUNTIME | Setting the env var at runtime has no effect; the value is baked…
    • …ging/references/runtimes/node.md:170exec('process.env.RELEVANT_VAR')
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
  • 文中出现远程脚本地址remote-url-reference一般22 处命中
    • …es/runtimes/bundled-js-binary.md:281# → ws://localhost:6499/<auto-prefix> (paste into https://debug.bun.sh)
    • …es/runtimes/bundled-js-binary.md:349curl -fsSL https://example.com/install.sh | head -50 # find version-fetch URL
    • …/references/python/one-liners.md:37# curl -LsSf https://astral.sh/uv/install.sh | sh
    • …/references/python/one-liners.md:76# curl -LsSf https://astral.sh/uv/install.sh | sh
    • 只是文本里出现了远程脚本地址,没有看到加载它的调用。多半是文档或注释;若确实可疑,搜一下这个地址在包里的其他出现位置。
逐条扫描明细
能力标识关注度命中次数
R015 覆盖内置工具tool-shadowing高关注3
发起网络请求network需留意48
写入文件writes-files需留意40
动态执行代码dynamic-code需留意2
启动伪终端spawns-pty需留意1
运行时改写自身配置modifies-own-manifest需留意1
接触凭据或密钥credentials一般113
读取文件reads-files一般59
动态加载模块dynamic-import一般48
读取环境变量reads-env一般22
文中出现远程脚本地址remote-url-reference一般22

这份报告的口径

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

依赖安全公告

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

← 返回全部插件