dsh-handoff-baton 0.4.1 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -0
- package/README.md +165 -151
- package/bin/baton.mjs +335 -125
- package/cordis.patch.yml +2 -1
- package/docs/AGENTS-snippet.md +16 -0
- package/docs/DETAIL.en.md +8 -4
- package/docs/DETAIL.md +8 -4
- package/docs/README.zh-CN.md +165 -151
- package/index.js +587 -508
- package/lib/catalog.js +292 -0
- package/lib/command.js +14 -8
- package/lib/message.js +28 -0
- package/lib/paths.js +61 -0
- package/lib/protocol.js +232 -59
- package/lib/queue.js +48 -0
- package/package.json +1 -1
- package/skills/baton/SKILL.md +22 -12
- package/skills/baton/references/PROTOCOL.md +19 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.5.1 · 2026-11-29
|
|
4
|
+
|
|
5
|
+
实测事故:`/baton` 的 now / pick 在任何对话里都报「无法将请求排入对话(宿主模块不可用)」,压力提醒也一次没触发过。
|
|
6
|
+
|
|
7
|
+
- 根因:插件用 `import('@deepseek-ai/dsh-llm')` 取宿主的 `createUserMessage`,该宿主里动态 import 落空,函数恒为 undefined——排队与提醒同时静默失效
|
|
8
|
+
- 修法:新增 `lib/message.js` 本地消息工厂(role + 随机 id + 深拷贝后深冻结,与宿主 `createMessage` 同形),插件不再依赖任何宿主模块
|
|
9
|
+
- 排队逻辑抽到 `lib/queue.js`(followup / send / inbox 三条入口 + 两种失败原因),首次被单测覆盖
|
|
10
|
+
- 压力提醒恢复:60% / 80% / 压缩后三条提醒重新生效
|
|
11
|
+
- 排队失败的话术拆成两种:没有会话(新建对话页面)与没有排队入口,各自给出下一步,不再笼统一句「宿主模块不可用」
|
|
12
|
+
- 接棒口令容错:标记后面可以直接贴 `baton list` 的整行或 markdown 链接,行尾的 `.md` 路径会被自动取出(纯路径与名称写法照旧)
|
|
13
|
+
- 测试新增 11 项(消息形状、id 唯一、深冻结、深拷贝隔离、不再动态 import;三条排队入口、两种失败、话术区分;口令容错)
|
|
14
|
+
|
|
15
|
+
## 0.5.0 · 2026-11-29
|
|
16
|
+
|
|
17
|
+
全局唯一索引。修的是实测事故:索引跟着工作目录各写一份,换个会话就找不到上一份交接。
|
|
18
|
+
|
|
19
|
+
- 新增交接目录(catalog)概念:全机只有一份索引,查找顺序 `--catalog` > `BATON_ROOT` > `$DSH_HOME/baton/location.json` > 默认 `$DSH_HOME/baton/`;找不到就报「未初始化」,绝不回退到当前目录另建一份
|
|
20
|
+
- 新增 `baton init`:首次使用时选定位置,写 `location.json`;已存在的索引不覆盖
|
|
21
|
+
- 新增 `baton doctor`:体检目录、索引、每条路由是否可达、AGENTS.md 规则块、滞留条目;全本地文件操作,不花 token
|
|
22
|
+
- 新增 `baton snippet`:打印要贴进 AGENTS.md 的规则片段(带 `baton:catalog` 标记)
|
|
23
|
+
- 新增 `baton scan` / `baton adopt`:扫出没登记的交接文档并登记进索引;`scan` 默认只报告,`--adopt` 才写
|
|
24
|
+
- 索引行支持第三列工作区,并支持三种路径:裸文件名(同目录)、相对路径(相对索引目录)、绝对路径(文档在项目里);`prune` 不再搬动项目里的文件,只摘索引行
|
|
25
|
+
- 新增可选「名称」:用户自定义副标题(≤ 24 字),`/baton 钩锁` 直接给名称,写进头 `name:`、索引行尾 `#钩锁`、标题下的 `> 名称:钩锁`;`baton list` 把名称排在标题前,`/baton pick 钩锁` 可按名称接手,重名时列候选不猜;没名称时一切退回原样
|
|
26
|
+
- `baton init` 不会悄悄改指已存在的目录(要 `--force`),`BATON_ROOT` 生效时只建目录、不写机器级位置记录——避免一次临时操作把全机索引指走
|
|
27
|
+
- `baton resolve` 会核对目标文件是否还在:唯一那条指向的文件缺失时报告用户,不硬找
|
|
28
|
+
- `/baton scan` / `/baton doctor` / `/baton snippet` 直接回答,不再被当成「名称」去写交接(之前 `/baton scan` 会排队写一份叫 scan 的交接)
|
|
29
|
+
- 校验加严:目标为空、或现状与下一步同时为空,判不通过——空壳交接会占住索引还骗过接手方
|
|
30
|
+
- 插件配置改名:`catalogDir` / `docsDir`(旧 `defaultDir` 仍兼容,等同 `docsDir`)
|
|
31
|
+
- `baton drift` 找工作的目录时支持 `--workspace`、`--workspace_root` 头字段、文档上级目录、当前目录多级回退,并说明用了哪一个
|
|
32
|
+
- 技能与协议文档改写:删掉「在项目里建 handoff/INDEX.md」这条老规矩
|
|
33
|
+
- 测试 76 项(新增 catalog 10 项,改 1 项)
|
|
34
|
+
|
|
3
35
|
## 0.4.1 · 2026-11-29
|
|
4
36
|
|
|
5
37
|
仓库迁移。
|
package/README.md
CHANGED
|
@@ -1,151 +1,165 @@
|
|
|
1
|
-
# Task Handoff Baton · dsh-handoff-baton
|
|
2
|
-
|
|
3
|
-
English | [简体中文](https://github.com/Well-WeiLuo/handoff-baton/blob/main/docs/README.zh-CN.md)
|
|
4
|
-
|
|
5
|
-
Turn "one conversation that keeps growing" into "one document plus one marker".
|
|
6
|
-
|
|
7
|
-
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.
|
|
8
|
-
|
|
9
|
-
## Why a handoff at all
|
|
10
|
-
|
|
11
|
-
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.
|
|
12
|
-
|
|
13
|
-
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.
|
|
14
|
-
|
|
15
|
-
## What's in the box
|
|
16
|
-
|
|
17
|
-
| Piece | What it does |
|
|
18
|
-
| --- | --- |
|
|
19
|
-
| Protocol `baton:v1` | An HTML comment header plus seven sections. Plain Markdown, so any model that can read files can consume it. |
|
|
20
|
-
| 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. |
|
|
21
|
-
| Plugin | Two tools, one `/baton` command, one pressure nudge. |
|
|
22
|
-
| CLI `baton` | 15 subcommands, no dependencies, Node >= 20. Works without the plugin and without the host. |
|
|
23
|
-
|
|
24
|
-
The seven sections are: Goal / Status / Key files / Blockers / Next / Constraints / Evidence.
|
|
25
|
-
|
|
26
|
-
## Install
|
|
27
|
-
|
|
28
|
-
```sh
|
|
29
|
-
# DSH plugin (profile: desktop or web; restart afterwards)
|
|
30
|
-
dsh plugin --profile desktop add dsh-handoff-baton
|
|
31
|
-
|
|
32
|
-
# or from a local directory
|
|
33
|
-
dsh plugin --profile desktop add "file:/absolute/path/dsh-handoff-baton"
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
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`.
|
|
37
|
-
|
|
38
|
-
## Pick up a handoff
|
|
39
|
-
|
|
40
|
-
In the new session, make this the first message:
|
|
41
|
-
|
|
42
|
-
```
|
|
43
|
-
⟦baton⟧ handoff/2026-11-29-0045-x.md
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
A bare `⟦baton⟧` continues from the
|
|
47
|
-
|
|
48
|
-
Only the first non-empty line counts. Anything without the marker is ordinary chat, so the skill cannot misfire. ASCII fallbacks: `<<baton>>`, `[[baton]]`.
|
|
49
|
-
|
|
50
|
-
For another model, or a host without the skill installed, use the long form:
|
|
51
|
-
|
|
52
|
-
```
|
|
53
|
-
⟦baton⟧ 读 handoff/2026-11-29-0045-x.md(交接棒 v1 协议),从「下一步」第 1 条继续。
|
|
54
|
-
- 只按「关键文件」读真正需要的文件,别全量加载
|
|
55
|
-
- 动文件前先跟我确认
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
## Slash commands
|
|
59
|
-
|
|
60
|
-
| Command | Effect |
|
|
61
|
-
| --- | --- |
|
|
62
|
-
| `/baton` | Write a handoff. Asks for confirmation before anything is written. |
|
|
63
|
-
| `/baton
|
|
64
|
-
| `/baton pick [path]` | Continue from a handoff. Without
|
|
65
|
-
| `/baton
|
|
66
|
-
| `/baton
|
|
67
|
-
| `/baton
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
node bin/baton.mjs
|
|
103
|
-
node bin/baton.mjs
|
|
104
|
-
node bin/baton.mjs
|
|
105
|
-
node bin/baton.mjs
|
|
106
|
-
node bin/baton.mjs
|
|
107
|
-
node bin/baton.mjs
|
|
108
|
-
node bin/baton.mjs
|
|
109
|
-
node bin/baton.mjs
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
1
|
+
# Task Handoff Baton · dsh-handoff-baton
|
|
2
|
+
|
|
3
|
+
English | [简体中文](https://github.com/Well-WeiLuo/handoff-baton/blob/main/docs/README.zh-CN.md)
|
|
4
|
+
|
|
5
|
+
Turn "one conversation that keeps growing" into "one document plus one marker".
|
|
6
|
+
|
|
7
|
+
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.
|
|
8
|
+
|
|
9
|
+
## Why a handoff at all
|
|
10
|
+
|
|
11
|
+
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.
|
|
12
|
+
|
|
13
|
+
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.
|
|
14
|
+
|
|
15
|
+
## What's in the box
|
|
16
|
+
|
|
17
|
+
| Piece | What it does |
|
|
18
|
+
| --- | --- |
|
|
19
|
+
| Protocol `baton:v1` | An HTML comment header plus seven sections. Plain Markdown, so any model that can read files can consume it. |
|
|
20
|
+
| 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. |
|
|
21
|
+
| Plugin | Two tools, one `/baton` command, one pressure nudge. |
|
|
22
|
+
| CLI `baton` | 15 subcommands, no dependencies, Node >= 20. Works without the plugin and without the host. |
|
|
23
|
+
|
|
24
|
+
The seven sections are: Goal / Status / Key files / Blockers / Next / Constraints / Evidence.
|
|
25
|
+
|
|
26
|
+
## Install
|
|
27
|
+
|
|
28
|
+
```sh
|
|
29
|
+
# DSH plugin (profile: desktop or web; restart afterwards)
|
|
30
|
+
dsh plugin --profile desktop add dsh-handoff-baton
|
|
31
|
+
|
|
32
|
+
# or from a local directory
|
|
33
|
+
dsh plugin --profile desktop add "file:/absolute/path/dsh-handoff-baton"
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
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`.
|
|
37
|
+
|
|
38
|
+
## Pick up a handoff
|
|
39
|
+
|
|
40
|
+
In the new session, make this the first message:
|
|
41
|
+
|
|
42
|
+
```
|
|
43
|
+
⟦baton⟧ handoff/2026-11-29-0045-x.md
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
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.
|
|
47
|
+
|
|
48
|
+
Only the first non-empty line counts. Anything without the marker is ordinary chat, so the skill cannot misfire. ASCII fallbacks: `<<baton>>`, `[[baton]]`.
|
|
49
|
+
|
|
50
|
+
For another model, or a host without the skill installed, use the long form:
|
|
51
|
+
|
|
52
|
+
```
|
|
53
|
+
⟦baton⟧ 读 handoff/2026-11-29-0045-x.md(交接棒 v1 协议),从「下一步」第 1 条继续。
|
|
54
|
+
- 只按「关键文件」读真正需要的文件,别全量加载
|
|
55
|
+
- 动文件前先跟我确认
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Slash commands
|
|
59
|
+
|
|
60
|
+
| Command | Effect |
|
|
61
|
+
| --- | --- |
|
|
62
|
+
| `/baton` | Write a handoff. Asks for confirmation before anything is written. |
|
|
63
|
+
| `/baton <名称>` | Same, with a name: an optional short label (≤ 24 chars) shown first in lists. |
|
|
64
|
+
| `/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. |
|
|
65
|
+
| `/baton scan [dir]` | Find unregistered handoff documents (report only, writes nothing). |
|
|
66
|
+
| `/baton doctor` | Check the catalog, the index, every route, and the AGENTS.md rule block. |
|
|
67
|
+
| `/baton snippet` | Print the AGENTS.md rule block. |
|
|
68
|
+
| `/baton status` | Context usage plus an index summary. |
|
|
69
|
+
| `/baton list` | List existing handoffs. |
|
|
70
|
+
| `/baton help` | Usage. |
|
|
71
|
+
|
|
72
|
+
`/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.
|
|
73
|
+
|
|
74
|
+
## One index per machine
|
|
75
|
+
|
|
76
|
+
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.
|
|
77
|
+
|
|
78
|
+
Documents may live anywhere. The row records where:
|
|
79
|
+
|
|
80
|
+
```
|
|
81
|
+
- [Audio pipeline](projects/audio/20261129-0939-audio.md) — 进行中 · 2026-11-29T09:39 · audio · #转录
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
- The trailing `· #名称` 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.
|
|
85
|
+
- A bare filename means "next to the index"; a relative path is relative to the index directory; an absolute path points into a project. Moving a project keeps the document — only the row needs fixing, and a row whose file is gone is reported, never guessed around.
|
|
86
|
+
- States: 进行中 (open) → 已接手 (picked up) → 已关闭 (closed). "Live" means open or picked up, and ordering uses the update time, not the creation time.
|
|
87
|
+
- The receiving session flips a line to 已接手 after reading; the sender flips it to 已关闭 when the task ends. `baton touch <file> --status ...` does it in one command.
|
|
88
|
+
- `baton resolve` decides what a bare marker means: one live target (exit 0), several candidates (exit 2), none or a dead route (exit 1).
|
|
89
|
+
- `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.
|
|
90
|
+
- `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.
|
|
91
|
+
- `baton prune` only moves documents that live inside the catalog into `archive/`; documents in projects just lose their row. It reports by default and never deletes.
|
|
92
|
+
|
|
93
|
+
## Drift check
|
|
94
|
+
|
|
95
|
+
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.
|
|
96
|
+
|
|
97
|
+
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.
|
|
98
|
+
|
|
99
|
+
## CLI
|
|
100
|
+
|
|
101
|
+
```sh
|
|
102
|
+
node bin/baton.mjs init [--dir <location>] [--force] # first run: pick where the index lives
|
|
103
|
+
node bin/baton.mjs doctor [--json] # catalog / index / routes / AGENTS.md block
|
|
104
|
+
node bin/baton.mjs snippet # the AGENTS.md rule block to paste
|
|
105
|
+
node bin/baton.mjs check --tokens 300000 --window 800000
|
|
106
|
+
node bin/baton.mjs write --json payload.json [--dir <doc dir>] [--catalog <index dir>] [--dry-run] [--quiet]
|
|
107
|
+
node bin/baton.mjs new --title "标题"
|
|
108
|
+
node bin/baton.mjs adopt <file...> # register an existing baton:v1 document
|
|
109
|
+
node bin/baton.mjs scan [--roots a;b] [--adopt] # find unregistered documents
|
|
110
|
+
node bin/baton.mjs update 2026-11-29-0045-x.md --json payload.json
|
|
111
|
+
node bin/baton.mjs verify 2026-11-29-0045-x.md [--strict]
|
|
112
|
+
node bin/baton.mjs code 2026-11-29-0045-x.md [--long]
|
|
113
|
+
node bin/baton.mjs entry "⟦baton⟧ x.md"
|
|
114
|
+
node bin/baton.mjs archive x.md [--status 进行中]
|
|
115
|
+
node bin/baton.mjs list [--open]
|
|
116
|
+
node bin/baton.mjs status [--stale-days 7] [--closed-days 30] [--max-closed 20]
|
|
117
|
+
node bin/baton.mjs drift 2026-11-29-0045-x.md [--workspace <dir>] [--force]
|
|
118
|
+
node bin/baton.mjs resolve [--json]
|
|
119
|
+
node bin/baton.mjs touch <file|path> [--status 进行中|已接手|已关闭]
|
|
120
|
+
node bin/baton.mjs sync [--fix]
|
|
121
|
+
node bin/baton.mjs prune [--older-than 30] [--apply]
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
## Configuration
|
|
125
|
+
|
|
126
|
+
| Key | Default | Meaning |
|
|
127
|
+
| --- | --- | --- |
|
|
128
|
+
| `registerSkill` | `true` | Register the `baton-handoff` skill |
|
|
129
|
+
| `registerTools` | `true` | Register `baton_check` / `baton_handoff` |
|
|
130
|
+
| `registerCommand` | `true` | Register `/baton` |
|
|
131
|
+
| `catalogDir` | `''` | Index location; empty means auto-detect (`BATON_ROOT`, then `$DSH_HOME/baton`) |
|
|
132
|
+
| `docsDir` | `''` | Where documents are written; empty means next to the index |
|
|
133
|
+
| `defaultDir` | — | Deprecated alias for `docsDir` |
|
|
134
|
+
| `nudge` | `true` | Pressure reminders |
|
|
135
|
+
| `minTokens` | `0` | Stay quiet below this usage; reduces noise, never changes the thresholds |
|
|
136
|
+
| `warnRatio` | `0.6` | Halfway warning |
|
|
137
|
+
| `handoffRatio` | `0.8` | Handoff threshold |
|
|
138
|
+
| `staleDays` | `7` | Days without an update before an entry counts as stuck |
|
|
139
|
+
| `closedDays` | `30` | Days before a closed entry is eligible for archiving |
|
|
140
|
+
| `maxClosed` | `20` | Closed entries above this prompt a cleanup |
|
|
141
|
+
|
|
142
|
+
## How reminders work
|
|
143
|
+
|
|
144
|
+
The plugin subscribes to two host events: `session/event` for token usage and the context window, and `agent/pre-step` to decide once per turn.
|
|
145
|
+
|
|
146
|
+
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.
|
|
147
|
+
|
|
148
|
+
## Portability
|
|
149
|
+
|
|
150
|
+
- Whole package: `skills/` + `bin/` + `lib/`. Copy it anywhere Node >= 20 exists.
|
|
151
|
+
- Skill only: copy `skills/baton/` and write documents by hand; the CLI is optional.
|
|
152
|
+
- Claude Code: place it at `~/.claude/skills/baton-handoff/` — the directory name must match the frontmatter `name`.
|
|
153
|
+
- Codex / Cursor / others: merge `SKILL.md` into `AGENTS.md` or `.cursor/rules`, and keep `references/PROTOCOL.md` beside it.
|
|
154
|
+
|
|
155
|
+
## Limits
|
|
156
|
+
|
|
157
|
+
- Triggering still depends on the model or on you typing the command.
|
|
158
|
+
- Without host usage data, reminders switch off entirely.
|
|
159
|
+
- A timestamp cannot tell "actively worked" from "abandoned", so stuck-entry wording is a question, not a verdict.
|
|
160
|
+
- The index is not a backup of the conversation; export the original session separately if you need it.
|
|
161
|
+
- Verified mainly on Windows with DSH; cross-model was verified at the document level, not as a live trigger in another client.
|
|
162
|
+
|
|
163
|
+
## License
|
|
164
|
+
|
|
165
|
+
MIT
|