精选
为什么选中它
待人工精选——以下事实来自源码仓库。
它能做什么
为 dsh 提供新的「聚焦会话」精简会话视图,更轻松易于阅读,只关注最终产出结果。
适合谁
想用 DSH 获得这项能力的用户;装前建议先看源码和文档。
风险提示
- 没有明确许可证,使用前确认授权。
为 dsh 提供新的「聚焦会话」精简会话视图,更轻松易于阅读,只关注最终产出结果。
待人工精选——以下事实来自源码仓库。
为 dsh 提供新的「聚焦会话」精简会话视图,更轻松易于阅读,只关注最终产出结果。
想用 DSH 获得这项能力的用户;装前建议先看源码和文档。
dsh plugin --profile web add github:dingyi222666/dsh-focus-chat 类型判定: plugin signals in name, description or topics · 规则判定 · 2026年8月19日
作者没有声明支持的平台。
|
| Instead of watching every step live, one assistant turn collapses into a single summary line: > Thought for 36s, loaded 3 context items, ran 2 shell commands, edited 8 files, read 17 files, listed 18 directories …and the whole turn can fold into one Worked for Xm Ys line. Click any line to expand the full detail — tool cards, thinking, context injections, produced files, copy/fork actions — all drawn the same way as the normal chat rows. Your mid-turn interjections split the fold into per-stretch lines, each carrying its own duration, and a stopped turn reads Stopped after X instead of "worked". A background-task settlement — a tool-jobs notice injection like bash pnpm install [status: completed] — classifies into the summary line's N background jobs segment instead of riding it as a verbatim injected … account; expanding the line still shows the full notice body. File operations (edits / reads) never carry a failure tally on the summary line — edited N files reads the outcome — only command execution and other tools annotate failures. Switch to it whenever you want the "what happened?" view, and flip back for the full transcript. ## Install sh # Install from npm (requires dsh >= 0.1.0-rc.6) dsh plugin --profile web add @dingyi222666/dsh-focus-chat # Restart dsh web; the tab mounts automatically dsh web Then open the Focus chat tab in any conversation. Notes: - dsh plugin behaves like adding a dependency to your web profile. A bundle plugin is loaded once its full package name appears in the profile's dsh.profile.bundles list (adds automatically on recent dsh builds; add it manually if your build does not); the bundle patch applies on the next boot. - With the repo source-launched CLI, run the args through the bin directly (node --import tsx/esm apps/cli/src/bin.ts ...). ## Why a separate tab, and not a patch into the chat view? Short answer: the chat view's internals aren't open to third-party plugins — by design — and this plugin deliberately never touches dsh's own source. Concretely: - Keyed slots are owned, not shared. The chat's rows render through slots like conversation.chat.node, tool.call.toolview, and conversation.chat.turnTail. Those slots are declared by the chat entries themselves, and the slot system rejects a second declaration at load time — the conflict is the design speaking. A plugin cannot insert its own rows into the chat transcript, and cannot even declare the chat's own slots. - Plugins can't reuse the chat's renderer code. Importing values from another plugin package across the bundle boundary is forbidden (the bundle purity gate), so there's no way to borrow the chat's components — every row has to be drawn from the shared primitives and the public snapshot. - The only legal insertion point is the conversation.view list slot — the whole message surface. That's why the plugin ships its own complete view instead of changing how the chat view displays. If you want the chat view itself to behave differently, that's an in-repo change to the chat package — exactly what this plugin avoids. ## What's missing Focus chat is a faithful reading surface, not a second chat view: - No Inspect / details-panel deep links. The chat's Inspect affordance needs internals plugins can't touch. The tool cards render the same content, just without the jump-to-details button. - Third-party tool-card extensions don't render here. Cards that other plugins add to the chat view won't appear in the focus view; the built-in card renderers are used instead. - Folding is per consecutive tool-run. Any visible content between two runs (a reply, a command, your interjection) keeps them separate. - Inline file links need the optional file-mentions service — the same off switch the chat view uses. ## Development - yarn run build — builds the browser bundle and the Node half. - src/client/focus-model.ts — the pure logic (folding, merging, row models); src/client/FocusView.tsx — the view. - yarn test — behavior tests; yarn run typecheck — type gate. - A --dev dsh web server hot-reloads rebuilt bundles — yarn run build alone is usually enough to see changes. ## Model Experience None. The view is a pure client derivation over the already-logged conversation snapshot; nothing here reaches a model request. #### KV Cache effect None; this package neither assembles nor sends provider requests.不看 Star,人工一条条挑的。
把 DSH 的 settings.yaml 做成可视化看板:所有已注册的 settings namespace——包括官方界面从未覆盖的第三方插件配置——都渲染成可编辑表单。项目还早,但方向很对:告别手改 YAML。
给 DSH 的 DIY 轨迹可视化:把 agent 的计划与执行画成图,不用翻原始日志也能看清它在干嘛。项目还早,但补上了「一眼看懂 agent 在做什么」这个真实缺口。
从 Claude Code / Codex 把活派给 DSH:在宿主内拉起带分级预设的 DSH agent 会话,看原生子代理进度,还能借它的多模态桥给纯文本的 DSH 补上视觉和生图。编排型插件,把 DSH 变成其他编码 agent 的后端。