dsh-session-title-all-prompts-llm/packages/session/session-title-all-prompts-llm官方
为 dsh 提供会话标题 LLM 提供商,在每次新人类提示后通过 ctx.llm 总结所有符合条件的消息,使用种子历史和子会话提示生成标题,适合需要自动为长会话生成描述性标题的开发者
- 语言
- TypeScript
- License
- MIT
- 分支
- master
安装
$ dsh plugin --profile web add npm:@deepseek-ai/dsh-session-title-all-prompts-llm在终端中运行以上命令,通过 dsh CLI 安装此插件。可在右上角切换 Profile。 第一次用 dsh?看这篇新手教程
English | 中文
Optional ctx.sessionTitle provider that summarizes every eligible human message through ctx.llm. It registers the all-prompts cadence and starts a new revision after each new human prompt, using seeded history as well as child-session prompts. A newer revision aborts and supersedes older work; even a provider that ignores cancellation cannot commit stale output.
The plugin uses the complete required shared LLM configuration. Omit both provider and model to inherit the exact route from each current logged main request, or set both to route title generation independently. If the final framed aggregate prompt exceeds maxInputBytes, the request fails instead of truncating history; automatic use warns and keeps the prior title.
Model Experience
All-messages title request
What the model sees
The title model receives the shared title instruction and a JSON array of all eligible human messages through the current revision, in log order with exact seqs. Seeded history is included.
Token effect
One auxiliary request may follow every new eligible prompt, bounded per request by maxInputBytes and maxOutputTokens; explicit refreshes may add calls. The main agent request gains zero tokens.
KV Cache effect
No main-request invalidation. Auxiliary input grows or changes after each prompt, so provider-specific cache reuse ends at the first changed JSON token.
Known Limitations and Deferred Work
- Input overflow retains the prior title; this provider has no summarization-of-summaries or retention policy for very long sessions.
- It treats all eligible human messages equally and offers no weighting, filtering, or manual-title precedence.