Re:Show HN: Docx-CLI: agents read/edit Word docs using 1/2 t...
by rubyfan on Tuesday July 07, 2026 @03:20PM
(#48822404)
I haven’t looked under the hood here but to make simple text replacement via command line is an LLM even required? A human driven command line tool to do basic substitution on batches of files reliably would be amazing.
[ Parent
| on HN ]
Re:Show HN: Docx-CLI: agents read/edit Word docs using 1/2 t...
by BorisMelnik on Tuesday July 07, 2026 @03:27PM
(#48822501)
there is a python library for docx handling. my thinking was the use case for this was for larger scale automations / document processing.
Re:Show HN: Docx-CLI: agents read/edit Word docs using 1/2 t...
by asdff on Tuesday July 07, 2026 @04:44PM
(#48823480)
sed, awk. docx is just zipped xml.
Re:Show HN: Docx-CLI: agents read/edit Word docs using 1/2 t...
by phil-martin on Tuesday July 07, 2026 @09:39PM
(#48826430)
It is just zipped xml, but to do a search and replace while retaining document structure is very very complicated, and I’m struggling to think of how to combine sed and awk to achieve it.
Re:Show HN: Docx-CLI: agents read/edit Word docs using 1/2 t...
by cyanydeez on Tuesday July 07, 2026 @05:00PM
(#48823672)
you've never dealt with ooxml.
Re:Show HN: Docx-CLI: agents read/edit Word docs using 1/2 t...
by rubyfan on Tuesday July 07, 2026 @06:46PM
(#48825045)
Sadly I have spent lots of time with ooxml and pdf and my experience suggests there really aren’t reliable means for dealing with seemingly simple changes.
Re:Show HN: Docx-CLI: agents read/edit Word docs using 1/2 t...
by kirillklimuk on Tuesday July 07, 2026 @05:20PM
(#48823961)
Not really - if you wanna do a text replacement you can extract it yourself and do some work (or just use this CLI).
The library is designed for longer workloads.