DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Plugin Office Markdown — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins
P

dsh-plugin-office-markdown

Plugin Office Markdown

DeepSeek Harness (DSH) bundle plugin: before the model reads Office / PDF files in the workspace, it automatically converts them to Markdown using Microsoft MarkItDown. The converted result is written beside the source file, so only a .md path enters the context. The output is preserved in full, nev

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:Z8906/dsh-plugin-office-markdown#1dca6df128466f591d7ab3108a98c7e7655443a1
READMECompatibilityVersions

Description

DeepSeek Harness (DSH) bundle plugin: before the model reads Office / PDF files in the workspace, it automatically converts them to Markdown using Microsoft MarkItDown. The converted result is written beside the source file, so only a .md path enters the context. The output is preserved in full, never truncated, while also returning byte count, line count, token estimate, and a heading structure index, along with a reading strategy of “inspect the structure first, then use grep to locate content”; supports batch-converting multiple files or an entire directory in a single call. The built-in settings page can check the local Python environment, configure or uninstall MarkItDown with one click as needed, and directly test-convert a file to confirm that the conversion pipeline works. When uninstalling this plugin in DSH, it will also clean up the Python environment it has recorded.

Compatibility and provenance

Plugin Office Markdown is published as dsh-plugin-office-markdown and currently resolves to version 1.2.2. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
github
Registry updated
10/5/2026

Versions

1.2.2stable
10/5/2026
1.2.1stable
10/2/2026

Related plugins

Loading related plugins…

Latest
1.2.2
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
web
License
MIT
Source
github
GitHub
★ 1
Weekly downloads
0
Last push
10/5/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in productivity-workflow.

Acp App@deepseek-ai/dsh-acp-appThe dsh ACP profile bundle: automation-only JSON-RPC stdio and process lifecycle over dsh-baseExperimental Schedule Bundle@deepseek-ai/dsh-experimental-schedule-bundleOptional bundle that adds Schedule, its task page, and time context to the Web compositionAb Ocrdsh-ab-ocr--- description: "The out-of-tree ocr tool: recognizes a scanned PDF or image page by page, merges the pages in order only after the last one, and saves one Markdown document with the heading levels the model decided." kind: "package-reference" ---Deepseek Ipptdeepseek-ipptiPolloWork PPT Studio and its curated slide templates as a native DeepSeek Harness conversation view.

README

dsh-plugin-office-markdown

在 DeepSeek Harness 读取 Office / PDF 之前,先把它们转成 Markdown ——
进入模型上下文的是一个文件路径,而不是整份文件的原始内容。

中文 | English

安装 | 使用 | 转换器 | 文档 | 更新日志


🤖 本项目的代码与文档主要由 AI 生成 —— 由 DeepSeek Harness 里的编码 agent 撰写,经维护者审阅后发布。 配置项、HTTP 路由、转换器链与文件清单等内容都逐项对照过源码;但文档仍可能落后于实现, 或存在表述不准、细节缺失,请以代码为准。详见文末说明。

转换在本机完成,不联网(可选的 MarkItDown 首次下载除外)、不修改原文件、 不消耗 API 额度,插件本身没有任何 npm 依赖。

安装

在 DSH 的 设置 → 插件 → 安装 里填一行,回车,然后重启 DSH。

① 从 npm 安装(推荐) —— npm 上从 1.2.2 起有正式发布:

dsh-plugin-office-markdown

要锁版本就在后面加 @版本:dsh-plugin-office-markdown@<版本>,<版本> 形如 1.2.2。

⚠️ 框里只填包名。 下面那条 dsh plugin … 是终端命令,整行粘进框里不认。

② 从 GitHub 安装 —— npm 不可达时用这条:

github:Z8906/dsh-plugin-office-markdown

要锁 tag 就在末尾加 #<tag>:github:Z8906/dsh-plugin-office-markdown#<tag>, <tag> 形如 v1.2.2(见 Releases)。

③ 离线 / 没有 git —— 用 Releases 里的 .tgz,在安装框里填它的绝对路径; 也可以填本地克隆目录的路径(file: 前缀或绝对路径)。

习惯命令行的话,dsh plugin 会把参数转发给 profile 目录里的 pnpm —— --profile 按你用的是哪个版本填:

# Web 版 DSH
dsh plugin --profile web add dsh-plugin-office-markdown

# 桌面版 DSH(profile 名是 desktop)
dsh plugin --profile desktop add dsh-plugin-office-markdown

⚠️ --profile 必须填你实际在用的那个。 填错不会报错 —— DSH 会按模板新建一个 profile, 插件装进那里,而你的界面读的是另一个,结果「装好了却看不到」。

全部安装方式、手工装法与升级步骤见 安装文档。

