Show HN: A DOCX editing library inspired by Rosyln's syntax trees github.com · 2...
Show HN @show
Show HN: A DOCX editing library inspired by Rosyln's syntax trees github.com · 2 points · 0 comments · HN thread
TL;DR docxtor is a Show HN project: a TypeScript library and CLI for editing Word .docx files in place, producing native tracked changes and anchored comments, designed for AI agents. It patches the underlying XML rather than regenerating the file, and ships as an agent skill for Claude, Codex, Cursor, Gemini CLI and Copilot. The post has 2 points and no comments.
- Edits are applied as targeted patches to the document XML, so formatting, styles, numbering, headers, footers and tables outside the edited regions are preserved.
- The CLI offers view, revisions, replace, comment, edit, accept/reject and metadata commands; replace and edit write tracked changes by default.
- The library uses a read-only normalized AST with xmlRef pointers, projects it to Markdown or JSON for models, and applies 23 patch types with atomic batch execution.
- The authors report a benchmark (docx-agent-bench, 7 tasks, 2 runs each, Claude Haiku 5.5 and Opus 5.5) where agents with the skill were about 40% faster in median time with zero tool errors, with all grader-correct runs matching the no-plugin baseline.
- Known limitations include no merged cells, images, new style creation, document comparison, or equations, and library-level comment reading is not supported.
Discussion The thread has no comments yet, so there is no community discussion to summarize. The submission sits at 2 points and has not drawn attention beyond its initial posting.