BPTumbleweed/dsh-session-retitle ↗★ 0

dsh-session-retitle

DSH 插件:在会话头部加一个「重命名」按钮,手动触发时读取本会话内容、用当前模型生成中文短标题并写回会话名(session/title)。零运行时依赖、能力逐个探测、失败只影响按钮。 适合需要快速整理会话列表,将冗长会话一键生成精简中文标题的用户。

Package
dsh-session-retitle
Compatibility
Unverified
Version
0.1.0
License
MIT
Last updated
Sep 16, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:BPTumbleweed/dsh-session-retitle

配置(profile 的 cordis.patch.yml 覆盖)

键默认说明
routePrefix/dsh-session-retitle路由前缀,与客户端常量 window.__DSH_SESSION_RETITLE_PREFIX__ 对应
maxTitleBytes80标题字节预算(与官方 session-title.maxTitleBytes 对齐)
maxDigestBytes8000送给模型的会话素材上限,超了从头丢(保留最近的对话)
maxDigestItems16最多取多少条消息(人类消息 + 助手回复)
timeoutMs45000标题模型调用超时
maxOutputTokens512标题模型的最大输出 token(请求带 purpose=session-title,deepseek 适配器会据此关思考)
provider / modeldeepseek-official / deepseek-flash兜底路由:会话读不到 request/header 时才用

路由选择顺序:会话自己的 request/header → 官方 agent-default-model 当前选择 → 插件配置兜底;三者都拿不到就明确报错,不编造标题。