News for hackers. Stuff that matters.
Re:Show HN: WTFfmpeg by vasco on Wednesday July 23, 2025 @01:38AM (#44656010)
All cli programs (or shell itself) should soon have:

- argument syntax autocorrect

- natural language arguments instead of the actual ones should be accepted

- whenever there's an error executing, instead of just erroring out, the error should go through an LLM and output a proper explanation plus suggested fix

Doing command by command seems the wrong way about it though.

Re:Show HN: WTFfmpeg by cryptonym on Wednesday July 23, 2025 @02:45AM (#44656367)
Having a fuzzy interpretation of configuration, and fuzzy input/output, on something designed for repeatable tasks? This doesn't sound like a great idea.

If you really want to LLM everything, I'd rather have a dedicated flag that provides correction/explanation of args while doing a dry-run. And another to analyze error messages.

Re:Show HN: WTFfmpeg by vasco on Wednesday July 23, 2025 @03:39AM (#44656679)
I'm not saying if its a good idea or not, I'm saying it's my prediction of what will happen. Nobody will use old style terminals in a few years where you need to type exactly, is my prediction.
Re:Show HN: WTFfmpeg by reed1 on Wednesday July 23, 2025 @02:17AM (#44656187)
This is what agent do, aichat [1] can do this. What you want is a wrapper for it to pipe the result back to LLM and make sure the command succeeded.

[1] https://github.com/sigoden/aichat

Re:Show HN: WTFfmpeg by yreg on Wednesday July 23, 2025 @02:21AM (#44656206)
It would be insanity for every cli tool to wrap its own llama.cpp

There are plenty of terminal apps with this functionality, e.g. https://www.warp.dev/

Re:Show HN: WTFfmpeg by sovietswag on Wednesday July 23, 2025 @01:41AM (#44656024)
Lollll ‘dd’ with autocorrect will be a hoot
Re:Show HN: WTFfmpeg by vasco on Wednesday July 23, 2025 @01:45AM (#44656040)
Will be much useful than now, obviously it doesn't run it for you.
Re:Show HN: WTFfmpeg by darkwater on Wednesday July 23, 2025 @03:18AM (#44656563)
How so? A potentially highly destructive command like `dd` (it can literally destroy all your local data in seconds) should be either touched with lot of care and having an idea of what you are doing, or not touched at all. Like some heavy machinery or a scalpel.
Re:Show HN: WTFfmpeg by vasco on Wednesday July 23, 2025 @09:52AM (#44659242)
Sure, but I'm pretty sure people will still do it.
Re:Show HN: WTFfmpeg by darkwater on Wednesday July 23, 2025 @11:31AM (#44660345)
Yes, but I would not put it in the hand of a robot that might stab you with said scalpel one thousand times per second in the neck.