READMESource: main@f3e369ec
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.
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 Titlebutton 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
- Host Event Hook: Listens to
session/eventforturn/endwhereturn === 1andreason.kind === 'completed'. If the session does not yet have a custom title, it invokesctx.llm.streamand updates the title viactx.sessionTitle.rename. - HTTP Endpoint: Registers
POST /api/session-title/updateonctx.webServer. Receives{ sessionId, title, locale }to either rename manually or trigger an AI title update. - Client UI Slot: Injects a button into
conversation.session.header.actionsusingctx.slots.inject, with localized text managed viactx.locale.
Testing
Run the included test suite with Node.js built-in test runner:
node --test test/index.test.js
License
MIT © Maxwell Dalboni
No comments yet. Be the first to write one.