Catalog PyPI
PACKAGE EXPLORERView in registry

agent-markitdown

PyPI

Safe local document-to-markdown preprocessing for OpenClaw, Claude Code, Codex, Hermes, and other agents.

agentsclaude-codecodexdocxmarkdownopenclawpdf
Versions collected1
Direct dependencies4From release 0.1.1
Last observed20 Oct, 22:39 UTC

README

Version 0.1.1 documentation

agent-markitdown

CI Release

Safe local document-to-markdown preprocessing for agents.

Built for OpenClaw first, but intentionally usable from Claude Code, Codex, Hermes Agent, and anything else that can run a local CLI or Python package.

What it is

agent-markitdown wraps Microsoft's excellent markitdown with an agent-oriented safety and workflow layer:

  • local files only
  • convert_local() only
  • plugins off by default
  • extension allowlist
  • size guardrail
  • deterministic JSON output
  • extraction warnings when markdown may be incomplete
  • review-pack generation for LLM handoff

Why this exists

Raw file uploads are awkward for agent workflows.

For supported document types, agents usually work better when they receive clean markdown instead of a binary attachment or a heavyweight vision/PDF pass.

That means:

  • lower context overhead
  • easier quoting and summarization
  • better portability across agent runtimes
  • safer, narrower preprocessing than raw markitdown convert()

What it is not

This package does not magically patch every agent runtime on earth.

It gives you a safe preprocessing layer plus integration assets. Each host agent still needs a tiny adapter or instruction layer telling it to run agent-markitdown before review.

OpenClaw gets a ready-made skill. Other agents get drop-in snippets.

Status

  • GitHub repo: live
  • CI/release workflows: included
  • PyPI publish path: ready once a token or trusted publisher is configured

Installation

uv venv .venv
uv pip install --python .venv/bin/python .
# or with test/dev dependencies
uv pip install --python .venv/bin/python '.[dev]'

Or from PyPI later:

pip install agent-markitdown

CLI

Convert one file to stdout

agent-markitdown convert ./report.pdf

Convert and emit JSON

agent-markitdown convert ./report.docx --json

JSON output includes a warnings array. It is empty for ordinary text extraction, and it calls out cases where the markdown should not be treated as complete, such as very low extracted text or image inputs that may need OCR/vision review.

Write sidecar markdown files

agent-markitdown convert ./report.pdf ./notes.docx --sidecar

Build one review bundle for an agent

agent-markitdown review-pack ./report.pdf ./notes.docx -o review-pack.md

Health check

agent-markitdown doctor

Supported extensions

  • .pdf
  • .docx
  • .pptx
  • .xlsx
  • .xls
  • .html, .htm
  • .csv, .tsv
  • .json, .xml
  • .txt, .md, .rtf
  • .epub
  • .jpg, .jpeg, .png, .gif, .bmp, .tif, .tiff, .webp

OpenClaw

See integrations/openclaw/SKILL.md.

That skill tells OpenClaw to preprocess supported uploaded documents into markdown before deeper review/summarization work.

Install the OpenClaw skill into a workspace:

./scripts/install-openclaw-skill.sh

Other agents

For copyable host-side patterns, see:

Security stance

This package intentionally avoids the broadest markitdown surfaces.

  • no remote URLs
  • no convert()
  • no plugins unless explicitly enabled
  • no ZIP traversal support
  • explicit extension allowlist
  • configurable size cap
  • warnings for low-text extraction and image inputs that may need OCR/vision

If you're handling untrusted uploads in a server context, keep validating paths and storing uploads in a controlled temp area. This package narrows the blast radius; it does not replace sane host hygiene.

Release flow

  • CI runs on push/PR
  • release workflow runs on v* tags
  • tagged releases build wheel + sdist and attach them to a GitHub release
  • PyPI publish is attempted automatically when either:
    • PYPI_API_TOKEN repo secret exists, or
    • PYPI_TRUSTED_PUBLISHING=true repo variable is set and PyPI trusted publishing is configured

See docs/publishing.md and docs/release-checklist.md.

Attribution

This project depends on and is inspired by Microsoft's markitdown, which is MIT licensed.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.120 Jun 20264

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
tgambit65/agent-markitdown

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:39 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:d41c15a1a92a553aeb684db5ae65df52e8e4fcd41b665115e14f5db780fb463f