alt.hn

5/25/2026 at 7:14:45 PM

A Comma and a Question Mark, Redux: Quick Terminal Helpers Using Pi

https://z3ugma.github.io/2026/05/25/a-comma-and-a-question-mark/

by z3ugma

5/27/2026 at 5:50:48 PM

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

by sync

5/27/2026 at 6:55:08 PM

Can you use any API like openai or openrouter with atuin?

by brunoqc

5/27/2026 at 7:50:21 PM

Not currently, but we've been discussing how best to implement BYOK and BYOM setups

by BinaryMuse

5/27/2026 at 6:29:16 PM

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!

by chrisshroba

5/28/2026 at 1:19:05 PM

"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

by krupan

5/27/2026 at 6:27:26 PM

I've been using something like this with shelloracle

by guluarte

5/28/2026 at 1:32:00 AM

Nifty! What pi extensions provide the batch web fetch?

by gcr

5/28/2026 at 8:42:50 PM

I had pi wrote its own and it uses Tavily under the good

by z3ugma

5/27/2026 at 9:21:37 PM

very cool, indeed

by christoff12