メインコンテンツへスキップ
S

dsh-session-retitle

sirius2alpha/dsh-session-retitle

One-click session title regeneration for the current session: a labelled button beside the title, a row in the session header menu, the /retitle command, and a retitle_session agent tool, all calling the composed session-title service's explicit refresh.

インストール

dsh plugin --profile web add github:sirius2alpha/dsh-session-retitle

README

Session retitle

Adds a one-click regenerate control beside the Session title in the DeepSeek Harness Web GUI, a labelled row in the Session header's "..." menu, the /retitle human command, and the retitle_session agent tool. Every surface calls the composed Session-title service's explicit refresh, so the title is regenerated from the Session's own human messages and folded into the Session log like any other title revision.

Install

dsh plugin add dsh-session-retitle

Or install it from the GUI: Plugins → Add plugin, and enter dsh-session-retitle. The bundle is enabled for the current profile on install. Requires DSH >=0.2.2-rc.3 <0.3.0.

Use

  • Header button: open a Session and click the labelled button beside its title — a title-block glyph plus the word "Retitle" (中文 "重新生成标题"), which collapses to the glyph alone when the header is narrow. The glyph pulses while the provider runs, becomes a check mark on success, or turns red on failure; the tooltip and a screen reader status carry the outcome.
  • Header menu: open the Session header's "..." menu and choose "Regenerate session title" — the text-labelled entry for the same action.
  • Command: type /retitle in the composer and submit it.
  • Agent tool: ask the agent to give the conversation a current title; the retitle_session tool acts on the Session that called it.

Behaviour

  • The Host asks the registered title provider for a fresh title. Without a provider, the deterministic fallback title is re-derived instead.
  • The accepted title is appended as a session/title event, so it survives reload, fork, and replay; the header, sidebar rows, and list projections update from that projection.
  • A Session that was renamed manually keeps its pinned title until this action runs; running it deliberately unpins the title and lets generation resume.
  • A dispatch is a slash-command execution, so each click also leaves one /retitle record (with its outcome text) in the conversation.

Limits

  • Each use costs one additional auxiliary model request when an LLM title provider is mounted (targetWords and related provider configuration still apply).
  • Nothing can be titled before the Session has a human text message; both surfaces report that instead of inventing a title.
  • The Web bundle's Client half is loaded at page boot, so a freshly installed or updated bundle needs one page refresh before the controls appear.

Development

This repository is itself the bundle package: index.js is the Host half, client.js is the browser half, and cordis.patch.yml inserts the one Host row. Link the checkout into a profile to iterate without publishing:

dsh plugin add /absolute/path/to/dsh-session-retitle

License

MIT — see LICENSE.

関連プラグイン