session-titler
在终端中运行以下命令:
dsh plugin install JohnXu22786/session-titler
将以下提示词粘贴到 DeepSeek Harness 对话框中:
在终端执行 dsh plugin install JohnXu22786/session-titler 即可将插件(源码 https://github.com/JohnXu22786/session-titler)安装到当前 DeepSeek Harness 配置,重启后生效。
插件介绍
Harness sessions are identified by timestamps by default, so a growing list quickly becomes a wall of numbers that is hard to scan at a glance. Existing auto-naming solutions either wait until the session goes idle before calling a model—leaving the list blank while the user waits—or fire a model call on every user message, which multiplies cost unnecessarily. session-titler splits the two ideas into complementary phases so you get a title immediately without paying for it upfront.
Phase 1 fires the instant a user message lands: keywords are extracted from the latest message (code blocks, URLs, and Markdown are stripped; stopwords are filtered) and a readable title appears with near-zero latency and no model call whatsoever. Phase 2 runs in the quiet window after the session goes idle, routing a single refinement call to the cheapest capable model in the registered directory (flash, haiku, mini, etc.). That one call upgrades the keyword string into a natural phrase and produces a one-line session summary in the same request, emitted as a session/caption-note event for list UIs and export tools. Titles follow the message language across Chinese, English, Japanese, and Korean; Latin titles are capped by word count, CJK titles by character count. Duplicate titles are deduplicated, cross-session repeats receive a numbered suffix, and any manual rename permanently halts automatic generation for that session.
If you regularly open many sessions in Harness, keep a long history list, or care about the marginal cost of every inference call, session-titler works out of the box with zero configuration after install and restart. Every behavioral knob—from model selection priority to phase toggles—remains tunable for teams that want a custom policy.
使用场景
- 长时间使用 dsh 后列表全是时间戳编号,难以快速定位目标会话
- 希望标题即时出现但又不想每条消息都调用模型产生额外费用
- 管理大量会话记录时需要一行摘要辅助快速回忆上下文
适合人员
- dsh 重度用户,日常维护大量会话记录
- 关注推理成本、追求每一分 token 花得值的工程师
- 需要会话列表导出或列表 UI 展示可读标题的开发者