nuwa-skill
alchaincyf
你想蒸馏的下一个员工,何必是同事。蒸馏任何人的思维方式——心智模型、决策启发式、表达DNA。Distill how anyone thinks.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:ysthink/dsh-session-manager
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A DeepSeek Harness plugin that puts session history under control: browse stored sessions per workspace, search them, move them to a recycle bin or delete them permanently, clear a whole workspace, and remove a workspace from the sidebar in one step.
English | 中文




Clone this repository:
git clone https://github.com/ysthink/dsh-session-manager.git
In the Harness, open Settings → Plugins and install the cloned directory as a local bundle.
The bundle's cordis.patch.yml inserts the session-manager plugin row; no configuration is required.
When driving Harness through an agent, ask it to install the bundle from the checkout directory instead.
Refresh the page once, then open Settings → Session manager.
The plugin activates with the Web GUI: it needs webServer, sessionQuery, sessionPersistence, workspaceRegistry, and agents, which the desktop profile provides. configEditor is used for the retention dropdown.
The bundle has two halves:
| File | Role |
|---|---|
index.js |
Host plugin. Registers an exact HTTP route, lists sessions through sessionQuery, resolves each log directory through sessionPersistence, and performs moves and deletions with path checks. |
client.js |
Browser plugin. Registers a settings.section page and its icon, then renders the UI with React from the host module table. |
cordis.patch.yml |
Inserts the plugin row and the default config. |
locale/*.json |
Plugin Manager title and description. |
icon.svg |
Plugin artwork. |
Deletion pipeline. A session's log directory is located through sessionPersistence.stat(), validated (expected log file name, at least one log file present, directory inside the log store), detached from the owning workspace and unarchived, and only then removed. Move to recycle bin relocates the directory to:
<sessions-root>/.dsh-session-trash/<timestamp>-<session-id>-<random>/
manifest.json # session id, title, cwd, original path, size, deletion time
log/ # the original session directory
Permanently delete removes the session directory instead. A workspace's empty project directory is cleaned up as well.
Restore validates the manifest's original path against its recorded log store, refuses to overwrite an existing directory, moves the log back, and re-attaches the session to its workspace.
HTTP route. The browser talks to the Host through /api/dsh-session-manager. The route accepts loopback requests only and requires the x-dsh-session-manager: 1 header; every mutation requires JSON. Route handlers never expose a session's log contents to the page.
| Key | Default | Meaning |
|---|---|---|
trashRetentionDays |
0 |
Purge recycle-bin entries older than this many days whenever the page is opened. 0 disables automatic cleanup. Values are clamped to 1–3650; invalid values fall back to off. |
- insert:
- id: session-manager
name: '@local/session-manager'
config:
trashRetentionDays: 30
The retention dropdown in the UI writes this same field through the Host config editor; when the value equals the bundle default (0), the override is removed again.
webServer, sessionQuery, sessionPersistence, workspaceRegistry, agents, configEditor, and the settings.section / settings.section.icon client slots.The plugin is a single local bundle. After editing, reinstall or reload it through the plugin manager, then refresh the page:
client.js).The repository contains no test framework; behavior was verified with throwaway Harness sessions (move, restore, purge, permanent delete, workspace removal) and structural rendering checks of the browser half.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: session-management。