docx-cli: A CLI tool enabling AI agents to edit Word documents with full format fidelity
docx-cli is a command-line tool built for AI agents (like Claude and Codex) to read, edit, and comment on .docx Word documents while preserving full formatting fidelity. Instead of having AI agents manually manipulate OOXML (the underlying XML of .docx files) — which is error-prone, token-intensive, and often produces corrupted files — docx-cli provides a plain command interface plus an annotated Markdown read view. This allows AI agents to perform document tasks (filling NDAs, suggesting redlines, leaving comments) without reasoning about XML. The tool was validated through a controlled A/B bake-off comparing it against the default OOXML approach across six real document tasks.
Key quotes
The default way agents edit Word docs is to unzip the .docx and hand-write the OOXML inside. That takes a strong model to get right, burns tokens, and routinely produces a file Word won't open.
docx-cli hands the agent plain commands plus an annotated-Markdown read view, so it never has to reason about the XML.
We measured it — a controlled A/B bake-off: six real document tasks (fill an NDA...)
You might also wanna read
Doco: AI Writing Assistant Integrated into Microsoft Word
Doco is an AI writing assistant integrated into Microsoft Word, combining features from Grammarly, Cursor, and Co-Pilot to enhance structure
Doco: AI Writing Assistant Integrated into Microsoft Word
Doco is an AI writing assistant integrated directly into Microsoft Word that combines features from Grammarly, Cursor, and Co-Pilot, optimiz
Doccupine: Open-Source AI-Ready Documentation Platform for Markdown/MDX Files
Doccupine is an open-source documentation platform that converts Markdown or MDX files into formatted documentation. It supports bringing yo

OfficeCLI Gives AI Agents a Local Handle on Word, Excel and PowerPoint
Praxim: AI-Powered Document Editing Tool for Microsoft Word
Praxim is an AI-powered editing tool for Microsoft Word that enables users to make document-wide edits through simple prompts, eliminating t

Comments
Sign in to join the conversation.
No comments yet. Be the first.