Introduction¶
Inducing agents to produce Office documents within DeepSeek Harness (DSH) typically relies on external services, Python runtimes, or leaving content in chat for manual copy-pasting. These paths often require internet connectivity and additional deployment, or make it difficult to locally verify whether files are genuinely generated and structurally complete.
dsh-crawshrimp-office (Zhuashaxiao Office plugin) brings Word and PowerPoint generation, text extraction, and OOXML validation into the DSH plugin format. It produces real .docx and .pptx files within a configured workspace without calling Zhuashaxiao APIs, shared connectors, or model services, and requires no Python or Zhuashaxiao backend. The following sections describe its positioning, capabilities, and installation usage.
What is this?¶
dsh-crawshrimp-office is a DSH client-side plugin released by the maintainer howtimeschange, designed for local, reviewable small-scale Word and PowerPoint workflows. In short: it registers 7 tools in DSH for generating DOCX/PPTX, converting Markdown to DOCX, reading plain text from documents, inspecting OOXML ZIP structures, and validating against expected text or quantities.
The plugin is searchable in the SkillHub Plugin Directory; source code and documentation are on GitHub. The current release tag is v0.2.0, and the license is MIT.
Core Features¶
The plugin registers the following 7 tools (write operations follow native DSH permissions; read-only tools do not require approval):
| Tool | Purpose |
|---|---|
crawshrimp_office_word_create |
Generate DOCX with headings, paragraphs, and simple string tables |
crawshrimp_office_word_read |
Extract capped plain text from existing DOCX |
crawshrimp_office_slides_create |
Generate PPTX consisting of title pages and heading/bullet pages |
crawshrimp_office_inspect |
Inspect OOXML ZIP structure, entry metadata, and counts of DOCX/PPTX |
crawshrimp_office_word_from_markdown |
Convert capped Markdown headings, paragraphs, lists, and simple tables to DOCX |
crawshrimp_office_slides_read |
Read capped plain text for each page of a PPTX without decoding media |
crawshrimp_office_validate |
Validate required parts of DOCX/PPTX and optional expected text, table counts, or slide counts |
Regarding security and file writing: all filenames must be relative paths within the workspace; the plugin resolves real paths, rejects directory traversal and symlink escapes, does not overwrite existing outputs, and writes to a temporary file first before atomic, non-overwriting persistence.
Markdown conversion supports headings, paragraphs, ordered/unordered lists, blockquotes, fenced code (preserved as plain text), and simple pipe tables; inline emphasis and links are flattened to text. HTML is stripped and returns a warning; image and media syntax preserve alt text and return a warning. The plugin does not fetch or embed external media, nor does it execute HTML.
The implementation scope is generation, reading, and structural validation of OOXML packages: it does not convert to PDF/PNG, does not run LibreOffice, and involves no office_run, Office COM, macros, formulas, charts, media decoding, or arbitrary Python execution. Successful generation returns visualReview: "not_rendered".
It can be installed independently alongside the sibling Browser and Data packages. PDF, labels, templates, and rendering are on the Office roadmap and are not implemented in 0.2.0.
Installation and Activation¶
Environment requirements:
- Node.js
^22.19.0 || >=24.0.0 - Verified DSH
0.2.1-alpha.4(engines.dshinpackage.jsonis>=0.2.1-alpha.4 <0.2.1-alpha.5)
Install the current tag v0.2.0 via the DSH official plugin loader from GitHub:
dsh plugin --profile demo add -w github:howtimeschange/dsh-crawshrimp-office#v0.2.0
-w indicates adding the plugin to the profile workspace. The installer reads dsh.bundle.patch in package.json and automatically loads cordis.patch.yml.
By default, the plugin uses ./crawshrimp-office-output as the workspace. You can specify a dedicated directory before starting the profile:
export CRAWSHRIMP_OFFICE_WORKSPACE="$HOME/crawshrimp-office-output"
If the host needs to embed the plugin directly, the full module namespace can be loaded to allow Cordis to register both apply and tool schemas simultaneously:
import * as office from 'dsh-crawshrimp-office'
await ctx.plugin(office, { workspaceDir: './crawshrimp-office-output' })
Write calls use the host’s native DSH permission signals; the plugin has no separate configuration to bypass native approval. Default limits include: 16 MiB per input file, 16 MiB per generated file, 512 KiB for Markdown input, 128 KiB for text extraction, and caps on the number of paragraphs, tables, and slides. These can be adjusted within defined bounds via workspaceDir, maxInputBytes, maxOutputBytes, maxTextBytes, and maxMarkdownBytes in the plugin configuration.
Typical Usage¶
Once installed, DSH can be used to orchestrate local tasks with natural language, such as using crawshrimp_office_word_from_markdown to save a weekly report as reports/weekly.docx, and then using crawshrimp_office_validate to check if it contains “Weekly Summary”. Tools can also be called directly; the repository contains files like examples/word-from-markdown.json providing sample parameters.
Generate Word with structured fields:
{
"filename": "reports/brief.docx",
"title": "Weekly brief",
"paragraphs": ["A short, reviewable summary."],
"tables": [{
"headers": ["Metric", "Value"],
"rows": [["Orders", "12"]]
}]
}
Generate Word from Markdown:
{
"filename": "reports/weekly.docx",
"title": "Weekly brief",
"markdown": "# Weekly brief\n\n- Orders: 12\n- Returns: 1\n\n| Metric | Value |\n| --- | --- |\n| Conversion | 4.2% |"
}
Generate PPTX:
{
"filename": "reports/launch-plan.pptx",
"title": "Launch plan",
"slides": [{
"heading": "Milestones",
"bullets": ["Design", "Review"]
}]
}
crawshrimp_office_slides_read returns slideCount and capped text for each page. crawshrimp_office_validate returns valid: false if expected text or quantities are not met; corrupted ZIPs, missing required OOXML parts, invalid XML, and DTD/entity declarations are returned as tool errors.
Use Cases and Notes¶
This plugin is suitable for locally generating meeting minutes, weekly reports, short proposals, and simple presentations within DSH sessions, as well as performing structural or keyword validation on generated results. Files remain in the workspace for easy human verification.
The plugin runs with the permissions of the current DSH process. You should review the Source Repository and the MIT license before installing. It does not edit complex formatting in existing Office documents, nor does it replace PDF export or visual review; when you need to know if it “looks correct,” you still need to open the file locally with Office or other tools.
The DSH ecosystem emphasizes “everything is a plugin”; SkillHub is a community directory site with no official affiliation with DeepSeek / High-Flyer.
Conclusion¶
dsh-crawshrimp-office integrates Word/PowerPoint generation, Markdown-to-DOCX conversion, page-by-page PPT text reading, and OOXML validation into DSH. It operates independently, persists files to the workspace, and does not depend on the Zhuashaxiao backend. For trial usage or version checks, please refer to the directory page howtimeschange/dsh-crawshrimp-office and GitHub howtimeschange/dsh-crawshrimp-office.