nuwa-skill
alchaincyf
你想蒸馏的下一个员工,何必是同事。蒸馏任何人的思维方式——心智模型、决策启发式、表达DNA。Distill how anyone thinks.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:SonettoGu14/dsh-session-smart-rename
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Name DeepSeek Harness sessions as category · topic — from the sidebar workbench, or from the agent itself.
English · 简体中文
Most session renamers ask a model for a title and hand it back. That works until the title is wrong in a way you cannot fix — no category, the wrong angle, or a phrase you would never file under.
This plugin separates the two jobs. The model proposes; you decide. A dialog opens with your category chips, a topic field, and a live preview of the finished title, with three model suggestions underneath as click-to-fill rows. The same analyzer is also exposed to agents as a tool, so a session can rename itself when the work changes direction.

Category chips on top, the topic field and a live category · topic preview in the middle, three click-to-fill suggestions at the bottom — Another batch asks again without repeating.
category · topic preview. Enter saves, Esc closes.smart_rename_session lets the model pin a title, or let the plugin name the session from the conversation.source: user title, so automatic naming never overwrites your decision.dsh plugin --profile <your-profile> add dsh-session-smart-rename
Also installable from the plugin manager in DSH Settings, or straight from GitHub:
dsh plugin --profile <your-profile> add github:SonettoGu14/dsh-session-smart-rename
Restart DSH once after installing — the client bundle is loaded at boot.
Sidebar session row → … → Smart rename.
| Area | What it does |
|---|---|
| Category chips | One click to classify; click again to clear. + New tag adds a chip and remembers it in this browser. |
| Topic field | The subject of the session — "what was this session really about?" |
| Preview | Shows the exact title that will be pinned: category · topic. |
| AI suggestions | Three titles with reasons. Click one to fill the two fields above. Another batch asks for three different ones, telling the model which titles it already offered. |
Enter saves, Esc closes. The menu entry itself never opens a dialog until the analysis finishes, so you always see suggestions before committing.
Titles are fitted to a 26-cell width budget (a CJK character counts as two), so a long English topic is cut on a word boundary instead of spilling out of the sidebar.
smart_rename_session
| Parameter | Required | Description |
|---|---|---|
title |
no | Exact title to pin. Omit it and the plugin reads the conversation and names the session itself. |
session_id |
no | Target session. Defaults to the session the tool is running in (which must be loaded). |
Returns { session_id, title, seq, source }, where source is model (the caller supplied a title) or analyzed (the plugin named the session).
smart_rename_session({}) // let the plugin name the session
smart_rename_session({ title: 'PRD-042 · 推荐信导出' }) // pin an exact title, no model call
To let an agent keep the title current on its own, add a line like this to your AGENTS.md:
- When the work clearly moves to a new subject and the current title no longer fits,
call `smart_rename_session` without `title` so the plugin renames the session.
Not happy with the result? Rename it again from the sidebar — both paths write a source: user title, and the later write wins.
sidebar.workspaces.session.menu.item (the menu row) and shell.overlay (the workbench).request/header event, and ask for strict JSON {"candidates":[{category, title, reason} × 3]}. The tool path uses the first candidate.POST /api/dsh-session-smart-rename/suggest serves the dialog; the agent uses the tool.~/.dsh/sessions/**/<id>/session.v4.jsonl.zstd), decompressed with zstd -dc because the log is several concatenated frames.sessionTitle.rename (the dialog via POST /api/session/rename), so the title is pinned exactly like the built-in rename.Local rules.… in the preview — that is what the sidebar can actually show. Suggestion rows keep the model's full wording, so you still see the idea before it gets shortened.| Requirement | Value |
|---|---|
| DSH | >=0.2.2-0 <0.3.0-0 (declared in engines.dsh, tested on 0.2.2-rc.3) |
| Node | >=22.19.0 |
| Profile | Any profile that ships the session sidebar and dsh.bundle manifest support |
DSH enforces engines.dsh at install time, so a version outside the range is refused with a clear message instead of failing at runtime.
All optional; the defaults work without touching a config file.
- id: session-smart-rename
name: dsh-session-smart-rename
config:
provider: deepseek-official # fallback route when the session has no request/header yet
model: deepseek-flash
categories: ["Docs", "DSH", "Infra"] # what the tool path offers the model
zh for Chinese, English otherwise.Docs / 文档, …), and custom tags are stored per browser.| Plugin | Tool name | Shape |
|---|---|---|
| dsh-session-smart-rename (this) | smart_rename_session |
Workbench (chips + topic + three suggestions) and agent tool, titles pinned as category · topic |
9Ashwin/dsh-session-rename |
rename_session |
Model-side rename only |
dsh-ai-session-rename |
session_rename_ai |
Right-click rename, one model-generated title |
dsh-auto-rename |
— | Auto-rename on every message with three streaming candidates |
dsh-session-rename (qinu321) |
session_rename |
Minimal tool, title required |
Tool names do not collide, so this plugin can be installed alongside the others.
session_id must point at a loaded session; the current session always works.title costs none).categories.origin: subagent) are refused by the host.CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: session。