rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:SivanCola/dsh-subagent-reasonix
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
把单个任务从 DeepSeek Harness(DSH)委派给本机的 Reasonix。插件页显示为「Reasonix 子智能体」,用法与官方的「Codex 子智能体」「Claude Code 子智能体」一致。
A DeepSeek Harness plugin that delegates one task to your local Reasonix over the Agent Client Protocol, using Reasonix's native authentication and settings.
reasonix(Desktop 会读取登录 shell 的 PATH)reasonix setup)。可用 reasonix doctor 检查。Desktop / Web 插件页:插件 → 添加插件 → 安装第三方插件,填入:
github:SivanCola/dsh-subagent-reasonix
命令行:
dsh plugin --profile <profile> add github:SivanCola/dsh-subagent-reasonix
装完后重启该 profile(Desktop 需重启应用)。插件默认启用,会给所有 agent 增加全局工具 subagent_reasonix。
在对话里让 DSH 把任务交给 Reasonix,最好点名工具:
用 subagent_reasonix 让 Reasonix 去做:给 src/utils/date.ts 的 formatDate 补单元测试,跑通 npm test 后告诉我结果。
subagent_reasonix,先返回子智能体 id。Reasonix 看不到你和 DSH 的对话历史,任务要写完整:路径、要求、怎样算完成。每次委派都是全新会话,不能追问;中间步骤记录在 ~/.reasonix/sessions/,不回传 DSH。
纯配置 bundle,没有 JS 代码。cordis.patch.yml 插入两行:
subagent-reasonix:DSH 的通用 ACP 提供方 @deepseek-ai/dsh-subagent-acp,每次委派启动一个新的 reasonix acp 进程。tool-subagent-reasonix:@deepseek-ai/dsh-tool-subagent,把它暴露为全局工具 subagent_reasonix。Reasonix 读取自己的 ~/.reasonix 配置与密钥,所以模型、provider、沙箱、写入范围都沿用 Reasonix 原生设置。ACP 提供方会清理父进程里疑似凭据的环境变量,不影响 Reasonix。
在 profile 的 cordis.patch.yml 中按 id 覆盖。覆盖会替换整个 config,需写全:
- id: subagent-reasonix
config:
providerName: reasonix
command: /absolute/path/to/reasonix # PATH 里找不到 reasonix 时
args: [acp, --workspace-only, --sandbox-bash, enforce] # 收紧写入范围与 bash 沙箱
permission: allow
args 可用 reasonix acp --help 中的参数,例如 --model、--profile economy|balanced|delivery。
permission: allow 会自动批准 Reasonix 的所有权限请求(子智能体无人值守),实际边界取决于 Reasonix 自身的沙箱与写入范围设置。如果你的 Reasonix 关闭了 bash 沙箱,子智能体执行的命令不受沙箱限制;需要时按上文加 --workspace-only --sandbox-bash enforce。
package.json 里三处相关声明,各自作用不同:
| 字段 | 值 | 作用 |
|---|---|---|
engines.dsh |
>=0.2.2-rc.1 <0.3.0-0 |
DSH 安装与启动时据此判断宿主是否受支持。存在此字段时,下面两条 peerDependencies 不再参与该判定。 |
dependencies |
@deepseek-ai/dsh-subagent-acp = 0.2.2-rc.1 |
acp 提供方不由 DSH 自带,必须由插件引入。 |
peerDependencies |
@deepseek-ai/dsh-tool-subagent = >=0.2.2-rc.1 <0.3.0-0 |
该包由 DSH 自带,声明为 peer 以免装出第二份;optional 是因为宿主已提供,缺了也不阻止安装。 |
为什么 acp 不能写成 peer。 DSH 本体、dsh-base、dsh-web-app 都不包含 @deepseek-ai/dsh-subagent-acp(宿主自带的 dsh-acp 是服务端,与此客户端不是一回事),只有 dsh-tool-subagent 是宿主提供的。把 acp 改成 peer 会让安装后的 profile 里无人提供该模块。
为什么版本跟宿主走。 acp 把自己的 peer 精确钉死到同一发行版(如 @deepseek-ai/dsh-session = 0.2.2-rc.1,不是范围),所以 engines.dsh 的下界就是当前 acp 支持的那条发行线。宿主在 0.2.2-rc.1 线上时可以直接用;宿主换到新发行线后,需要装对应新版本的插件。
版本不匹配时 DSH 会明确报错并跳过(skipping profile bundle "dsh-subagent-reasonix": ... incompatible with dsh ...),不会让 subagent_reasonix 悄无声息地消失。
sleep 阻塞,导致结果晚到。可在请求里加一句「启动后直接结束本轮,等完成通知」。MIT。icon.svg 改编自 Reasonix Studio 图标(MIT,© Reasonix Contributors),见 THIRD_PARTY_NOTICES.md。
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。