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 和评分是快照中的导航信号。

安装与排错 · 项目问题反馈

同类项目