返回目录
模型与 MCP 插件

dsh-turn-title

mdalboni/dsh-turn-title

Auto-title DeepSeek Harness conversations after the first exchange (user + assistant) with a chat header update button.

Stars
0
Forks
0
Issues
0
更新
24 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:mdalboni/dsh-turn-title

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

dsh-turn-title

English | Português (Brasil) | 中文

A DeepSeek Harness (DSH) plugin that automatically generates conversation titles after the first full exchange (user prompt + assistant response) and adds an Update Title button directly in the chat header.

Icon


Features

  • Turn-1 Auto-Titling: Replaces the stock prompt-only titler. It waits for the assistant's first response to complete, giving the model full context to produce accurate, descriptive titles.
  • Chat Header Button: Adds a ✎ Update Title button to the conversation header (conversation.session.header.actions).
    • Single Click: Re-evaluates conversation context and generates a fresh title with AI.
    • Shift + Click (or Alt + Click): Opens a prompt dialog to enter a manual title.
  • Multilingual & DSH Locale Aware: Automatically aligns UI labels and prompt instructions with the active DSH interface language (English, Portuguese, Chinese, etc.).
  • Theme-Native: Uses DSH --dsw-alias-* CSS variables, matching dark and light mode themes seamlessly.
  • Lightweight: Pure ESM, zero external runtime dependencies.

Installation

Via DSH Plugin Market (dshmarket)

Search for dsh-turn-title in the DSH Plugin Marketplace and click Install.

Via DSH CLI

dsh plugin --profile web add dsh-turn-title

From Local Source

git clone https://github.com/mdalboni/dsh-turn-title.git
dsh plugin --profile web add link:./dsh-turn-title

How It Works

  1. Host Event Hook: Listens to session/event for turn/end where turn === 1 and reason.kind === 'completed'. If the session does not yet have a custom title, it invokes ctx.llm.stream and updates the title via ctx.sessionTitle.rename.
  2. HTTP Endpoint: Registers POST /api/session-title/update on ctx.webServer. Receives { sessionId, title, locale } to either rename manually or trigger an AI title update.
  3. Client UI Slot: Injects a button into conversation.session.header.actions using ctx.slots.inject, with localized text managed via ctx.locale.

Testing

Run the included test suite with Node.js built-in test runner:

node --test test/index.test.js

License

MIT © Maxwell Dalboni

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类模型与 MCP
规则置信度中

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。