nuwa-skill
alchaincyf
你想蒸馏的下一个员工,何必是同事。蒸馏任何人的思维方式——心智模型、决策启发式、表达DNA。Distill how anyone thinks.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:wodebilu/dsh-session-editor
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Unofficial plugin for DeepSeek Harness (DSH). Not affiliated with DeepSeek.
Adds session deletion and SillyTavern-style direct conversation editing to the DSH Web UI.
Deletion is permanent: there is no trash and no undo. A deleted session's log is erased from disk. If you are not sure a session truly has to go, archive it first: archiving only hides it from the sidebar, keeps the data, and can be undone at any time.
| Action | Where | Behavior |
|---|---|---|
| Delete session | Session row … menu → Delete session permanently… |
Resolve and verify the artifact path, archive the session, stop running work, then erase its directory from disk. Requires ticking “I understand this cannot be undone”. |
| Regenerate | Action row under a finalized answer | Confirmation → new session forked before the turn → same prompt resent → open it → original deleted permanently. |
| Edit prompt & resend | Same action row | Confirmation + text editor → new session with the edited prompt → original deleted permanently. |
| Delete this turn and later | Same action row | New session ending before that turn → original deleted permanently. |
| Edit my input | Hover a user message bubble | Copy / edit your own message; same replace-and-delete flow. |
| Delete | Archive | |
|---|---|---|
| Session data | Permanently removed from disk | Kept |
| Can be restored | No | Yes — unarchive it |
| Leaves the sidebar | Yes | Yes |
| Frees disk space | Yes | No |
Deleting is a decision only you can make. If the only goal is “get this conversation out of my sidebar”, archive it — the data stays, and space is the only thing you save by deleting.
DSH session logs are append-only; in-place rewriting is not supported. Each edit therefore creates a replacement session (forked before the target turn, title preserved), opens it, and permanently deletes the source session. The visible result is immediate: the conversation becomes the edited one and the original leaves the sidebar.
Consequences:
The plugin does not guess a path and delete it. Before any state changes it:
sessionPersistence.stat and refuses a session that still has subagent children (fork children are allowed);locate(header) when the harness provides one;listArtifacts() (validated header → path);<persistence root>/<project>/<sessionId> for each candidate root
(sessionPersistence.root, its config.root, $DSH_HOME/sessions);session*.jsonl[.zstd] file;sessionPersistence.flush(), then erases the directory from disk and removes that session's projection cache (<library>/storages/session_projcache/sessions/<id>.json — the log is not the only copy of the conversation: this checkpoint carries the title, the first prompt and the turn outline);The order matters. Erasing comes before archiving: a failed erase therefore reports an error instead of silently hiding a row whose log still exists. A running session is archived before the erase in order to stop it; when that erase then fails, the row is un-archived and reappears. Archiving only hides the row; the session id leaves the workspace registry on the next DSH start, when the registry is rebuilt from disk. The plugin never writes workspace.json.
A failed path lookup happens before any state change, so it leaves the session untouched.
There is no recovery afterwards. If you might want the conversation back, cancel at the confirmation dialog and archive the session instead.
0.2.1-rc.2.commands, agents, sessionPersistence, workspaceRegistry) plus two backend details for path discovery: the JSONL backend's listArtifacts() and its root field. Both are feature-detected; a future harness that removes them falls back to $DSH_HOME/sessions. If none resolves, deletion fails closed.conversation.chat.user.content factory. A DSH upgrade may break it.DSH sidebar → Plugins → Add plugin.
Paste the repository address:
https://github.com/wodebilu/dsh-session-editor
or install from a shell:
dsh plugin --profile web add github:wodebilu/dsh-session-editor
The package name and the repository name are both dsh-session-editor.
Install, then restart DSH once.
Do not install it from npm as dsh-session-toolkit: that name belongs to a different plugin.
package.json).A folder install is a
link:dependency: do not move or delete the folder afterwards. A Git/tarball install copies the package into the profile and is move-safe.
Earlier builds used the package names @local/dsh-session-toolkit or dsh-session-toolkit. Remove that bundle in Plugins → Installed plugins before installing this one, otherwise two client modules register the same slots.
… → Delete session permanently… → tick the acknowledgement → confirm./session-editor delete <sessionId> --confirm. The command is also what the menu and the replace flows use.
A typed command has no dialog to tick, so --confirm is its acknowledgement: without it the command only returns the usage line and touches nothing, so a pasted line cannot delete a conversation by itself.The delete command is logged as a normal command row. When a session deletes itself (the replace flows), the Host waits for the command lifecycle to become durable, then erases the directory.
No configuration is required. One constant is intentionally fixed rather than exposed:
conversation.chat.node key user to add hover actions, reusing the shipped conversation.chat.user.content factory. A DSH change to that node contract can affect user-message rendering until the plugin is updated.No build step: plain ESM Host code plus a browser bundle.
npm test
# equivalent to:
node test/host.test.mjs
node test/client.test.mjs
The Host test uses a temporary directory and never touches real sessions. It exercises the path resolver without a locate() implementation, and asserts that a failed lookup does not archive the session.
MIT. See LICENSE.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: ai-agent、session-management。