DeepSHPlugins
dsh-brief-session-title 專案預覽
GITHUB / COMMUNITY PROJECT

dsh-brief-session-title

會話與訊息JavaScriptMIT

把 DSH 會話標題從一句話精簡為不含動詞的短語,目標五個詞以內。

2 StarsRelethe 更新時間 2026-08-18
訪問 GitHub 倉庫
dsh-brief-session-title 專案預覽

專案介紹

中文

把 DSH 會話標題從一句話精簡為不含動詞的短語,目標五個詞以內。

English

Condenses DSH session titles from a full sentence into a short verb-free phrase, aiming for under five words.

專案資訊與收錄訊號

快照 2026-09-11
作者 / 組織
Relethe
倉庫
Relethe/dsh-brief-session-title
GitHub Stars
2
Forks
0
開發語言
JavaScript
許可證
MIT
最近推送
2026-08-18
Manifest
資料中檢測到宣告

公開倉庫不自動等於可商用;許可證與當前相容性以原專案文件為準。Manifest 和資料評分不構成安裝安全認證。

資料評分

56/ 100
維護活躍
84
文件與實用資訊
100
生態關注度
14
安裝便捷訊號
75
專案宣告訊號
100

README 含完整安裝與使用說明;關注度尚低(2)。

評分來自已有資料快照的五維模型,僅作瀏覽參考,不是實際使用評測或安全檢測結論。

安裝與使用

所有專案資料與許可均以對應 GitHub 倉庫為準。

dsh plugin --profile web add github:Relethe/dsh-brief-session-title

複製命令不會自動執行。請先閱讀倉庫文件,確認環境要求與許可證。

專案截圖

倉庫 README

GitHub 原文

已儲存的倉庫文件快照;文件抓取時間未記錄,可能與上方目錄介紹處於不同版本。安裝前請核對當前倉庫說明。

儲存庫檔案保留原文,指令與授權文字不作自動改寫。

dsh-brief-session-title

English | 中文

A DeepSeek Harness (DSH) session-title plugin that condenses a full sentence into a single word for easier recall.

Why this plugin

DSH generates session titles with the official session-title-first-prompt-llm plugin, which often outputs a complete sentence — a verbatim echo like "Explain what JavaScript closures are" ends up in the sidebar, long and hard to scan.

The root cause is the official prompt: its only length constraint is "Aim for about 5 words" — "aim for" is a soft target that models routinely overshoot, and it asks for "concise" without showing what concise means. The goal is not specific enough, and that is what makes titles wordy.

This plugin keeps all official logic untouched and changes exactly one thing: the system prompt — explicit rules plus correct/incorrect examples that turn "concise" into an executable standard.

Examples

Session content (original)This plugin's title
解释一下JavaScript闭包到底是什么JS闭包浅说
用英语表达中国近代半文言文文法半文言文法表达
中式微恐2.5D沙盒生存游戏系统PRD游戏PRD
Fixing Memory Leak in NodeNode memory leak
Database Schema Design ReviewSchema review

Core idea: prompt optimization

The new prompt gives the model four hard rules:

  1. PLAIN ENGLISH for English output — plain and direct;
  2. literary-vernacular hybrid for Chinese output — a compact classical-modern blend (e.g. "浅说", "文法表达");
  3. Avoid verbs in the output — verbs are the skeleton of a sentence; remove them and the sentence collapses into a phrase;
  4. Shrink to under 5 words, like a professional poet — shorter is better.

Six correct/incorrect example pairs anchor the target style, so the model imitates the pattern instead of guessing what "concise" means.

Features

  • Zero intrusion: identical to the official first-prompt-llm logic (first human message, streaming generation, fallback on failure) — only the prompt changes;
  • Auto take-over: mutually exclusive with the official plugin; on load it shuts the official provider down and registers itself, so exactly one title generator stays active;
  • Fail-safe: on model error, timeout, or empty output, it falls back to the official deterministic fallback title;
  • Configurable: input byte cap, output token cap, and timeout are all tunable.

Installation

This plugin is a dsh bundle — install it directly from GitHub, no manual config editing:

dsh plugin --profile web add github:Relethe/dsh-brief-session-title

If the package is published to npm, the same command works with the package name:

dsh plugin --profile web add dsh-brief-session-title

For a local checkout (relative paths resolve against your invoking directory):

dsh plugin --profile web add ./dsh-brief-session-title

dsh plugin forwards its arguments to pnpm and then reconciles: because this package declares dsh.bundle, it joins the profile's bundle layer automatically, and the bundle's own cordis.patch.yml applies (disable the official title plugin + mount this one).

Restart DSH — new session titles take effect from then on.

Configuration

KeyDefaultMeaning
maxInputBytes4096UTF-8 byte cap for the framed JSON input; oversized input fails instead of truncating
maxOutputTokens64Output-token cap for the title request
timeoutMs60000Per-request timeout in milliseconds
provider / modelomittedSupply both to use a dedicated route; omit to reuse the session's main-request route

Notes

  • New titles only: existing sessions keep their stored titles;
  • Manual renames pin: a user-renamed title is never overwritten by automatic generation (official DSH behavior);
  • To revert: dsh plugin --profile web remove dsh-brief-session-title — the official title plugin resumes automatically.

License

MIT

使用前核對

安裝步驟、相容版本與授權範圍以原專案當前文件為準。Stars 和評分是快照中的導航訊號。

安裝與排錯 · 專案問題反饋

同類專案