Introduction¶
DeepSeek Harness (DSH) already provides session renaming capabilities on the Host side (the ctx.sessionTitle service, session/rename Remote), but there was originally no corresponding rename tool in the model’s tool catalog. Consequently, session titles often had to be changed manually by users in the sidebar. If you want the agent to actively update the title to a team-agreed format during task progression—and “pin” it to prevent being overwritten by auto-generated titles—you need an additional tool layer. The following introduces the community plugin dsh-session-title (maintainer ly6170). It exposes set_session_title to the model, with rules defined by you in Web settings or profile configuration.
What is this¶
dsh-session-title is a DeepSeek Harness plugin: it gives the model a tool to set the session title according to rules you define. Naming rules are not hardcoded; you can configure validation items such as regex and byte limits in Settings → Session Title. Upon passing validation, it calls the host rename and pins the title, preventing subsequent automatic overwriting for that session. The plugin does not read or write session files, does not touch the workspace, and does not perform archiving or deletion.
In the catalog, it is classified under “Model Reasoning” in the SkillHub Directory. Source code and documentation are available at GitHub: ly6170/dsh-session-title (current package version 0.1.0, License MIT). SkillHub has no official affiliation with DeepSeek/Hinggai and belongs to the community plugin ecosystem.
Core Features¶
| Item | Description |
|---|---|
| Tool Name | set_session_title, parameter title (full title string) |
| Effective Method | Calls ctx.sessionTitle.rename(agent.session, title); writes and pins upon passing validation |
| Rule Source | Settings page or profile config:; both use the same configuration, changes take effect without restart |
| Default Status | Disabled (enabled defaults to false); the model cannot see this tool when not enabled |
Non-compliant titles will return a clear reason as a tool error, allowing the model to rewrite and retry. After rule changes, the tool description automatically includes the currently effective regex and byte limit, reducing format guessing by the model.
The out-of-the-box default regex example is MMDD | Version or tag | Description (corresponding to pattern ^(\d{4}) \| ([^\|]+) \| ([^\|]+)$), which can be replaced according to repository or team conventions.
Installation & Activation¶
The official installation command is as follows (web profile):
dsh plugin --profile web add dsh-session-title
Changes to the bundle set are not hot-reloaded; a restart of the dsh process is required after installation. Then:
- Open the Web interface Settings → Session Title;
- Modify the “Title Regex” as needed (if you are unsure how to write it, refer to the LLM prompt template in the README);
- Check “Enable” and Save.
If you wish to skip step 3 and use it immediately upon installation, you can preset enabled: true in the profile’s cordis.patch.yml (see configuration example below).
If dsh is not in PATH or you are using DSH Desktop / source checkout, you can manually edit ~/.dsh/profiles/web/package.json, add dsh-session-title to bundles, declare "dsh-session-title": "^0.1.0" in dependencies, and run pnpm install or npm install in the profile directory before restarting. The client-side artifact lib/client.js is included in the package; no local build is required.
Uninstallation:
dsh plugin --profile web remove dsh-session-title
Or remove it from the profile’s dependencies and dsh.profile.bundles and reinstall dependencies; pinned titles remain unaffected.
Configuration Rules¶
Main configuration items (consistent between the settings page and config:; switching enabled during runtime takes effect immediately):
| Config Item | Type | Default | Description |
|---|---|---|---|
enabled |
boolean | false |
Tool is visible to the model only when enabled |
pattern |
string | See README default three-segment format | JS regex, without delimiters |
patternMode |
match / search / none |
match |
Full string match / contains / disable regex validation |
patternHint |
string | "" |
Hint provided to the model when the regex does not match |
maxTitleBytes |
number | 80 |
UTF-8 byte limit for the entire title (pre-validation) |
forbidTrailingPunctuation |
boolean | true |
Forbid trailing punctuation |
forbidControlCharacters |
boolean | true |
Forbid control characters |
normalizeSeparatorSpacing |
boolean | true |
Normalize whitespace around \| to single spaces |
caseInsensitive |
boolean | false |
Whether the regex ignores case |
Example of presetting via config file (edit the profile’s cordis.patch.yml):
- insert:
- id: session-title-tool
name: dsh-session-title
config:
enabled: true
pattern: '^\[(BUG|FEAT)\] .+$'
maxTitleBytes: 60
If only retaining byte and punctuation rules without format validation:
config:
enabled: true
patternMode: none
maxTitleBytes: 120
Note on maxTitleBytes: The host session-title service has a hard limit, and rename() will truncate according to that value. This plugin’s maxTitleBytes serves as a pre-validation and should be less than or equal to the host’s configured value. In the base combination, the host default is 80, and the plugin default is also 80.
Typical Usage¶
- Install and restart
dsh, enable and save rules in Settings → Session Title. - In the conversation, have the model call
set_session_titleat an appropriate moment, passing a complete title, e.g., conforming to the default three-segment format:0924 | v0.1.0 | Fix login redirect. - If the title does not conform to the rules, the tool returns an error reason; the model adjusts the title and retries until it passes.
The settings page provides a collapsible “Example Prompt: Let LLM write a regex for you” section. Copy it, fill in your naming requirements, and paste the one-line regex returned by the LLM (no / delimiters, no flags, no code blocks) into “Title Regex”.
Use Cases & Notes¶
Suitable for: Teams that need session titles aligned with conventions such as issue numbers, version tags, or date segments; those who want the model to automatically rename and pin titles at summary or milestone nodes to avoid manual sidebar maintenance.
Runtime & Permissions: The plugin runs with the permissions of the current dsh process. Before installation, you should read the Source Repository and the MIT License to assess whether to include it in your profile.
Dependencies: Node.js >= 20; Host-side dependency @deepseek-ai/schemastery; Web settings panel depends on client modules injected by the platform such as @deepseek-ai/dsh-client-ui-settings.
Summary¶
dsh-session-title fills the gap in the model-side session rename tool. Rules are configurable, it is disabled by default, and changes take effect immediately upon enabling. Directory page: SkillHub — ly6170/dsh-session-title; Source code and full documentation: GitHub — ly6170/dsh-session-title.