dsh-cc/dsh-cc--packages-compat-session-title-provider ↗★ 1
@dsh-cc/session-title-provider
CC 宿主层会话标题提供器,基于 haiku 廉价通道生成首条提示标题。 适合使用 CC 模型别名、需自动生成会话标题的用户。
安裝
此插件尚未提供可驗證的 bundle,或相容性檢查未通過。請先閱讀倉庫說明。 閱讀完整 README ↗
說明文件
閱讀完整 README ↗@dsh-cc/session-title-provider
English | 中文
CC host-plane first-prompt session-title provider: mirrors the stock session-title-first-prompt-llm plugin, but stamps the auxiliary model route from the CC model-alias cheap lane — resolve('haiku') — before the shared generateSessionTitleWithLlm call.
Route resolution
Order of precedence for the auxiliary title request:
- Explicit
provider+modelconfig pair on this plugin's YAML row (both fields together) wins outright. - The configured
haikualias — resolved viaccModelRouteswhen the service is mounted, otherwise read live from themodel-aliasessettings overlay (the read never re-registers that namespace;settings.registerthrows on duplicates). A string-form alias (haiku: deepseek-v4-flash, model only) inherits the missing provider from the logged main-request route. - Inherit — with neither, the request's logged main-request route is used (the shared library's behavior).
An unconfigured builtin alias also inherits, so mounting this plugin with no haiku configured is behaviorally identical to the stock plugin.
Composition
cc-shell mounts this host-plane row by disabling the stock session-title-llm plugin and inserting this one into its bundle patch (cordis.patch.yml, row session-title-llm-cc) with the default framing policy (targetWords: 5, targetCjkCharacters: 10, maxInputBytes: 4096, maxOutputTokens: 64, timeoutMs: 60000).
The plugin injects sessionTitle, llm, and sessions; it registers one provider with automatic: 'first-prompt', so titles generate from the first human prompt of a session. Generated titles are accepted, logged, and folded by the host session-title service — this package owns only route stamping and message selection (the first human message).
Known Limitations and Deferred Work
- First prompt only — unlike CC, later prompts do not re-title the session (
all-promptscadence is not enabled). - No
/renamehere — user rename goes through thecommand-renamecommand plugin; the title service pins user titles itself.