Scan your whole stack
From OX Research Newsroom
Are you using dsh-handoff-baton?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.7.2
dsh-handoff-baton was last scanned on 29 Nov 2026 at version 0.7.2. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.7.2 LATEST | 29 Nov 2026 | No rules fired |
| 0.6.0 | 29 Nov 2026 | No rules fired |
| 0.5.2 | 29 Nov 2026 | No rules fired |
| 0.5.1 | 29 Nov 2026 | Not shown |
| 0.5.0 | 29 Nov 2026 | Not shown |
Findings for v0.7.2. 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.7.2; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
English | 简体中文
Turn "one conversation that keeps growing" into "one document plus one marker".
A DeepSeek Harness plugin, a model-agnostic skill, and a zero-dependency CLI. When the context is about to run out, it turns the current work into a seven-section handoff document, files it in an index, and emits a continuation phrase a new session can act on directly.
A long conversation is charged on every request: 300k tokens of history are replayed each turn. In a real 30-day bill, 57% of the spend went to cached context replay, at an average of 359k tokens per request.
Opening a new session has always been cheaper. The reason it rarely happens is the retelling — requirements, progress, constraints, and what not to touch. This plugin turns that retelling into one symbol.
| Piece | What it does |
|---|---|
Protocol baton:v1 |
An HTML comment header plus seven sections. Plain Markdown, so any model that can read files can consume it. |
Skill baton-handoff |
Decides when a handoff is due, checks your existing archive convention, asks before writing, then writes, verifies, files, and emits the phrase. |
| Plugin | Two tools, one /baton command, one pressure nudge. |
CLI baton |
15 subcommands, no dependencies, Node >= 20. Works without the plugin and without the host. |
The seven sections are: Goal / Status / Key files / Blockers / Next / Constraints / Evidence.
# DSH plugin (profile: desktop or web; restart afterwards)
dsh plugin --profile desktop add dsh-handoff-baton
# or from a local directory
dsh plugin --profile desktop add "file:/absolute/path/dsh-handoff-baton"
After the restart: the plugin page reads "任务交接棒" (Task Handoff Baton), the skill is baton-handoff, the tools are baton_check and baton_handoff, and the command is /baton.
In the new session, make this the first message:
⟦baton⟧ handoff/2026-11-29-0045-x.md
A bare ⟦baton⟧ continues from the single live entry in the global index, but only when exactly one entry is live. With several live, it lists the candidates and asks instead of guessing: picking the wrong task in a zero-context session is silent and expensive. If the one live entry points at a file that no longer exists, it reports that instead of hunting for a substitute.
Only the first non-empty line counts. Anything without the marker is ordinary chat, so the skill cannot misfire. ASCII fallbacks: <<baton>>, [[baton]].
For another model, or a host without the skill installed, use the long form:
⟦baton⟧ 读 handoff/2026-11-29-0045-x.md(交接棒 v1 协议),从「下一步」第 1 条继续。
- 只按「关键文件」读真正需要的文件,别全量加载
- 动文件前先跟我确认
| Command | Effect |
|---|---|
/baton |
Write a handoff. Asks for confirmation before anything is written. |
/baton <名称> |
Same, with a name: an optional short label (≤ 24 chars) shown first in lists. |
/baton pick [path or 名称] |
Continue from a handoff. Without an argument it resolves the index; a name that matches several entries lists them and asks. |
/baton scan [dir] |
Find unregistered handoff documents (report only, writes nothing). |
/baton doctor |
Check the catalog, the index, every route, and the AGENTS.md rule block. |
/baton snippet |
Print the AGENTS.md rule block. |
/baton status |
Context usage plus an index summary. |
/baton list |
List handoffs grouped by status, newest first. |
/baton find [term] |
Filter by name / title / id / path. |
/baton show <term> |
One handoff in detail: path, id, sections digest. |
/baton help |
Usage. |
/baton and /baton pick only queue a sentence for the next turn; the model still writes the document. status and list answer immediately and cost no model call.
The index is a single file — default $DSH_HOME/baton/INDEX.md. Its location is recorded in $DSH_HOME/baton/location.json and mirrored in the baton:catalog block of your AGENTS.md (baton snippet prints it). Lookup order: --catalog → BATON_ROOT → location.json → the default. When none exists, commands say so instead of creating a second index next to your code. That was the failure mode: one index per working directory, invisible from the next session.
Documents may live anywhere. The row records where:
- [Audio pipeline](projects/audio/20261129-0939-audio.md) — 进行中 · 2026-11-29T09:39 · audio · #转录
· #名称 is the optional name: a user-defined subtitle (≤ 24 characters, no ·, [, ], #, | or line breaks) that baton list shows before the title, so you recognise the handoff at a glance. No name means lists fall back to the title. Names may repeat; pick disambiguates by asking.baton touch <file> --status ... does it in one command.baton resolve decides what a bare marker means: one live target (exit 0), several candidates (exit 2), none or a dead route (exit 1).baton doctor checks the catalog, the index, whether every row still resolves, and whether the AGENTS.md rule block is present — filesystem only, no model tokens.baton scan finds baton:v1 documents that were never registered (e.g. a project copied to a new machine); baton adopt registers them. baton sync [--fix] reconciles documents that sit next to the index.baton prune only moves documents that really live inside the catalog (checked via realpath, so symlinks and junctions pointing outside are never followed) into archive/; documents in projects just lose their row. It reports by default and never deletes.Before continuing from an older handoff, baton drift verifies three facts in one pass: the key files it lists still exist, whether they changed after the document was written, and how many commits the repository moved since. It runs only when the document is older than 12 hours, so a same-day handoff pays nothing; --force overrides, --stale-hours tunes the gate.
The check is filesystem and git only — no model call, no rewriting, no verdict. Its output is evidence plus one line of advice: re-read the files it names before trusting the document.
node bin/baton.mjs init [--dir <location>] [--force] # first run: pick where the index lives
node bin/baton.mjs doctor [--json] # catalog / index / routes / AGENTS.md block
node bin/baton.mjs snippet # the AGENTS.md rule block to paste
node bin/baton.mjs check --tokens 300000 --window 800000
node bin/baton.mjs write --json payload.json [--dir <doc dir>] [--catalog <index dir>] [--dry-run] [--quiet]
node bin/baton.mjs new --title "标题"
node bin/baton.mjs adopt <file...> # register an existing baton:v1 document
node bin/baton.mjs scan [--roots a;b] [--adopt] # find unregistered documents
node bin/baton.mjs update 2026-11-29-0045-x.md --json payload.json
node bin/baton.mjs verify 2026-11-29-0045-x.md [--strict]
node bin/baton.mjs code 2026-11-29-0045-x.md [--long]
node bin/baton.mjs entry "⟦baton⟧ x.md"
node bin/baton.mjs archive x.md [--status 进行中]
node bin/baton.mjs list [--open] [--paths]
node bin/baton.mjs find [term] [--status S] [--since 7d] [--workspace W]
node bin/baton.mjs show <term|id> [--json]
node bin/baton.mjs set <term> [--name X] [--title Y] [--workspace W]
node bin/baton.mjs rm <term> [--doc keep|archive|delete] [--yes] [--all] [--force]
node bin/baton.mjs close <term> / reopen <term>
node bin/baton.mjs status [--stale-days 7] [--closed-days 30] [--max-closed 20]
node bin/baton.mjs drift 2026-11-29-0045-x.md [--workspace <dir>] [--force]
node bin/baton.mjs resolve [--json]
node bin/baton.mjs touch <file|path> [--status 进行中|已接手|已关闭]
node bin/baton.mjs sync [--fix]
node bin/baton.mjs prune [--older-than 30] [--apply]
| Key | Default | Meaning |
|---|---|---|
registerSkill |
true |
Register the baton-handoff skill |
registerTools |
true |
Register baton_check / baton_handoff |
registerCommand |
true |
Register /baton |
catalogDir |
'' |
Index location; empty means auto-detect (BATON_ROOT, then $DSH_HOME/baton) |
docsDir |
'' |
Where documents are written; empty means next to the index |
defaultDir |
— | Deprecated alias for docsDir |
nudge |
true |
Pressure reminders |
minTokens |
0 |
Stay quiet below this usage; reduces noise, never changes the thresholds |
warnRatio |
0.6 |
Halfway warning |
handoffRatio |
0.8 |
Handoff threshold |
staleDays |
7 |
Days without an update before an entry counts as stuck |
closedDays |
30 |
Days before a closed entry is eligible for archiving |
maxClosed |
20 |
Closed entries above this prompt a cleanup |
The plugin subscribes to two host events: session/event for token usage and the context window, and agent/pre-step to decide at every step — the reminder fires at the crossing step, not only at the first step of a turn.
Detection runs in the plugin process and costs no tokens. Only when a threshold is crossed does it inject a single line (about 25 tokens), at most once per session per tier — at 60%, at 80%, and after a compaction. There is no per-turn polling and no periodic prompt.
skills/ + bin/ + lib/. Copy it anywhere Node >= 20 exists.skills/baton/ and write documents by hand; the CLI is optional.~/.claude/skills/baton-handoff/ — the directory name must match the frontmatter name.SKILL.md into AGENTS.md or .cursor/rules, and keep references/PROTOCOL.md beside it.MIT
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.
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).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.