A Comma and a Question Mark, Redux: Quick Terminal Helpers Using Pi
z3ugma.github.ioRémi here, really cool! It kind of turned into a rabbit hole on my end: https://github.com/rlouf/sigil
Nice ideas! I've been using the `?` shortcut in atuin [0] which accomplishes the same sort of thing, but these days also has access to an Agent-like experience which allows me to prompt something like "Conventional Commit message for unstaged changes" and it will call `git diff` (after asking permission, of course) and then generate the commit message.
[0] https://atuin.sh
Can you use any API like openai or openrouter with atuin?
Not currently, but we've been discussing how best to implement BYOK and BYOM setups
I have something similar, but it's a shell command which writes the command into a file then runs `print -z "$(cat /tmp/command.txt)"`, which prints the command directly to the command line input, so there's no copy paste step needed, it's just ready for me to hit enter (or adjust as needed). It's been wonderful!
llm-cmd-comp is the best of these types of tools.
"The comma is slightly safe..."
Lol! Good acknowledgement of the safety situation there. I suppose you might remember what the command and flags mean once you see them, but if not then you are blindly trusting the that the LLM isn't going to do anything bad to your machine
I've been using something like this with shelloracle
Nifty! What pi extensions provide the batch web fetch?
I had pi wrote its own and it uses Tavily under the good
very cool, indeed