dsh-agent-teams-limits
github.com/mimajiushi/dsh-plugins
v0.1.0
其他
可执行外部程序以 shell 执行命令写入文件
认证 L3已扫描 ✓健康 S/100周下载 9
给 DSH 加一个设置卡片:**AgentTeams 的成员上限**(一个团队最多几个人)和**并发上限**(同一团队最多几个成员同时干活)。
作者原文(英文)
DSH plugin: Settings → Plugins card for AgentTeams member cap and per-team concurrency cap.
中文简介由 DeepSeek 模型翻译,仅供参考。
dshdsh-plugindeepseek-harnessagent-teamslimitsconcurrencysettings
源仓库没有任何提交 仓库存在但是空的,没有源码可看。npm 上的包仍然可以安装,但作者没有公开对应源码。
检测报告
关注度高。命中了不少能力模式,其中可能有需要留意的。逐条看下面的清单。
2高关注1需留意3一般18未命中
高关注需留意一般
能力清单
- 可执行外部程序
spawns-processes高关注2 处命中scripts/install.mjs:21import { spawnSync } from 'node:child_process';…pts/patch-agent-teams-limits.mjs:63import { spawnSync } from 'node:child_process';- 看它调用哪些程序。调用本机已有的工具是常见做法。
- 以 shell 执行命令
shell-exec高关注2 处命中scripts/install.mjs:112return spawnSync(line, { cwd: options.cwd, stdio: 'inherit', shell: true });scripts/install.mjs:184cwd: profileDir, shell: true, encoding: 'utf8', maxBuffer: 64 * 1024 * 1024,- 看命令字符串是拼出来的还是写死的。拼接用户输入才是真正的风险。
- 写入文件
writes-files需留意19 处命中scripts/install.mjs:84mkdirSync(dirname(path), { recursive: true });scripts/install.mjs:150copyFileSync(manifestPath, backupPath);…pts/patch-agent-teams-limits.mjs:486writeFileSync(probe, text, 'utf8');…pts/patch-agent-teams-limits.mjs:492try { unlinkSync(probe); } catch { /* the probe is best-effort */ }- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 读取文件
reads-files一般15 处命中scripts/install.mjs:58return JSON.parse(readFileSync(path, 'utf8'));scripts/install.mjs:76if (existsSync(join(candidate, 'package.json'))) return candidate;scripts/install.mjs:83if (existsSync(path)) return false;scripts/install.mjs:125if (!existsSync(manifestPath)) {- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 动态加载模块
dynamic-import一般5 处命中…ts/verify-agent-teams-limits.mjs:159const state = await import(pathToFileURL(join(LIB, 'state.js')).href);…ts/verify-agent-teams-limits.mjs:160const schedulerModule = await import(pathToFileURL(join(LIB, 'scheduler.js')).href);…ts/verify-agent-teams-limits.mjs:292const schedulerModule = await import(pathToFileURL(join(LIB, 'scheduler.js')).href);…ts/verify-agent-teams-limits.mjs:522const state = await import(pathToFileURL(join(LIB, 'state.js')).href);- 动态导入本身无害,但会让依赖关系难以静态审阅。
- 读取环境变量
reads-env一般1 处命中scripts/install.mjs:121const dshHome = process.env.DSH_HOME ?? join(homedir(), '.dsh');- 环境变量里常混有密钥。看它是否把整个 env 都读走。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 可执行外部程序 | spawns-processes | 高关注 | 2 |
| 以 shell 执行命令 | shell-exec | 高关注 | 2 |
| 写入文件 | writes-files | 需留意 | 19 |
| 读取文件 | reads-files | 一般 | 15 |
| 动态加载模块 | dynamic-import | 一般 | 5 |
| 读取环境变量 | reads-env | 一般 | 1 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 9 个文件,扫描于 2026-10-15。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
依赖安全公告
已查询这个插件声明的全部依赖,没有匹配到已公开的安全公告。(含 DSH 框架包在内的 @deepseek-ai/* 不作查询——那是运行时自己的问题,不是插件的。)