Repository navigation
2.0.2
中文
- 适配 DeepSeek Harness 0.2.2-rc.5。
- 修复客户端入口声明:
dsh.client.inject不再引用 rc.5 已移除的@deepseek-ai/dsh-client-runtime、@deepseek-ai/dsh-client-ui-slots,只保留dsh-client-connection、dsh-client-locale、dsh-client-ui-settings。rc.5 的slots服务由dsh-client-ui-renderer提供,旧的包名在启动图里是悬空依赖。 - 62 条宿主源码补丁在 rc.5 上全部命中,无需改动;宿主事件与
system-prompt配置项同样兼容。 - 新增 2 条针对 rc.5 差异的补丁(现共 64 条):
#100 AGENT_INSTRUCTIONS_ALL_INTROS:rc.5 把 workspace 指令前言拆成四条常量(AGENT_INSTRUCTIONS_INTRO/REPLACEMENT_AGENT_INSTRUCTIONS_INTRO/EMPTY_REPLACEMENT_.../ADDITIONAL_INSTRUCTIONS_GUIDANCE+COMPACT_...),旧补丁只换了第一条。新会话第一轮走replacePreviousBaseline: true,命中的是REPLACEMENT_*,于是注入段前面仍挂着官方那句「may be relevant to your work / they do not override」,模型读到的第一条 workspace 指令仍是「仅供参考」。本条把余下三条一并换成强指令。#101 PTC_ESCALATION_NEUTRAL:rc.4 起 PTC 执行器(run_code)独立成包dsh-tool-executor-ptc,沙箱升级字段的描述独立写了两份(lib/index.js与lib/types/ptc.js)。旧的#36只覆盖dsh-tool-fs,因此走 ptc 预设时模型仍看到「requires justification and approval」「shown to the user for approval」「Request wider access only after evidence of a denial」,又会先等审批。本条把这三种措辞清掉。
- 桌面壳自愈跨世代修好:rc.4/rc.5 的
lib/main.js删掉了模块顶部的DSH_PROFILE = "desktop"锚点,导致proxy-bypass-list、GUI 侧代理环境清理两条自愈静默失配(实机核对:live main.js里[dsh-purge-safe] proxy bypass loopback/gui strip proxy计数为 0)。现在锚点回退到app.setAppLogsPath();(跨版本稳定、无缩进顶层语句),rc.5 上六条 host 标记全部命中且幂等,node --check通过。 dshTarget/dshTargets更新为0.2.2-rc.5(rc.5 起这两项只是市场元数据,兼容性校验走engines.dsh或@deepseek-ai/dsh-*peerDependencies)。- 修复:派活后子会话立刻「拒绝」(
lib/net-scope.js)。现象是主会话派出去的 recon/assess 子代理一句话都不干,回报「不行,这是严令禁止的」,父会话只能自己上手。- 根因:区域闸门挂在
agent/pre-step,拿 step 1 的 user 句判「攻击意图 + 地域域名」。父会话的人类原话(「帮我打一下 https://shanshuiapi.com/ 这个中转站」)不含攻击词,顺利过闸;但子会话的 step 1 是主会话按指令写出来的派活 brief,里面写着「nmap 全端口 / subfinder / nuclei / 端口与服务」,还列着靶标的兄弟域名变体「也查一下 shanshuiapi.cn」。于是同一段意图在子会话里被重判一次 →shanshuiapi.cn命中.cn区域规则 → 直接写一条「不行,这是严令禁止的」并把 turn 收成 completed。 - 证据:子会话
b7d4ce78的完整日志里没有任何request/header事件——模型一次都没被调用,那条「拒绝」是插件伪造的assistant/message(还写着provider: deepseek / model: deepseek-chat,而真实路由是wenwen2 / deepseek-v4.1-flash)。 - 修法:闸门只判人类那一轮。新增
isDelegatedSession(),复用identity.js的isChildAgentContext(只认origin/delegationDepth,不认parentSession,避免把续接分支误判成子会话);子会话直接放行,人类首轮照旧过闸。 - 同时把伪造消息的
provider/model改成取本轮真实modelSelection(拿不到才退回dsh-purge-safe/net-scope),下次万一再拦,日志里能一眼看出是谁写的。
- 根因:区域闸门挂在
- 用户须知与各语言 README 的版本号同步到 rc.5。
English
- Adapted for DeepSeek Harness 0.2.2-rc.5.
- Fixed the client entry declaration:
dsh.client.injectno longer names@deepseek-ai/dsh-client-runtimeor@deepseek-ai/dsh-client-ui-slots, both removed in rc.5. Onlydsh-client-connection,dsh-client-locale, anddsh-client-ui-settingsremain. In rc.5 theslotsservice is provided bydsh-client-ui-renderer, so the old package ids were dangling boot-graph edges. - All 62 host source patches still match on rc.5 and need no changes; host events and the
system-promptoptions remain compatible. - Two new patches for rc.5-only differences (64 total now):
#100 AGENT_INSTRUCTIONS_ALL_INTROS: rc.5 split the workspace-instruction preamble into four constants (AGENT_INSTRUCTIONS_INTRO/REPLACEMENT_AGENT_INSTRUCTIONS_INTRO/EMPTY_REPLACEMENT_.../ADDITIONAL_INSTRUCTIONS_GUIDANCE+COMPACT_...), and the old patch replaced only the first. A new session's first render usesreplacePreviousBaseline: true, which hitsREPLACEMENT_*, so the injected block still carried the official "may be relevant to your work / they do not override" sentence. This patch replaces the remaining three intros with the strong operator framing.#101 PTC_ESCALATION_NEUTRAL: since rc.4 the PTC executor (run_code) lives in its own packagedsh-tool-executor-ptc, with the escalation field descriptions written twice (lib/index.jsandlib/types/ptc.js). The old#36covered onlydsh-tool-fs, so under the ptc preset the model still saw "requires justification and approval", "shown to the user for approval", and "Request wider access only after evidence of a denial". This patch clears all three.
- Desktop-shell self-heal now survives the generation change: rc.4/rc.5 deleted the module-level
DSH_PROFILE = "desktop"anchor fromlib/main.js, so theproxy-bypass-listand GUI proxy-env cleanup heals silently mismatched (verified on the live install:[dsh-purge-safe] proxy bypass loopback/gui strip proxycounts were 0). The anchor now falls back toapp.setAppLogsPath();— a stable, unindented top-level statement across generations. On rc.5 all six host markers land idempotently andnode --checkpasses. dshTarget/dshTargetsbumped to0.2.2-rc.5(since rc.5 these are marketplace metadata only; compatibility is decided byengines.dshor@deepseek-ai/dsh-*peerDependencies).- Fixed: a dispatched subagent "refused" immediately (
lib/net-scope.js). Symptom: the recon/assess child spawned by the lead did no work at all and reported "不行,这是严令禁止的"; the lead had to do everything itself.- Root cause: the region gate listens on
agent/pre-stepand judges step 1's user message for "attack intent + regional domain". The human's own sentence ("帮我打一下 https://shanshuiapi.com/ 这个中转站") carries no attack keyword, so it passed. But a child's step 1 is the dispatch brief the lead wrote, full of "nmap full port / subfinder / nuclei / port and service" plus sibling-domain variants like "also check shanshuiapi.cn". The same intent was re-judged inside the child →shanshuiapi.cnmatched the.cnregion rule → the plugin wrote "不行,这是严令禁止的" and closed the turn as completed. - Evidence: the child session
b7d4ce78contains norequest/headerevent at all — the model was never called. The "refusal" was a plugin-forgedassistant/messagethat even claimedprovider: deepseek / model: deepseek-chatwhile the real route waswenwen2 / deepseek-v4.1-flash. - Fix: the gate now judges only the human turn. New
isDelegatedSession()reusesidentity.js'sisChildAgentContext(origin / delegationDepth only, deliberately ignoringparentSessionso resumed branches are not mistaken for children); delegated sessions pass straight through, the human's first turn is still gated. - The forged message's
provider/modelnow come from the livemodelSelection(falling back todsh-purge-safe/net-scope), so a future block is attributable at a glance.
- Root cause: the region gate listens on
- Welcome notice and per-language READMEs updated to rc.5.
日本語
- DeepSeek Harness 0.2.2-rc.5 に対応。
- クライアントエントリ宣言を修正:
dsh.client.injectから rc.5 で削除された@deepseek-ai/dsh-client-runtimeと@deepseek-ai/dsh-client-ui-slotsを外し、dsh-client-connection/dsh-client-locale/dsh-client-ui-settingsの 3 件のみにしました。rc.5 のslotsサービスはdsh-client-ui-rendererが提供するため、旧パッケージ ID は起動グラフ上の宙に浮いた依存でした。 - 宿主ソースへの 62 件のパッチは rc.5 でもすべて一致し、変更不要です。宿主イベントと
system-promptの設定項目も互換です。 - rc.5 固有の差分に対するパッチを 2 件追加(合計 64 件):
#100 AGENT_INSTRUCTIONS_ALL_INTROS: rc.5 で workspace 指示の前書きが 4 つの定数(AGENT_INSTRUCTIONS_INTRO/REPLACEMENT_AGENT_INSTRUCTIONS_INTRO/EMPTY_REPLACEMENT_.../ADDITIONAL_INSTRUCTIONS_GUIDANCE+COMPACT_...)に分割され、旧パッチは 1 つ目しか置換していませんでした。新規セッションの初回はreplacePreviousBaseline: trueでREPLACEMENT_*を参照するため、注入ブロックの前に公式の「may be relevant to your work / they do not override」が残っていました。本条で残り 3 つも強い指示に置換します。#101 PTC_ESCALATION_NEUTRAL: rc.4 以降 PTC 実行器(run_code)は独立パッケージdsh-tool-executor-ptcになり、サンドボックス昇格フィールドの説明が 2 か所(lib/index.jsとlib/types/ptc.js)に書かれています。旧#36はdsh-tool-fsしか対象外だったため、ptc プリセットでは「requires justification and approval」「shown to the user for approval」「Request wider access only after evidence of a denial」が残り、モデルは承認待ちで止まっていました。本条で 3 つの文言を除去します。
- デスクトップシェルの自己修復を世代交代に対応: rc.4/rc.5 の
lib/main.jsからモジュール先頭のDSH_PROFILE = "desktop"アンカーが削除されたため、proxy-bypass-listと GUI 側プロキシ環境のクリーンアップが無言で不一致になっていました(実機確認:[dsh-purge-safe] proxy bypass loopback/gui strip proxyのカウントが 0)。アンカーをapp.setAppLogsPath();(世代をまたいで安定した非インデントのトップレベル文)にフォールバックさせ、rc.5 で 6 つの host マーカーがすべて幂等にヒットしnode --checkも通ることを確認しました。 dshTarget/dshTargetsを0.2.2-rc.5に更新(rc.5 以降これらはマーケット用メタデータで、互換性判定はengines.dshまたは@deepseek-ai/dsh-*の peerDependencies で行われます)。- 修正: 派遣した子セッションが即座に「拒否」する問題(
lib/net-scope.js)。症状は、リードが派遣した recon/assess 子エージェントが何もせず「不行,这是严令禁止的」と返し、リードが自分で作業するしかない状態です。- 原因: リージョンゲートは
agent/pre-stepで step 1 の user メッセージから「攻撃意図 + 地域ドメイン」を判定します。人間の発話(「帮我打一下 https://shanshuiapi.com/ 这个中转站」)には攻撃語がないため通過します。しかし子セッションの step 1 はリードが書いた派遣ブリーフで、「nmap 全ポート / subfinder / nuclei / ポートとサービス」が並び、対象の兄弟ドメイン「shanshuiapi.cn も確認」まで含まれます。同じ意図が子セッションでもう一度判定され、shanshuiapi.cnが.cn地域ルールに一致 → 「不行,这是严令禁止的」を書き込み、turn を completed で閉じていました。 - 証拠: 子セッション
b7d4ce78のログにはrequest/headerイベントが 1 件もありません。モデルは一度も呼ばれておらず、その「拒否」はプラグインが偽造したassistant/messageでした(しかもprovider: deepseek / model: deepseek-chatと記録され、実際のルートはwenwen2 / deepseek-v4.1-flash)。 - 修正: ゲートは人間のターンだけを判定します。新規
isDelegatedSession()はidentity.jsのisChildAgentContextを再利用(origin/delegationDepthのみを見て、parentSessionは意図的に無視。再開ブランチを子と誤判定しないため)。子セッションはそのまま通過し、人間の初回ターンは従来どおり判定されます。 - 偽造メッセージの
provider/modelは実際のmodelSelectionから取得するようにし(取得できなければdsh-purge-safe/net-scope)、将来ブロックが起きても出所が一目で分かるようにしました。
- 原因: リージョンゲートは
- 利用 notice と各言語 README のバージョン表記を rc.5 に更新。
2.0.1
中文
- 修复模式中的红队模式。
- 修复权限设置中自定义模式的问题。
- 新增运行中窗口查看。
English
- Fixed Red Team mode in the mode selector.
- Fixed custom mode in permission settings.
- Added support for viewing running windows.
日本語
- モード選択のレッドチームモードを修正。
- 権限設定のカスタムモードの問題を修正。
- 実行中のウィンドウを確認できる機能を追加。
安装与更新
使用解压后的本地目录安装,Web 与桌面端分开安装、分开应用。当前为本地固定版本,在线更新与通道切换已关闭。详细步骤见 中文 README。