apherchin/dsh-rename-title-after-first-turn ↗★ 0
dsh-rename-title-after-first-turn
DSH host-only plugin: name a main session once, right after its first turn ends. Subagent and teammate sessions are left alone. 适合希望自动整理会话列表、根据首轮内容生成合适标题的整理控用户。
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:apherchin/dsh-rename-title-after-first-turnドキュメント
README 全文を読む ↗配置(profile 那条 insert 的 config,全部可选)
| 键 | 默认 | 允许范围 | 含义 |
|---|---|---|---|
targetCjkCharacters | 12 | 1–60 | 中文目标字数 |
targetWords | 6 | 1–30 | 非中文目标词数 |
maxInputBytes | 8192 | 256–1000000 | 素材字节上限(分数向下取整) |
maxOutputTokens | 2048 | 32–32000 | 输出上限。别照抄官方的 64:本机路由关不掉思考,64 会被 reasoning 吃光(已实测:64 → status: incomplete、一个标题字都没有;1024 → 正常返回标题) |
timeoutMs | 60000 | 1000–900000 | 端到端超时;是硬边界(Promise.race),适配器不看 signal 也会返回 |
maxAttempts | 3 | 1–10 | 每个会话最多尝试次数(1 = 只试第一轮)。含「无路由」那种没打到模型的尝试 |
maxTitleBytes | 80 | 8–512 | 落库标题的 UTF-8 字节上限 |
非法/越界值一律回退缺省,不抛错。