nuwa-skill
alchaincyf
你想蒸馏的下一个员工,何必是同事。蒸馏任何人的思维方式——心智模型、决策启发式、表达DNA。Distill how anyone thinks.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Sunshow/dsh-recent-sessions
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English — A sidebar plugin for DeepSeek Harness. One extra row above Settings opens a sheet over the workspace list: the latest sessions by last activity, click a row to switch, collapse the sheet and scroll the sidebar to that session's workspace. A search field at the top filters by session title, workspace name or path, session ID and state; opening the sheet focuses it, and Escape clears it. Subagent sessions are the point: fold them into their main session (the main row ranks by the newest activity anywhere in its subtree and expands in place), hide them, or list them on their own row — chosen with a switch in the sheet that saves back to the profile. A second switch limits the list to the last 1 / 7 / 30 days. The entry row also carries the list's status dots — yellow for a session waiting on you, green for a finished session not opened yet — and shows both at once, without counts. The sheet spans the sidebar column and paints an opaque surface.
Install from the Harness Plugins page → Add plugin:
github:Sunshow/dsh-recent-sessions
# or pin a version
github:Sunshow/dsh-recent-sessions#v0.3.0
Then open the switch for dsh-recent-sessions in the installed list. The repository ships the plugin files as-is; nothing needs building.
Find the entry row above Settings in the sidebar: 最近会话 · Recent sessions <count>. Click it, pick a session; the sheet closes and the sidebar scrolls to that session's workspace row (expanding the group first when it is collapsed).
Opening the sheet puts the cursor in its search field, so you can start typing right away. Type to filter, ↑ / ↓ to highlight results (the caret stays in the field), Enter to open the highlighted row (or the top match once a query is typed), Esc to clear a query and drop focus, then Esc again to close the sheet. A printable key pressed anywhere in the sheet also returns focus to the field (Space still activates a focused row or switch).
| Setting | Default | Meaning |
|---|---|---|
subagentMode |
fold |
fold / hide / separate — see below |
maxItems |
12 |
rows in the list (3–50) |
maxAgeDays |
0 |
time window: 0 unlimited, 1, 7, 30 |
panelOverhang |
0 |
extra px the sheet reaches past the sidebar (0–320) |
closeOnPick |
true |
collapse the sheet after a row opens a session |
showWorkspace |
true |
show the workspace name on each row |
defaultCollapsed |
true |
start with the sheet closed |
refreshMs |
30000 |
relative-time refresh interval |
The entry row summarizes the top-level rows the sheet lists when it opens, so the sidebar tells you that something needs a look without opening the sheet:
| Dot | Meaning | Cleared when |
|---|---|---|
| yellow | a listed session is waiting for approval, a plan review or an answer | you act on that session |
| green | a listed session finished and has not been opened yet | you open that session |
Both dots appear side by side when both states exist, and no counts are shown. Hovering the row explains the dots in the active language; screen readers hear the same text as part of the row label. The signals follow the sheet's default list — the current subagent mode, Range window and the maxItems cap; search and expansion do not change them — so an indicator always has a matching top-level row when the sheet opens. Folded subagent sessions do not add an indicator of their own (a finished subagent stays unread until it is opened, which would keep the green dot lit); separate mode gives subagents their own rows so their states do show, and hide mode leaves them out entirely.
The field under the title is focused the moment you open the sheet, and a printable key pressed anywhere in the sheet brings focus back to it — after arrow-key navigation or after clicking one of the switches you can simply keep typing.
运行中 / Running). Several space-separated terms must all match.hide subagent mode still leaves subagent sessions out, and the empty state says so when that is the cause.↑ / ↓ move a highlight through the results while the caret stays in the field; Enter opens the highlighted row (or the top match once a query is typed); Esc with a query clears it and drops focus (Esc with no query closes the sheet); and the ✕ button only clears.Session ID — so every result explains itself. Search also shows the workspace name even when showWorkspace is off, for the same reason.maxItems; the header then reads N matches · showing M. Only sessions the client has loaded are searched; archived sessions stay in the sidebar's archive.Subagent handling (the switch at the top of the sheet, saved through POST /api/dsh-recent-sessions/config into the profile's cordis.patch.yml):
| Mode | What the list shows | Ranking |
|---|---|---|
| fold (default) | main sessions only, each with an N 个子代理 count and a ⌄ to expand |
newest activity in the whole subtree |
| hide | no subagent rows at all | each main session's own activity |
| separate | one row per subagent session, marked 子代理 |
each row's own activity |
Limitations: archived sessions are not listed (they stay in the sidebar's archive); search filters the same loaded snapshot in the browser and never reads session content; locating the sidebar row relies on the host's data-row-key markers, so it degrades to "opens the session only" if the host changes them; verified on macOS Desktop with DSH 0.2.2.
侧栏多一行「最近会话」,随时回到刚才的会话;打开就能搜,子代理会话按你的偏好折叠、隐藏或单独列出。
DeepSeek Harness(DSH)侧栏插件。工作区列表下方、设置上方多一行「最近会话」,
点开是一张浮在工作区列表上方的面板:按最后活动时间列出最近的会话,点一行直接切过去。
面板顶部的搜索框按会话标题、工作区名称 / 路径、Session ID 和状态过滤;点开浮层时它自动取得焦点,Esc 清空并脱离焦点。
入口行还会带上状态点:有待确认的会话亮黄点、已完成未打开的会话亮绿点,两种可以同时出现。
最近会话 12,和「设置」同一款式与高度;数字是列表里实际列出的条数。侧栏收成细轨道时整行隐藏,不留圆点。panelOverhang 设成 40、80 这样的像素值即可。uiWorkspace.openSession);随后面板收起,侧栏自动滚到该会话所在的工作区分组,必要时先展开被折叠的分组,当前会话整行高亮。不想让它自动收起就把 closeOnPick 设成 false。⋯,打开官方会话菜单(置顶、重命名、分叉、归档、复制 Session ID),与侧栏工作区行同一套动作。↑ / ↓ 在结果间移动高亮(光标留在搜索框),回车打开高亮项(有搜索词时可直接打开第一条);Tab 可把焦点移到开关或结果行,在结果行上 Home / End 到头尾;有搜索时 Esc 先清空并脱离焦点,再按一次才收起面板,没有搜索时按 Esc 直接收起。data-row-key),展开分组是点宿主的工作区分组头;宿主改结构时这部分退化为「不定位」,会话照常打开。搜索框在面板标题下方,点开浮层就取得焦点,直接打字即可;焦点不在搜索框时(比如刚用方向键选过行、点过开关),按任意可打印字符也会回到搜索框继续输入。
↑ / ↓ 在结果间移动高亮,光标一直留在搜索框;回车打开高亮项(没有高亮且有搜索词时打开第一条);有搜索时 Esc 清空并脱离焦点(再按一次收起面板),没有搜索时直接收起;右侧 ✕ 只清空。showWorkspace 关掉也会显示工作区名,原因同上。子代理会为每次委派开一个会话,官方侧栏不显示它们;最近会话如果直接平铺,
列表很快会被 读取装配入口 之类的子代理行占满。面板顶部「子代理」有三档:
| 档位 | 效果 |
|---|---|
| 折叠(默认) | 只列主会话。主会话的排序时间取整棵子树里最新的活动:子代理刚跑过,主会话就浮到最上面。行上显示「N 个子代理」,左侧 ⌄ 展开可看到这些子代理会话并逐个点进去;当前正在看的会话若是子代理,其主会话行带一条左侧竖线。 |
| 隐藏 | 完全不出现子代理会话,主会话只按自己的活动时间排序。 |
| 单独 | 每个子代理会话各占一行,按它自己的活动时间排序,第二行标注「子代理」。 |
切换方式:面板里点一下即可。选择会做两件事——先存本机(localStorage,
离线也生效),再 POST /api/dsh-recent-sessions/config 写回 profile 的
cordis.patch.yml,所以重启后仍然有效。写回不可用时(profile 只读、宿主半没跑起来等),开关下方会显示
「未能写入配置,本机生效」,功能照常。
面板顶部第二行是「范围」:不限 / 1 天 / 7 天 / 30 天。它只按时间窗过滤, 再按「条数上限」截断,所以列表既能控制"看多久以前的",也能控制"最多几行":
maxItems,默认 12,3–50)。列表只列这么多行,入口行上的数字也就是这个数;
标题栏在还有更多会话时显示「12 / 146 个会话」,让你知道被截掉了多少。在 profile 的 cordis.patch.yml 里找到 id: recent-sessions 那一行改配置:
| 键 | 默认 | 说明 |
|---|---|---|
subagentMode |
fold |
fold / hide / separate,即上面三档的默认值 |
maxItems |
12 |
列表最多显示多少条(3–50) |
maxAgeDays |
0 |
时间窗:0 不限 / 1 / 7 / 30 天 |
panelOverhang |
0 |
面板向右超出侧栏列的像素(0–320) |
closeOnPick |
true |
点一行后收起面板(false 则保持展开,便于连切) |
showWorkspace |
true |
每行第二行是否显示所属工作区名 |
defaultCollapsed |
true |
打开 Harness 时面板是否收起 |
refreshMs |
30000 |
相对时间文案的刷新间隔(毫秒) |
面板里的开关优先于这里的默认值(本机偏好);想回到配置默认值,清掉
localStorage 里的 dsh.recent-sessions.subagent-mode.v1(子代理)和
dsh.recent-sessions.max-age-days.v1(范围)即可。
面板不新建会话存储,直接读官方客户端快照:
sessions.list.byId:标题、updatedAt、running、blank、retainedBy、origin、parentIduiSession 的会话状态:pendingInteraction、completionUnread、runningworkspaces.list:items[].sessionIds(反查工作区名)、archivedSessionIds因此:
在 Harness 左侧的 插件 页面点 添加插件,填写下面任一个地址:
github:Sunshow/dsh-recent-sessions
# 或固定版本
github:Sunshow/dsh-recent-sessions#v0.3.0
安装后在已安装列表里打开 dsh-recent-sessions 的开关。仓库里提交的就是可直接运行的插件文件,
不需要自行编译。也可以从仓库下载后填目录绝对路径(目录内包含 package.json)。
改动 client.js 后刷新一次 Harness 窗口即可生效;index.js(宿主半)的改动需要重启一次 Harness。
在 macOS Desktop(DSH 0.2.2)上验证。插件只挂两个官方扩展点:
sidebar.footer.action(入口行)shell.overlay(浮层,框架级悬浮层,本身可穿透点击)面板正文 portal 到 document.body(窄窗口下侧栏变抽屉时也能盖在它上面)。宿主若改掉这两个席位,
入口消失、面板不出现,但不会影响 Harness 本身。
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: session。