rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:AlbertZJ/dsh-markitdown
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
中文 | Microsoft MarkItDown integration for DeepSeek Harness (dsh).
Convert PDF, Office, HTML, images, audio and more to Markdown through
model-facing tools — no MCP, no bundled binaries. The plugin drives the
markitdown Python package
(python -m markitdown) in whichever Python interpreter you configure.
markitdown_check — probes the configured interpreter and reports the
installed MarkItDown version (plus LLM-helper readiness when configured),
or the exact setup command when something is missing.markitdown_convert — converts one source or a batch to Markdown:path: one absolute local file path or an http(s) URL (e.g. a
YouTube link with the [all] extra installed);paths: batch of up to 16 paths/URLs, per-source failures captured;stdinBase64: canonical base64 bytes via MarkItDown stdin (requires
extensionHint/mimeHint);extensionHint (-x, also admits unlisted local
extensions), mimeHint (-m), charsetHint (-c), keepDataUris; URL
sources are downloaded with connection-pinned egress validation (the
address that is checked is the address that is connected to — no
DNS-rebinding gap) and converted from the downloaded bytes; loopback,
private and link-local targets are refused unless allowPrivateUrls;output writes the single-source result to a file, outputDir writes
<name>.md per source; otherwise Markdown comes back inline.read_image) and ask follow-up questions instead of trusting
a one-shot description. With output the images go to a sibling
<name>.media/ directory and links are relative; with outputDir each
<name>.media/ sits beside its Markdown; inline conversions use a temp
directory referenced absolutely. No model or API key is involved.apiKeyEnv
reference and the environment variable remain as fallbacks. Ships the
python/llm_convert.py helper and requires the openai package for
descriptions only. DOCX gets extra handling because markitdown 0.1.x never
sends Word images to the LLM: the helper unpacks word/media in document
order, exports (and, when enabled, describes) each image once, and replaces
the placeholders in place. Descriptions run at temperature=0, must
transcribe verbatim, mark unreadable text and undeterminable senders instead
of guessing, and name the source part for later inspection.markitdown skill — bundled workflow (environment check → convert →
report caveats) with per-format expectations and known limitations.Supported local inputs: PDF, DOCX/DOC, PPTX/PPT, XLSX/XLS, CSV, JSON, XML,
HTML/HTM, EPUB, MD, Outlook MSG, ZIP (contained files converted in place),
JPG/JPEG/PNG/GIF/TIFF/BMP (EXIF, OCR when available), WAV/MP3 (transcription,
needs the [all] extra).
Prerequisite: Python with MarkItDown installed in it:
python -m pip install 'markitdown[all]'
Install the plugin into dsh from the Git repository (any profile's Plugins page → install from source, or the equivalent CLI command):
github:AlbertZJ/dsh-markitdown
All fields are optional; the defaults work when python on PATH has the
package.
- name: 'dsh-markitdown'
config:
# Python interpreter running `-m markitdown`. On Windows where only the
# launcher exists, use `py` or an absolute path, e.g.
# C:/Users/you/AppData/Local/Programs/Python/Python312/python.exe
command: python
timeoutMs: 60000 # per-conversion deadline
maxInputBytes: 52428800 # 50 MiB source limit
maxOutputBytes: 8388608 # 8 MiB captured-output cap (process is killed past it)
# Optional: keep all reads and writes inside one workspace. Paths are
# resolved with symlinks followed and must stay under this root.
# allowedRoot: D:/work/documents
# Optional: LLM-assisted conversion (LLM-described embedded images).
# Requires `pip install openai`. Configure providers and keys on the
# Settings → MarkItDown page; the fields below are the profile storage
# it writes (active provider + one profile per provider).
# llmProvider: deepseek
# llmProviders:
# openai: { baseUrl: https://api.openai.com/v1, model: gpt-4o, apiKeyEnv: OPENAI_API_KEY }
# deepseek: { baseUrl: https://api.deepseek.com/v1, model: deepseek-chat, apiKeyEnv: DEEPSEEK_API_KEY }
# custom: { baseUrl: https://api.example.com/v1, model: my-model, apiKeyEnv: MARKITDOWN_API_KEY }
# Legacy single-provider fields, used only when llmProvider is unset:
# llmModel: gpt-4o
# llmBaseUrl: https://api.deepseek.com/v1
# llmApiKeyEnv: OPENAI_API_KEY
# Have the active model describe each exported DOCX image (default off;
# images are always exported and linked either way). Toggle it on the
# Settings → MarkItDown page.
# describeImages: false
# Allow URL sources in LLM mode (default off: internal content must not
# leave the host through the LLM API).
# llmAllowUrls: false
# Permit third-party MarkItDown converter plugins (CLI -p); default off.
# allowPlugins: false
# Allow URL sources resolving to loopback/private/link-local addresses
# (default off; SSRF guard for URL conversion).
# allowPrivateUrls: false
pnpm install
pnpm run build
pnpm run verify # structural checks (package, patch, skills, lib, locale)
verify.mjs needs no dependencies and also runs in CI on every push.
<name>.media/ beside the Markdown) and linked by path;
inline conversions export to a temp directory that the OS may clean up, so
pass output/outputDir when the images should persist. With
allowedRoot set, inline conversions keep the data URIs rather than writing
outside the workspace.read_image) instead of trusting the description.markitdown_check and follow its setup guidance.MIT. MarkItDown itself is MIT-licensed by Microsoft and is not bundled — install it into your Python environment as above.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek、deepseek-harness。