Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

dsh-go-handoff-nudge

Latest version: v0.1.0

Overview

Last scanned
30 Nov 2026
Published
30 Nov 2026
npm package Publisher: xuduanfeng
2 Versions

Scan summary

dsh-go-handoff-nudge was last scanned on 30 Nov 2026 at version 0.1.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 2 versions, all published on 30 Nov 2026.
  • Findings: No rules fired in version 0.1.0.

Versions

2 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.0 LATEST 30 Nov 2026 No rules fired
0.0.0-stage 30 Nov 2026 Not shown

No rules fired in 0.1.0

Findings

Findings for v0.1.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.1.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

dsh-go-handoff-nudge

回合收尾时的「知识沉淀」提示:如果一个回合做了不少工具调用、却没有把任何结论写进知识档案,就在 agent/turn-stopping(boundary 提交前)steer 一条用户消息,提醒模型按本工作区的规则判断「这一轮有没有值得长期复用的知识」。

  • 每会话最多提示 1 次;纯问答(工具调用 < 3)不提示;已写过知识档案的回合不提示;子代理不提示;被「停止」取消的回合不提示。
  • 只保证「别忘了看一眼」,不替模型判断内容价值。误报时模型回一句「无需沉淀」即可结束本轮。
  • host-only Cordis 插件,无客户端、无原生 UI、无 HAP;不依赖 shell 子进程。

和桌面版的差异

项 桌面版 dsh-handoff-nudge 本插件(dsh-Go)
事实路径 research/、analysis/、docs/、skills/、STATE.md topics/、docs/、.dsh/skills/、tools/、AGENTS.md、STATE.md
shell 工具 ops_bash、wsl_exec、docker_*、pwsh bash(同时保留桌面名,方便两边跑)
落档动作 通用写文件提示 额外识别 session-archive.mjs(手机上落档用它)
提示词落点 handoff.mjs where AGENTS.md 的「长期主题档案」+ topics/README.md 的「归属三问」
中断 可选跳过 aborted 默认跳过(手机「停止键」用得多)
承诺规则 有(规则二) 去掉:本需求只关心知识沉淀;承诺提醒会引入无关误报
日志 ~/.dsh/logs/ 会话工作区 .dsh/logs/handoff-nudge.log(手机 $DSH_HOME 只读)
去重 进程内 Map 同左;引擎重启会丢,最多再提醒一次

判据

同时满足才提示:

  1. 本回合 tool/call 次数 ≥ HANDOFF_NUDGE_MIN_CALLS(默认 3);
  2. 本回合没有任何「事实写入」:
    • write / edit 的路径命中 topics|docs|skills|tools/ 或 STATE.md / AGENTS.md;
    • bash 命令里同时出现这些路径和明确写动作(>、tee、sed -i、writeFileSync、cp/mv、session-archive.mjs 等);
  3. 本会话还没提示过;
  4. 不是子代理(session.header.delegationDepth > 0);
  5. 回合没有被 signal.aborted 取消;
  6. 回合最后有 assistant 文字(空回合不提示)。

判定数据来自 agent.session.ownEvents() 里的 tool/call / assistant/message,不依赖插件自己观察到的调用流,所以热载、resume、压缩重建都不会漏掉回合开头的调用。

安装(npm)

这是 host-only 的 Cordis 插件,纯 JS、无安装脚本、无原生依赖。发布机(有 npm 的电脑)上:

tar -xzf dsh-go-handoff-nudge-0.1.0.tgz
cd package
npm publish

也可以直接在源码目录(有 package.json 的那层)执行 npm publish。包名 dsh-go-handoff-nudge 无 scope,默认 public;npm 按 files 只发布 lib/、cordis.patch.yml、README.md、LICENSE。

手机端安装(本机插件管理器只收注册表纯 JS 包,npm 包正好符合):

dsh plugin --profile web add dsh-go-handoff-nudge

或在 App 的插件安装输入框填 dsh-go-handoff-nudge@0.1.0。装完重启引擎。

本地目录 / .tgz 不要走手机插件管理器:会返回 [OHOS_PLUGIN_UNSUPPORTED] 鸿蒙本机仅支持注册表纯 JS 包……;这台引擎也没有交互终端。 开发时可在桌面或远程主机用 dsh plugin --profile web add <dir> 验证。

开关

环境变量 作用
HANDOFF_NUDGE=0 整插件停用
HANDOFF_NUDGE_MIN_CALLS=5 改最小工具调用数(默认 3)
HANDOFF_NUDGE_DEBUG=1 记 skip 行(跳过原因),用于量化误报

手机 App 若不暴露环境变量,直接卸载插件即可关闭。

验证

  1. 新开一个会话,做 3 次以上工具调用,但不写 topics/、.dsh/skills/、docs/、tools/、AGENTS.md;
  2. 让模型收尾,应看到一条 [沉淀提示 · 自动];
  3. 同一会话再来一轮,不应再提示;
  4. 看 .dsh/logs/handoff-nudge.log:fired rule=handoff ... 为触发,response ... outcome=file|declined|text-only|silent 是上一次的结算;
  5. 源码目录里跑 node test/nudge.test.mjs,13 条离线用例应全过(npm 包不含 test/)。

已知边界

  • 每会话只提醒一次;如果第一次触发发生在较早的回合,后面更重要的回合不会再提醒。要更频繁可改去重逻辑(不建议默认放开)。
  • 去重表在进程内;引擎重启/切后台被冻结后可能再提醒一次,成本约 0.01 元。
  • 判据只看「有没有写知识路径」,不判断内容价值;误报由模型自己裁决。
  • 不识别「路径与写动作分散在两条命令」「路径来自变量」的落盘,会多提醒一次,不会误报成没写。

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm dsh-go-handoff-nudge

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229