Live data from Hacker News

Show HN: Docx-CLI: agents read/edit Word docs using 1/2 the time and tokens

github.com

11–20 of 37 posts

Re: Show HN: Docx-CLI: agents read/edit Word docs using 1/2 the time and tokens

#11
post #5

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.

you've never dealt with ooxml.

Re: Show HN: Docx-CLI: agents read/edit Word docs using 1/2 the time and tokens

#12

Nice — CLI-first for document tooling is underrated. How are you handling embedded images in the XML? That was a pain point when I was parsing OOXML in a different context.

If the reader needs the images, there's an explicit extract command that gets them into a folder. If the writer needs to update them, there's and explicit replace command and insert commands for that purpose. It all has to go into the relationship files of course.

Re: Show HN: Docx-CLI: agents read/edit Word docs using 1/2 the time and tokens

#13
post #5

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.

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.

Re: Show HN: Docx-CLI: agents read/edit Word docs using 1/2 the time and tokens

#14
post #3

Very cool. So much of the 'capability overhang' of AI can be addressed with tools like this--data manipulation etc without LLMs having to galaxy brain everything in token space

Yeah, I agree. Working on something like this for PDFs.

Re: Show HN: Docx-CLI: agents read/edit Word docs using 1/2 the time and tokens

#17
I know that the office suite format is a relic which is hard to get rid of. But I can't help feeling that in these new AI era, that we should focus on leaving that proprietary format behind.

It is one of the biggest facilitator of vendor lock in in the history of computing.

Re: Show HN: Docx-CLI: agents read/edit Word docs using 1/2 the time and tokens

#18

I originally started this project just to build a TA agent for a professor who didn't have any TAs (my wife). So as you can imagine, it was critical that it could properly write comments and only edit with track edits mode on... and do all of this without accidentally breaking the structure of the doc that couldn't be read. It's since then expanded to cover everything from editing tables, hyperlinks, footnotes, and a…

[dead]

Re: Show HN: Docx-CLI: agents read/edit Word docs using 1/2 the time and tokens

#20
post #5

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.

you've never dealt with ooxml.

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.
Post reply on HN