rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:hongcha-dsh/dsh-watchlist
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
![]()
在 DeepSeek Harness(dsh)左侧边栏的对话列表上方加一块关注区:你在意的对话留在那里,不再被不断变长的列表挤下去。输入框的模型选择器左侧还有一个关注/结束关注按钮。
中文 | English
# 推荐:从 npm 装(预构建,免构建授权)
dsh plugin add @hongcha-dsh/dsh-watchlist
也可以直接装源码:
dsh plugin add github:hongcha-dsh/dsh-watchlist
装完重启 Harness:前端在下次加载页面时生效,Host 那一半需要重启。
1.0.6 起包名改为
@hongcha-dsh/dsh-watchlist(npm 上的dsh-watchlist是别人的包)。从旧源码装过的,先dsh plugin remove dsh-watchlist再装新的;关注列表存在浏览器本地,重装不会丢。
要求:带 Web UI 的 dsh(用到客户端插槽 shell.overlay、conversation.input.right,以及 uiSession / uiWorkspace 服务)。开发和实际使用都在 0.2.1-rc 与 0.2.2-rc 上。
关注区标题右边有个锁形按钮,默认是锁上的。锁住时,品牌、新会话、侧栏顶部那排入口(插件、自动化任务、上下文洞察、更多)和关注区都留在原处,只有工作区里的会话列表滚动;点一下解锁,就回到宿主自己那套滚动——滚轮先把顶部导航滚走,再滚列表。
这一项是为了配合 0.2.2 的侧栏:它把「面板导航 + 工作区」放进同一个滚动视口,滚轮先把导航滚走,于是关注区赖以定位的工作区块会整体上移,浮层跟着走,和下面的内容叠在一起。锁住等于把这段改回 0.2.1 的高度分配——视口不再滚动,工作区块拿剩余高度,会话列表在区块内部自己滚(用 container-type:size 让浏览器的 100cqh 等于"关注区下面剩下的空间")。
在 0.2.1 及更早的宿主上这些标记不存在,锁住是空操作;换宿主版本后若侧栏结构又变,解锁即可回到原生行为。
一个会话只有一个圆点,按优先级:
| 圆点 | 含义 | 判定方式 |
|---|---|---|
| 黄色 | 在等你 | 会话报告了待处理的交互 |
| 红色 | 失败 | Host 记录到该会话有一轮失败 |
| 蓝色(闪烁) | 运行中 | 状态表或会话列表显示正在运行,或它还有子代理在跑 |
| 绿色 | 未读 | 有新回复,而当时你没在看着这条对话 |
| 灰色 | 空闲 | 已关注,没有新动静 |
「未读」在你真正打开那一条对话时清除,不是按时间清除。一轮结束时总会标成未读——哪怕这个对话正开着在主视图里,因为你可能在看关注区或别的窗口;你回复后它会变回蓝色的「运行中」,所以不会一直吵。开着没动的那一条则会一直保持绿色,直到你离开再回来、或点它一次。
派了子代理的对话也一样:分派那一轮结束后,它自己已经空闲,但子代理还在跑,所以它继续按「运行中」显示,不会在子代理没跑完的时候先翻成未读;等最后一个子代理报完,才回到未读、顶到未读组的第一行。
正在运行的对话排在最后(在等子代理的同样算运行中)。其余按最近一次活动的排序戳倒序,所以刚收到的回复会把那一行顶到最上面。排序戳只会变大:同一毫秒内的两次回复也能保持稳定顺序,重新关注一条对话也不会把它埋到已有行下面。点某一行的圆点重新标记未读时也会刷新这一行的排序戳,于是这一行立刻回到未读/空闲组的第一行;如果它正在运行,则仍留在最后,等这一轮结束再自然置顶。
浏览器 profile 里的 localStorage["dsh-watchlist:v1"]:关注的 id、未读的 id、排序戳,以及顶部锁定开关(pinned,缺省为锁上)。没有服务端状态,也不跨浏览器同步,清站点数据就重置。
子代理(subagent)的子会话不进关注区——分派工作不该多出一行;fork 出来的对话是普通对话,可以关注。派了子代理的父会话在子代理跑完之前按「运行中」显示。
前端几乎全部状态都从它已有的 store 里推导。它唯一看不到的,是没有显示在屏幕上的会话里出现的那一轮失败。所以 Host 那一半监听 agent/error 与 api-session/error,保留最近 64 条,用 GET /plugins/dsh-watchlist/failures 提供给页面(仅同源,no-store)。
页面每秒轮询一次这个路由。这个轮询同时是看门狗:它会重读会话列表和状态表,所以从输入框刚发出去的提问,在列表还没重新发布之前也能被算进去。
状态图标是四种动作的鲸鱼尾巴,移植自 dsh-status-rotator(MIT,Copyright (c) 2026 01Virex):帧序列重采样(每种动作 150 → 100 帧),轮廓简化为 120×95 viewBox 内的 96 个整数点,由 CSS d: 关键帧配 steps(1, end) 驱动。动画跟着状态走:未读翻尾、待回复扭转、运行中左右摆。
MIT,见 LICENSE。
A follow list above the sidebar's conversation list for DeepSeek Harness (dsh).
Conversations you care about stay in one place at the top of the left sidebar, each with a status dot, instead of sinking down a list that keeps growing. A follow toggle also sits beside the model selector in the composer.
0.2.2 puts the panel navigation and the workspace section in one scroll viewport, which walks the section — and this area's anchor — up out of the sidebar; locking gives the section the remaining height instead and lets its list scroll inside. On 0.2.1 and older hosts the markers are absent, so the lock is a no-op there.# recommended: from npm (prebuilt, no build approval)
dsh plugin add @hongcha-dsh/dsh-watchlist
Or install the source straight from GitHub:
dsh plugin add github:hongcha-dsh/dsh-watchlist
Then restart Harness. The Client half is served on the next page load; the Host half needs the restart.
From 1.0.6 the package is
@hongcha-dsh/dsh-watchlist(the baredsh-watchliston npm belongs to someone else). If you installed from source before, rundsh plugin remove dsh-watchlistfirst — the watch list lives in browser storage, so it survives a reinstall.
Requirements: a dsh build with the Web UI (the plugin uses the client slots shell.overlay and conversation.input.right, and the uiSession / uiWorkspace services). Developed and used against 0.2.1-rc and 0.2.2-rc.
One dot per row, chosen by this priority:
| Dot | Meaning | How it is decided |
|---|---|---|
| Yellow | waiting for you | the session reports a pending interaction |
| Red | failed | the Host recorded a failed turn for that session |
| Blue (blinking) | running | the session is running, per the status map or the list, or it still has subagents working |
| Green | unread | a reply arrived while you were not looking at that conversation |
| Grey | idle | followed, nothing new |
Unread clears when you arrive at the conversation, not on a timer. A finished turn is always marked unread, even for the conversation that is open in the main view: you may be watching the area itself or another window when the reply lands, and a follow-up prompt turns the row back into the blue running state, so the mark does not pile up. An open conversation left alone stays green until you leave and come back, or click the row once.
A conversation that handed work to subagents behaves the same way: its dispatch turn is over, but the children are still working, so the row keeps reading as running instead of turning unread early. When the last child reports back it falls out of running and takes its place at the top of the unread group.
Conversations that are running sort last — a conversation waiting on its subagents counts as running. Everything else sorts by the stamp of its latest activity, newest first, so a reply you just received puts that row at the top. Stamps only grow: two replies in the same millisecond keep a stable order, and re-following a conversation cannot bury it under rows that were already there. Clicking a row's dot to mark it unread refreshes that row's stamp as well, so it returns to the top of the unread/idle group at once; a running row stays last and rises on its own when the run ends.
localStorage["dsh-watchlist:v1"] in the browser profile: followed ids, unread ids, and the ordering stamps. There is no server-side state and no sync between browsers. Clearing site data resets the area.
Subagent child sessions are excluded: delegating work should not add rows. Forks are ordinary conversations and can be followed. A parent reads as running while its subagents are still working.
The Client derives almost everything from stores it already has. The one thing it cannot see is a failed turn of a session it is not displaying, so the Host half listens for agent/error and api-session/error, keeps the last 64 failures, and serves them at GET /plugins/dsh-watchlist/failures (same-origin only, no-store).
The page polls that route about once a second. That poll is also the watchdog: it re-reads the session list and the status map, so a prompt sent from the composer counts even before the list republishes.
The status marks are a whale tail in four motion variants, ported from dsh-status-rotator (MIT, Copyright (c) 2026 01Virex). Frames were resampled (150 → 100 per action) and their outlines simplified to 96 integer points in a 120×95 viewBox, then driven by CSS d: keyframes with steps(1, end). The animation follows the row's state: unread flips, waiting twists, running sways.
MIT. See LICENSE.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。