Yeah I tweaked the prompt to make it work reasonably well. There is also an experimental mode where it can reason and correct the command if it fails. Feel free to sent a PR!
It's a re-invention really.
Essentially you do (assuming zsh)
$ source how.sh
Then you type your thing at the shell $ add a user bob using modern homectl methods
Then you (in the default, CTRL+X+H) and it does this $ add a user bob using modern homectl methods ... (name of your default model)
... a few seconds pass ...
$ sudo homectl create-user bob
Then you can choose to press enter and run it.https://github.com/kristopolous/how.sh
This is a much more one-and-done approach but 99% of the time I just forget invocation syntax - I'm not actually exploring things deeply.
If you want a "proper" pr, it'd really be a rewrite with two "frontends" - your conversational edit flow and my keystroke invoke.
Honestly they're probably different things.