Better HN
topnewbestaskshowjobs
Log inSign up

kirillklimuk

51 karma · joined Mar 2, 2011 (15y ago) · 41 submissions

Submissions

1.

Show HN: Sageling - a local AI agent for Mac, Qwen 3.5 9B in-process via MLX(sageling.ai ↗)

7 points · by kirillklimuk · 3mo ago · 1 comment

comment 4mo ago · link · parent

If your goal is to use less overall tokens to solving a task, then spawning subagents is not the best idea.

Generally, they will have to use more tokens to reach the same outcome, per some research: https://arxiv.org/abs/2604.02460

comment 4mo ago · link · parent

also, batched commands do wonders. if the agent wants to make multiple changes at once, give it the facility to do so. this is done via --batch in the CLI and is especially important since the underlying positional markers shift.

comment 4mo ago · link · parent

Same - but when I did a lot of work with these tools, it became clear to me they're a lot more trained on working with CLIs. There's just much more data available for them to train on.

comment 4mo ago · link · parent

Still working it out as I build more of these CLIs.

That being said:

- every single command you write MUST have a help text. that help text should also tell agents what the easiest path forward it. for example, the locator system in this CLI relies on the positions on paragraphs. these can change after an edit. so I prompt in the help text to use batch edits.

- errors must be clearly marked. for example, if an agent is doing a replace, but the replace comes back with "0 edits made", that's an error. otherwise the agents carry on going on obliviously.

- a lot of the CLI tools decide to use JSON as the default output. I started out that way as well. for agents, that immediately means having to invoke jq or a similar other tool to get it to be understood. the weaker the model, the worse they do on that. I found that providing markdown with annotations beats JSON on most tasks.

- use image reading as a last resort. if it's possible to give the model the information it needs as text, it will do a better job working with it than it will thinking through an image. thus, for this CLI, i do have a render command, but explicitly prompt in the help texts to use it for things that are not obvious from the markdown like layout.

comment 4mo ago · link · parent

fair point! i've got some stats in the body of the github, and a skill that has the eval that i've built for it.

comment 4mo ago · link · parent

Realistically... everyone's using it from students, to lawyers, to academics, and so on and so forth.

And given that LibreOffice and Google Docs are pretty good nowadays and OOXML is an open standard now post the monopoly rulings of the 90s, it's not quite as bad as it used to be.

comment 4mo ago · link · parent

honestly, worth a try! might be easier for the LLMs than authoring CLI commands.

comment 4mo ago · link · parent

That's pretty cool!

comment 4mo ago · link · parent

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

comment 4mo ago · link · parent

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.

comment 4mo ago · link · parent

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.

comment 4mo ago · link · parent

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 lot more. Now it's a pretty powerful tool that can trivially fill out a MNDA form, mark up a contract, author a poetry booklet, and fill out an invoice, which is now the eval suite where the numbers in the title come from.

You might be asking, "why did you do all of this?" Well, I'm building an agent harness for normies that are not gonna know what a token even is but just want their stuff not to take an epoch and a half to run. So I've got to make the tools be MUCH more optimal than they've even been.

I figure putting them out to the community and inviting all of you to help me might be a way to do that =).

14.

Show HN: Docx-CLI: agents read/edit Word docs using 1/2 the time and tokens(github.com ↗)

70 points · by kirillklimuk · 4mo ago · 31 comments

comment 7mo ago · link · parent

Heya folks! I built docx-cli this past weekend because my wife was getting tired of doing repetitive, rubric-based grading. At 20-30 mins a student with ~25 students, this was a lot of work.

So, I came in and told her I'd build a TA agent for her, only to run into Claude mangling a bunch of docs. I did what any engineer would do in this situation: got nerd-sniped into making a tool to edit Word files.

It clicked for me that if I:

1. Made the CLI tool edit in track-changes mode without committing

2. Wrote some fancy commenting across different spans

3. Prevented untouched / unrecognized parts of the doc from being borked

Then it would basically have the same protections we engineers expect from git but for Word files. Nothing mangled, and she was happy to decide which changes to keep.

So I did that and plugged it into my TA agent, and, lo and behold, some good rubric-based grading happened.

And then, as a former founder, I realized that this would actually be good for a bunch of things like contract redlining and so forth, so I decided to share with all y'all. Along the way, I made the tool read things out as markdown (since agents are good at it), and fixed a bunch of edge cases for things like moved tracking changes.

16.

Show HN: Docx-CLI – let agents edit your Word files safely(github.com ↗)

3 points · by kirillklimuk · 7mo ago · 1 comment

comment 5y ago · link · parent

We're building a way for people to build UIs using existing design systems without engineers.

In the past, I've built this in a bespoke way at another company and ran into the problem that I had to also build a bunch of internal tooling to make this useful. Collecting the data was relatively simple, but managing the tooling and making volume changes was not =/

18.

Ask HN: What do you use for audit logging?

2 points · by kirillklimuk · 5y ago · 2 comments

comment 5y ago · link · parent

As someone who used to work at Gusto: Two separate opt-ins are required - one from the employer for adding Truework to their account, one from the employee to share the information for every request.

comment 5y ago · link · parent

Gusto's a great option (I'm a bit biased, having worked there for like 5 years).

comment 11y ago · link · parent

Seems like you won the pot. @vjeux will be giving a bigger talk about it tomorrow and he's the biggest contributor to the css project (https://github.com/facebook/css-layout/graphs/contributors).

22.

Show HN: Quick way to take in all of Reddit's best stories(kirillklimuk.com ↗)

3 points · by kirillklimuk · 12y ago · discuss

23.

News about the News(incube.us ↗)

1 points · by kirillklimuk · 13y ago · discuss

24.

Show HN: CrowdCourse is a Collaborative Education Platform(indiegogo.com ↗)

1 points · by kirillklimuk · 14y ago · discuss

25.

What's This Entrepreneurship?(incube.us ↗)

1 points · by kirillklimuk · 14y ago · discuss

26.

Getting America Back to Work - Permanently(incube.us ↗)

2 points · by kirillklimuk · 14y ago · discuss

27.

Fearing Failure(incube.us ↗)

1 points · by kirillklimuk · 14y ago · discuss

28.

Being Behind Schedule(incube.us ↗)

1 points · by kirillklimuk · 14y ago · discuss

12