Overlay reader for agent output files: Markdown rendering, in-panel PDF, DOCX/XLSX/PPTX text preview and reply-end file chips, with search, outline and position memory.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-agent-outputs-reader
# from a prebuilt release tarball
dsh plugin --profile web add -w "https://github.com/HiSeax/dsh-agent-outputs-reader/releases/latest/download/dsh-agent-outputs-reader-0.2.0.tgz"
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:HiSeax/dsh-agent-outputs-reader
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
无任何常驻 UI。定位:阅读 agent 产出的任何文件——文本/markdown、PDF、DOCX/XLSX/PPTX。
截图 / Screenshots
会话中的产物文件卡片 / File cards in conversation

阅读器浮层(目录树 + 大纲 + 工具栏)/ Reader overlay

Markdown 渲染 / Markdown rendering

PDF 面板渲染 / In-panel PDF

两个入口
- 回复末尾文件 chips:agent 在回复末尾写文件链接(≤3 个自定),渲染为紧凑胶囊按钮,点击打开阅读器。必须用绝对 http URL(GUI 渲染器只对 http/https/mailto 出可点链接),路径须 encodeURIComponent。
- 产物文件卡片:agent 写入会话工作区(
sent-files/)的文件自动挂在回复下方,点击进入阅读器;工作区任意 .md 也可直达。
阅读器
- 文本类:GFM 子集渲染(标题/表格/代码块/引用/列表/加粗斜体/行内代码/链接)、限宽排版、大纲滚动高亮、全文搜索(Ctrl/Cmd+F)、字号 A−/A+、位置记忆、上一篇/下一篇(边界禁用)、返回顶部、宽屏
- PDF:面板内 iframe 原生渲染(宿主
/raw出字节) - DOCX/XLSX/PPTX:面板内文本预览(宿主纯 JS 解 zip + XML 提取;xlsx 含 sharedStrings、pptx 按页分组);不支持 .xls/.doc 旧二进制格式(这类文件请在本地打开)
- 窗口:拖拽调整大小、吸附右侧 ⤇ / 一键恢复弹窗 ⤆、Esc 关闭;快捷键不抢占对话输入框
- 失败路径可自救:根目录不可用/目录树失败/文件失败均有提示与重试
宿主 API(同源校验:Host/Origin 仅 127.0.0.1/localhost/::1)
新前缀 /@dsh-external/dsh-agent-outputs-reader/api/*;旧前缀 /@dsh-external/dsh-report-card/api/* 保留注册(历史 chips 兼容)。
GET /info→{ ok, root, roots, exps, limits, suggest }GET /tree?path=<rel>→{ root, path, entries }(链接条目 type:'link')GET /file?path=<rel>→ 文本{type:'text',content}| office{type:'office',kind,text}| pdf{type:'pdf',rawUrl};浏览器直开返回 HTML 兜底GET /raw?path=<rel>→ PDF 原始字节(application/pdf)GET /beacon?msg=…→ 诊断日志(净化/截断/超 1MB 轮转)
路径三根:config.root > env DSH_REPORTS_ROOT > C:\Projects\Quant\reports;sent-files/ → $DSH_HOME/sent-files;$DSH_HOME(仅 .md/.markdown)。全部经 realpath 校验防 junction 穿透。白名单 = 文本扩展名 + .pdf/.docx/.xlsx/.pptx;≤10MB。
构建 / 测试 / 注入
bash scripts/build.sh # src→lib 拷贝 + 语法自检 + 一致性校验
node --test tests/*.cjs # 回归测试
经 dsh-super-injector 注入:dev_inject_plugin(目录 C:\Users\xiao\.dsh\plugin-dev\dsh-agent-outputs-reader);热重载 dev_reload_package dsh-agent-outputs-reader;卸载 dev_uninject_plugin dsh-agent-outputs-reader。
运维 / 排障
- 持久化:
$DSH_HOME/sent-files/、$DSH_HOME/dsh-agent-outputs-reader-beacon.log(自动轮转 .old) - localStorage:
dsh-aor:*前缀(旧dsh-report-card:*键自动迁移) - 高频排障:chips 不可点 → 检查是否 http 链接;点卡片不弹阅读器 → 硬刷新页面;接口 403 → 来源非本机
- 仅支持 Windows(默认根为 Windows 路径,其它平台需显式配
DSH_REPORTS_ROOT)
设计决策
- 无任何常驻 UI:chips 随消息流滚动,由 agent 逐条回复自定
- 无条件
window.__ModuleLoader__.load注册:守卫写法会静默跳过导致整个 web 插件树启动失败(历史事故,回归测试锁定) - 拦截层三层:chips 链接(DOM 捕获)+ 产物卡片(title 路径兜底)+
ctx.workspaces.openPath包装(卸载前身份校验) - 零依赖:Office 解析用自研最小 zip 读取器(stored + deflate),换取纯拷贝构建
- 旧接口路径保留:改名不破坏历史消息里的链接
Links
More in this category
tt-a1i/archify#integrations/deepseek-harness★ 101863
Generate validated, self-contained interactive architecture, workflow, sequence, data-flow, and lifecycle diagrams from repositories or system descriptions.
dream-num/dsh-univer-office★ 769
Give DeepSeek Harness a real office environment. Univer Office Plugin brings spreadsheets, docs, slides, canvases, relational tables, and more into one runtime — with connected data, validation, versioned changes, and isolated worktrees for multi-agent collaboration.
ECNU/EduWork#dsh-knowledge-studio★ 441
A workspace-based Studio for source-grounded reports, slides, tables, mind maps, quizzes, flashcards, audio and video, using DSH models and shared artifact services. Office generation requires Python 3.12+ with its dependencies and DSH_OFFICE_PYTHON configured; media rendering requires Chromium, and local ASR additionally requires whisper.cpp and a model.
Roland0511/dsh-marktext★ 416
WYSIWYG Markdown editor in the DSH right sidebar, built on MarkText's muya engine: open a .md file, edit it as a rendered document, and save back through ctx.fs with a version guard.
PerryLink/dsh-industry-research★ 227
Deterministic industry research reports for DeepSeek Harness — company and industry research flows produce structured, verifiable reports from staged evidence.
joeseesun/qiaomu-ui-learn-dsh★ 99
Browse UI design references and interaction examples, take design quizzes, and export learning notes as Markdown.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.