dsh-octopus-launch
by ljnljn2005
DSH 插件:dsh 启动时自动后台拉起外部程序(默认场景为 octopus LLM 网关),幂等去重、detached 后台运行
安装
dsh plugin --profile web add github:ljnljn2005/dsh-octopus-launchGitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试
安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗
安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。
README
DSH(DeepSeek Harness)插件:dsh 启动时自动在后台拉起外部程序,默认配置用于拉起 Linux 版 octopus LLM 网关(/mnt/d/Programs/octopus/octopus start)。
特性
| 特性 | 说明 |
|---|---|
| 幂等 | 先 pgrep 检测目标进程,已在运行则跳过,绝不重复拉起 |
| 防并发 | 启动前二次检测,两个 dsh 同时启动时基本只会拉起一次 |
| 后台运行 | detached + setsid,dsh 进程退出后目标进程继续存活 |
| 工作目录 | 自动设为二进制所在目录(octopus 用相对路径 ./data/config.json) |
| 启动日志 | 输出到 <二进制目录>/<二进制名>.dsh.log,便于排障 |
| 失败隔离 | 任何失败只记日志,绝不影响 dsh 主流程 |
安装
dsh plugin --profile web add github:ljnljn2005/dsh-octopus-launch
dsh plugin --profile headless add github:ljnljn2005/dsh-octopus-launch # 可选
profile 的 cordis.patch.yml 中启用(binaryPath 必填,按你的环境填写):
- insert:
- id: octopus-launch
name: 'dsh-octopus-launch'
config:
binaryPath: '/mnt/d/Programs/octopus/octopus'
args:
- start
配置项
| 字段 | 类型 | 默认 | 说明 |
|---|---|---|---|
binaryPath |
string | 必填 | 要拉起的可执行文件绝对路径(按自己环境填) |
args |
string[] | ["start"] |
启动参数 |
detectCommand |
string | pgrep -x <二进制名> |
检测进程是否已运行的命令 |
logFile |
string | <二进制目录>/<名>.dsh.log |
启动日志输出文件 |
autoStart |
boolean | true |
是否在 dsh 启动时自动拉起 |
confirmDelayMs |
number | 1500 |
启动后等待确认的毫秒数;0 = 不确认 |
recheckDelayMs |
number | 300 |
启动前二次检测间隔(毫秒) |
数据库手动清理(可选)
octopus 会把每次转发的完整请求体存入 data/data.db 的 relay_logs 表,长期运行可能涨到十几 GB。仓库内附带安全清理脚本 cleanup.sh(重建策略,非 DELETE+VACUUM——后者在大库上中断会导致 SQLite 文件损坏),放在 octopus 目录下执行即可:
cd /mnt/d/Programs/octopus
./cleanup.sh # 默认:清空 relay_logs,保留 1 个备份
./cleanup.sh --keep=3 # 保留最近 3 个备份
RESTART=0 ./cleanup.sh # 清理后不重启 octopus
执行流程:停止 octopus → 原库 mv 备份为 data/data.db.bak.<时间戳>(零风险回退点)→ 复制完整 schema + 全部配置/统计表数据(relay_logs 建空表)→ PRAGMA integrity_check 验证 → 失败自动回滚 → 新库就位 → 重启。配置数据(渠道/API Key/价格)永远保留,只有转发日志被清空。
本地测试
node test/test.mjs
用 /bin/sleep 复制成的假二进制模拟常驻服务,验证后台拉起、幂等去重、进程确认。
原始 README: https://github.com/ljnljn2005/dsh-octopus-launch/blob/main/README.md ↗
同类插件
查看全部 →
agent-vision-toolkit
为纯文本模型"看图“设计更好的视觉工具箱和技能,支持多图理解,图片问答,前端UI还原、GUI 自动化等,并可选无缝接入多个主流agent,直接识别粘贴图片| A vision toolkit and skill designed for text-only llms — image Q&A, long-screenshot OCR, frontend UI restoration, and GUI automation, with optional seamless integration for Codex, Claude Code, Pi, Oh My Pi, and OpenCode

api-relay-audit
从 DeepSeek Harness 对 AI API 中转站和 LLM 代理运行本地安全审计,生成 Markdown 报告,覆盖提示词注入、模型替换信号、工具调用改写、错误泄漏、流完整性和按 profile 启用的 Web3 风险。

OpenStory
✨ OpenStory 现已支持 DeepSeek Harness 插件! 现在可以通过 dsh-openstory 将 OpenStory 多智能体推演接入 DeepSeek Harness,让 agent 直接启动模拟、查看角色、下达指令并逐回合推进故事。查看 DSH 插件配置与使用指南。

phi
pi的编码代理 ∞ 提供者、子代理、hashline编辑和权限门

anysearch-dsh
DeepSeek Harness(DSH)的 AnySearch 网络搜索提供方与高级搜索工具。

codex-switch
Codex Switch 是一个 macOS 工具,一键配置 Codex 的自定义 API,同时保留官方 OpenAI 登录。保存后 Codex 的模型选择器里只会出现你选的那个 provider 的模型。也支持 Claude Code 的官方 / 自定义 API 切换。Codex Switch is a lightweight helper for configuring multiple coding-agent API routes. For Codex, it keeps Official OpenAI and a custom API provider configured in parallel, registers the custom model in Codex's mod