rong-coder/dsh-office-tool

Plugin插件 Native原生 ⭐ 6 MIT Docs & Writing文档与写作UI & Themes界面与主题

dsh 插件,适用于 DeepSeek Harness:为智能体提供完整的 Office 文档工具(通过 OfficeCLI 创建/读取/编辑 .docx/.xlsx/.pptx 文件),并通过 dsh-better-sidebar 在 dsh 网页侧边栏中实现高保真文档预览。

Project Overview项目介绍

dsh-office-tool is a native DSH plugin built exclusively for DeepSeek Harness, that extends the agent’s capabilities to work with three common Office document formats: .docx, .xlsx, and .pptx. It enables the agent to create, read, query, and edit these files by driving the open source OfficeCLI binary, and integrates with dsh-better-sidebar to add high-fidelity in-document previews directly in the DSH web sidebar. It uses OfficeCLI’s built-in HTML rendering engine to generate previews, so no local installation of Microsoft Office is required for any of its features. To install it via the DSH CLI, you run dsh plugin --profile web add dsh-office-tool after installing dsh-better-sidebar, then restart dsh web and hard-refresh your browser.

This plugin exposes 9 distinct tools for the LLM agent to use, covering the entire command surface of OfficeCLI. All operations return structured JSON envelopes that indicate whether the operation succeeded or failed, with detailed error codes and troubleshooting suggestions surfaced directly to the model. It works correctly in both headless DSH profiles and web-based DSH profiles; only the preview features require the DSH web server to be running. When the agent edits an open document, the dedicated Office Preview tab automatically refreshes the preview via SSE to show the latest changes.

Before you install this plugin, you need to have a working DSH installation that supports plugins, an active DSH profile, and the OfficeCLI binary installed and available on your system path, or you can specify its absolute path in the plugin configuration. The plugin is open source under the permissive MIT license, and you can configure multiple settings including the OfficeCLI path, operation timeout, maximum output size, and preview behavior. It has a few small known limitations: screenshot previews require a headless browser installed on your host machine, and only edits made via OfficeCLI trigger automatic preview refreshes. Documents with math formulas need network access to render, but documents without formulas work fully offline.

这是一款原生的DeepSeek Harness(DSH)插件,专门为DSH开发,为DSH智能代理提供了完整的Office文档处理能力,支持创建、读取、查询和编辑.docx、.xlsx、.pptx三种常用格式的Office文档。它依赖开源的OfficeCLI二进制文件处理文档,通过dsh-better-sidebar支持在DSH网页侧边栏中预览文档内容,不需要在本地安装微软Office即可正常工作。

该插件提供了9个面向模型的工具,覆盖了OfficeCLI的全部命令集,所有操作都会返回结构化的JSON结果,会将错误码和处理提示返回给模型供其处理。它支持无界面的无头模式运行,不需要DSH的Web界面即可工作,配合DSH的Web配置文件使用时,还会提供一个专门的「Office预览」标签页,支持在代理编辑文档时实时刷新预览内容。

安装使用该插件需要提前安装好DSH,配置好系统路径中的OfficeCLI二进制文件,或在插件配置中指定其路径,如果需要预览功能还需要安装dsh-better-sidebar。该插件是基于MIT许可证的开源项目,支持自定义二进制路径、超时时间和输出限制,已知存在一些限制,比如截图预览需要额外安装无头浏览器。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 6 stars - very few users, little community feedback星标只有 6,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add dsh-better-sidebar

把 rong-coder/dsh-office-tool 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-office-tool

License: MIT TypeScript Node

A DeepSeek Harness (dsh) plugin that gives the agent complete Office document capabilities — create, read, query, and edit .docx / .xlsx / .pptx — by driving the OfficeCLI binary, plus in-document preview in the dsh web sidebar through dsh-better-sidebar.

Everything renders with OfficeCLI's built-in high-fidelity HTML engine, so the agent and the user can see the document (via the sidebar preview) instead of guessing from the DOM — no Microsoft Office required.


Features

  • 9 model-facing tools (office_create / get / query / set / add / remove / view / batch + office_cli passthrough), covering the full OfficeCLI command surface (move/swap/merge/dump/import/validate/raw/… via office_cli).
  • Structured --json envelopes everywhere — success {success, data} / failure {success:false, error:{code, suggestion}}, with OfficeCLI's self-healing error codes surfaced to the model.
  • Sidebar preview: opening a .docx / .xlsx / .pptx in better-sidebar renders it with OfficeCLI's HTML engine in an iframe (auto-reloads when the file changes). A dedicated 「Office 预览」tab runs officecli watch for live SSE-refreshing preview while the agent edits.
  • Works headless too: the tools activate in any profile (no web UI needed); only the preview routes wait for a web server.

Prerequisites

  • dsh installed and a working profile (the web profile for preview).
  • OfficeCLI binary available (officecli install, or any PATH install). The plugin fails loud at load if it cannot resolve the binary.
  • For the sidebar preview: dsh-better-sidebar installed in the same profile.

Install

# into your web profile (requires dsh-better-sidebar for the preview)
dsh plugin --profile web add dsh-better-sidebar
dsh plugin --profile web add dsh-office-tool

# restart `dsh web`, then hard-refresh the browser (Cmd/Ctrl+Shift+R)

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev deepseek-harness-dsh-for-vscode 下一个 Next dsh-tool-todo-tree →