dsh-injection-list
Manifest valid在会话页头显示本轮上下文注入清单(live-docs / time-context / agent-instructions …),每行只写来源名,点击展开内容。补 0.2.1 UI 把 context 行折叠掉的缺口。
dsh-injection-list
在会话界面显示「本轮上下文注入了什么」(live-docs / time-context / agent-instructions …),补 0.2.1 UI 把 context 行折叠掉的缺口。
原理
0.2.1 的 UI 不渲染 context 行,client 侧也拿不到会话事件。所以:
Host 半边挂在 agent/pre-step 链尾(next() 之后),检查 decision.messages 里 source.kind 不是 user 的消息,按 session 记下来,再通过 HTTP 提供给 client 半边。
只读、只记录,不改任何会话数据。
每个会话最多保留 200 条记录。
四种显示(各自独立开关)
| 开关 | 默认 | 作用 |
|---|---|---|
hostRecord | true | 记录注入 + 暴露 /injection-list/api/*(关掉则下面三件都没数据) |
headerButton | true | 会话页头的「注入 N」按钮 |
turnTailList | true | 每回合尾部的注入行 |
chatNodes | true | 消息流里的上下文节点(复用官方 context 渲染器) |
安装
① 通过插件市场(推荐)
在 awesome-dsh-plugin 的目录里找到本插件,
或在 dsh 的 插件 → 发现 里搜索 dsh-injection-list,点安装。
② 手动安装
任选一种,不要两种同时用:
A. 复制 + 手写 insert(适合本地开发)
-
把本目录复制到
$DSH_HOME/profiles/web/node_modules/dsh-injection-list/ -
在
$DSH_HOME/profiles/web/cordis.patch.yml加:- insert: - id: injection-list name: 'dsh-injection-list' -
重启 dsh,或让 Loader 重载配置
B. dsh plugin add(需要包已发布到 npm)
dsh plugin --profile web add dsh-injection-list
⚠ 用 B 之后,包名会进
dsh.profile.bundles,bundles 层会读本包自带的cordis.patch.yml;此时不要再做 A 的第 2 步 —— 同一个 id 会被插两次, DSH 启动会直接失败。
日志
DEBUG 常量(index.js 顶部)默认 false —— 只打启动就绪与错误。
改成 true 会额外打印 client 清单诊断。
环境
- DSH ≥ 0.2.1
Comments
Loading…
From the same category
by ccch1mneyyy
DSH 官方公众号收录的 TUI 补位插件:Claude Code 风,鲸鱼顶栏/实时状态/流式思考/双击 Esc 回滚/上下文进度+TPS。npm 一键装。 DSH official WeChat featured TUI plugin — Claude Code style: whale bar, live status, streaming thoughts, double-Esc rol
★ 6.6k
↓ 22.4k/wk
MIT
TypeScript
Nov 2, 2026
dsh plugin --profile terminal add @deepseek-harness-tui/dsh-tuiby kingcharleslzy-ai
Community-maintained dsh-purge fork with host-policy patches, prompt and rule settings, diagnostics, separate update-check and install controls, and local backup/rollback.
★ 4.1k
MIT
JavaScript
Nov 1, 2026
dsh plugin --profile web add dsh-purge-communityby bowenliang123
The best DeepSeek Harness plugin for context insight and management, with context dashboard / browser / sidebar and context command, for context statistics, composition, breakdown, evolution details,
★ 4k
↓ 139k/wk
Apache-2.0
TypeScript
Nov 2, 2026
dsh plugin --profile web add dsh-contextby strukto-ai
The World's First Virtual Terminal for AI Agents
★ 3.8k
↓ 316/wk
Apache-2.0
TypeScript
Nov 2, 2026
dsh plugin --profile agent add @struktoai/mirage-dshby mmparko
DeepSeek Harness 破甲 (mirror of YuJunZhiXue/dsh-purge) — 上游即将删库,此为本仓库全量镜像:含全部分支/73 个 tag/完整提交历史。原作者署名与二开要求见 README 署名章节。
★ 3k
MIT
JavaScript
Oct 13, 2026
dsh plugin --profile web add dsh-purgeby c1overzz
DSH 插件:每天替你刷一轮 B站,读字幕挑出值得的、写一份日报,值得的 @ 你
★ 1.1k
↓ 36.2k/wk
MIT
JavaScript
Oct 31, 2026
dsh plugin --profile web add dsh-bili-scroll