升级不要走「卸载 → 重新安装」。 本插件在真正被卸载时会清理它自己登记过的 Python 包 (见 卸载文档),那条路的结果是「插件更新了、Python 环境却没了」。 正确做法:pnpm update dsh-plugin-office-markdown,或在插件市场里点更新, 或直接在安装框里再 add 一次同一个地址。

怎么用

装好之后不需要记命令,直接说「读取并总结这个 xlsx」即可 —— 插件注册的技能会让模型先调用转换工具:

read_office_as_markdown({ path: "报表.xlsx" })

返回值里有转换后 .md 的路径、体积、行数,以及一份结构索引(章节 / 工作表 / 幻灯片的标题与大致行号), 并给出读取建议:先读前 200 行看结构,再用 grep 在同一个 .md 里定位。 产物本身不会被裁剪 —— 交给模型的是一个完整的 Markdown 文件。

工具的其他用法:批量(paths,或把目录交给 path)、只要结构索引(action: "outline", 不触发转换)、清理同一源文件的旧产物(action: "clean",默认先干跑)、查看当前转换器 (action: "status")。全部参数见 使用文档。

转换器

按顺序探测,第一个可用的胜出。下表对照 lib/convert.js:

顺序转换器保真度需要
1uvx markitdown(临时运行)高uv + 网络(首次)
2本机 markitdown 命令高已安装 markitdown
3python -m markitdown高Python + markitdown
4插件内置 Python 兜底(lib/fallback.py)有限任意 Python 3,可选库能提升效果
5插件内置 Node 兜底(lib/fallback-node.js)有限无

第 5 级不需要 Python、也不需要网络:它用 Node 内置的 zlib 直接解析 OOXML (.docx / .xlsx / .pptx 本身就是 zip + xml)。支持 .docx .docm .xlsx .xlsm .pptx .pptm; .pdf 与旧版二进制格式(.doc .xls .ppt)需要 MarkItDown 或第 4 级。

每份产物的第一行记录它是谁转的;命中缓存时插件从这一行读回真实的转换器与保真度, 而不是无条件声称「高保真」:

<!-- dsh-office-markdown converter=python-module fidelity=high at=<时间> srcbytes=<字节数> srchash=<哈希> -->

想要高保真:打开 设置 → Office 转换,点「一键配置 MarkItDown 环境」。 安装脚本不会替你装任何 Python 包,装到哪个解释器由你在页面上选。 细节见 转换器文档。

设置页

设置 → Office 转换 提供:当前转换器、本机 Python 环境探测、一键配置 / 卸载 MarkItDown、 插件登记的环境记录、以及「试转一个文件」(不进模型、不走缓存,直接在本机跑一遍转换链看结果)。

页面上的按钮走插件自己的 HTTP 路由 /office-markdown/api/*,路由清单见 使用文档。

卸载

在 设置 → 插件 里点卸载即可。插件会先确认自己真的被移除(而不是被禁用 / 关闭 / 重启), 再派一个脱离宿主的看门狗进程,把它登记过的 Python 包 pip uninstall 掉。

禁用、关闭、重启都不会触发清理,也不会留下任何常驻进程。 清理范围严格限定在插件自己的环境记录里:DSH 运行时自带的包、被其它组件依赖的包、 以及你自己装的包,一个都不动。细节见 卸载文档。

依赖与兼容

  • Node ≥ 18,只用内置模块(fs / path / os / zlib / crypto / child_process / string_decoder), 0 个 npm 依赖,不需要 npm install。
  • Python 与 MarkItDown 全部可选:两者都没有时走第 5 级 Node 兜底。
  • 除宿主提供的 @deepseek-ai/dsh-tools(用于 defineTool)外,不 import 任何宿主包。
  • 只支持 DeepSeek Harness。profile 没有 webServer 服务时(例如 CLI profile), 设置页不会出现,工具与技能不受影响。

文档

文档内容
安装四种安装方式、手工安装、升级、验证
使用工具参数、技能、read 守卫、设置页、HTTP 路由
转换器转换器链、保真度、多个 Python 环境
配置配置项与默认值(对照 lib/index.js 的 DEFAULTS)
产物与文件.md 放在哪、插件会留下哪些文件
卸载启用 / 禁用 / 卸载与清理范围
故障排查常见现象与处理
开发包内文件、本地开发、发布
更新日志每个版本改了什么

关于本文档

本仓库的 README、docs/、CHANGELOG.md 以及各版本的 Release 说明,主要由 AI 生成 (DeepSeek Harness 里的编码 agent 撰写),由维护者审阅后发布。

其中配置项、HTTP 路由、转换器链、文件清单等内容都逐项对照过源码;但文档仍可能落后于实现, 或存在表述不准、细节缺失之处,请以代码为准。发现问题欢迎提 issue。

文档中不写没有实测依据的数字(例如「能省多少 token」「占用多少内存」)—— 这类断言缺少可复现的测量过程,因此不列出。

许可证

MIT © 2026 dsh-plugin-office-markdown contributors