cq-guojia/dsh-session-title-pattern ↗★ 2
dsh-session-title-pattern
自动将会话标题整理为日期|类型|主题格式 适合需要自动规范化、结构化管理 DSH 历史会话标题的用户。
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:cq-guojia/dsh-session-title-pattern说明文档
阅读完整 README ↗Configuration
Settings UI (recommended)

Since dsh 0.1.7 the settings live on the plugin's own page: open the Plugins view in the sidebar, find this plugin under Installed, and open its detail page — the configuration form sits between the description and the entry rows.
| Item | Meaning |
|---|---|
| Recompute every N messages | Default 10. 0 = compute once when the session is created |
| Model for title summaries (provider / model) | Two dropdowns on one row: pick a provider on the left (first item "follow the chat model" = empty follows the session's main model), then a model on the right — selecting a provider auto-picks its first model. Options come from providers you have configured; falls back to two text fields when the directory is unavailable |
| Timeout | Raise it when the model is slow (e.g. a free tier queueing) |
| Title format / Title length limit | What the three parts look like, and how long the title may get |
Edits are staged and written only when you press "Save"; each field marks whether it was customized and can be reset on its own; leaving the form discards unsaved edits.
The UI copy is bilingual and follows dsh's interface language (Settings → General → Language).
cordis.patch.yml in the profile
For scripted or bulk deployments:
- id: session-title-pattern
config:
retitleEvery: 10
template: '{MMDD}|{type}|{topic}'
maxBytes: 80
| Key | Type | Default | Meaning |
|---|---|---|---|
retitleEvery | number | 10 | How many human messages between title recomputes; minimum 0; 0 = compute once when the session is created |
provider | string | empty | Model provider; must be paired with model; empty follows the session's main model |
model | string | empty | Model id; must be paired with provider |
timeoutMs | number | 90000 | Timeout for one model call (ms) |
maxOutputTokens | number | 2048 | Output token fuse; reasoning counts against it too. Not shown in the UI; reach for it here when needed |
maxInputBytes | number | 4096 | Input byte cap for one call |
template | string | {MMDD}|{type}|{topic} | Title format template |
maxBytes | number | 80 | Total title length cap (UTF-8 bytes), minimum 20 |
The
|in the default template is a full-width vertical bar (U+FF5C). A placeholder the plugin does not recognize stays in the title verbatim (e.g.{date}), so a typo in the template is obvious at a glance.⚠️
maxBytesmust be ≤maxTitleBytesof thesession-titlerow (dsh-baseuses 80 by default); anything beyond is silently truncated.Precedence is
schema default → composition layer (this section) → user layer (settings UI): for a field you changed in the UI, editingcordis.patch.ymlhas no effect until you "Reset" it in the UI first.