nuwa-skill
alchaincyf
你想蒸馏的下一个员工,何必是同事。蒸馏任何人的思维方式——心智模型、决策启发式、表达DNA。Distill how anyone thinks.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:QqiqiQ/dsh-session-toolkit
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Adds two buttons to the DSH conversation header:
| Button | What it does |
|---|---|
| ⇄ Workspace | Moves the current session into another registered workspace (optionally archiving the original) |
| ◈ Preset | Switches the Agent preset of the current session — including sessions that already started |
Both are things a browser half cannot do alone, which is why this plugin ships a host half as well.
From the plugin market (search for "Session Toolkit"), or by hand:
dsh plugin --profile web add https://github.com/QqiqiQ/dsh-session-toolkit/releases/latest/download/dsh-session-toolkit.tgz
Then restart dsh web.
Workspace membership is derived, not stored. A session belongs to a workspace because the cwd in
its session header equals the workspace path — dsh-workspace's sessionIds getter filters on that
condition every time, and attachSession refuses a session whose cwd does not match. The header is
immutable and no API rewrites cwd, so "moving" a session means opening a continuation session in the
target directory that carries the whole history:
sessionQuery.readSession
→ agents.create({ seed, inheritedEventCount,
meta: { cwd: targetPath, parentSession: sourceId, isSeeded: true } })
→ workspace.attachSession(newId) // its header cwd is the target path, so it survives a restart
→ optional archiveSession(sourceId)
The new session keeps fork provenance (parentSession, isSeeded, the session/end-seed marker),
because the harness has no "delete session" and no "change session id". It also starts on the model the
source last used — read from the last model/selection event, or, when the picker was never touched,
from the config of the last request/header event — because the persona prefix's {{model}} variable
only resolves from the options the Agent was created with.
agentPresets.select only accepts a blank session. It throws agent-preset/locked once the session
has run a turn. The plugin tries that official path first, and only when it is refused does it rebind the
same Agent scope through agentPresets.recompose(agent.ctx, id) and write the agent-preset/selected
event that call would have written. History is not rewritten; projections and browser tabs follow.
The browser half calls two host routes of this package with relative-URL fetch (deliberately not
session commands, so nothing lands in the session log as command/run):
POST /session-toolkit/migrate — { sessionId, workspaceId, archiveSource?, agentPreset? }POST /session-toolkit/preset — { sessionId, agentPreset }Both pass connection.requestRejection (login cookie / loopback / same-site checks) first, accept
application/json only, and cap the body at 64 KiB.
session-busy.MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: session。