baosfeng/my-dsh-plugins--plugins-dsh-session-title-gen ↗★ 5
dsh-session-title-gen
DSH 会话标题自动生成插件:监听会话首条人类消息,用 LLM 生成类似 git commit 的结构化标题(先标明归属工作区,再写简要描述),经核心 session/title 事件写入(重启保留),失败自动回退核心标题机制。DSH web plugin: structured session titles like git commit messages (workspace first, then description), written through the core session/title event.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:baosfeng/my-dsh-plugins#cc837f22ecaa841de7d263346073dc44c55d50ee&path:plugins/dsh-session-title-gen说明文档
阅读完整 README ↗3. 可配置
| 配置项 | 默认值 | 说明 |
|---|---|---|
enabled | true | 总开关(false 完全关闭,不监听任何事件) |
template | [{workspace}] {description} | 格式模板({workspace} / {description} 占位) |
provider | (缺省) | LLM provider 覆盖(缺省用会话请求路由) |
model | (缺省) | LLM model 覆盖(缺省用会话请求路由) |
maxTitleBytes | 80 | 标题 UTF-8 字节上限(与核心一致) |
maxInputBytes | 4096 | 送入 LLM 的消息 JSON 字节上限 |
maxOutputTokens | 64 | LLM 输出 token 上限 |
timeoutMs | 30000 | LLM 调用超时(超时静默回退) |
配置示例