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

People are turning punctuation into magic buttons, and the comments are obsessed

TLDR: One user turned a comma and a question mark into quick artificial intelligence shortcuts for terminal tasks and answers, with a safety step before anything runs. Commenters loved the idea but instantly made it competitive, arguing their own tools already do it better, faster, or with fewer clicks.

A terminal user posted a delightfully simple trick: type a comma plus a plain-English request like “find the 5 largest files,” and an artificial intelligence helper suggests a command, copies it to the clipboard, and waits for you to approve it. Type a question mark and you get a quick answer right in the same black-and-white text window. It’s basically punctuation cosplay as a personal assistant — and the crowd immediately turned the comments into a full-on gadget showdown.

The loudest reaction was basically, “Cute, but I already have my own version.” One commenter jumped in to say Atuin already does the question-mark trick and even goes further, offering an assistant-like feature that can inspect your unfinished work and draft a polished commit message. Another casually dropped “I’ve been using something like this” with shelloracle, while yet another bragged that they’d already removed the copy-paste step entirely so the suggested command appears directly on the command line “ready for me to hit enter.” Translation: the vibe was less “wow, impossible!” and more “welcome to the club, pal.”

Then came the mini celebrity cameo: Rémi Louf himself popped up to say the whole thing had become a “rabbit hole” and linked his own project, sigil. And of course, no internet thread is complete without a best-in-show argument — one commenter declared “llm-cmd-comp is the best” like they were dropping the final word in a kitchen-appliance feud. So yes, the article is about clever shortcuts, but the real story is the comments section turning one tiny punctuation hack into a battle of who built the slickest lazy-person superpower.

Key Points

  • The article describes a terminal setup where `, <description>` generates a shell command and `? <question>` returns a quick AI answer.
  • The author adapted the idea from Rémi Louf’s shell workflow but used Pi and OpenRouter instead of a local Qwen model via llama.cpp.
  • The comma shortcut returns one suggested shell command, copies it to the clipboard with `pbcopy`, and leaves execution to the user.
  • The implementation is a small zsh script in `~/.dotfiles/bin/` that uses a strict system prompt to force raw single-line command output.
  • A separate `q` script uses Pi with a limited toolset, including web and file-reading tools, to answer short questions inside the terminal.

Hottest takes

"Conventional Commit message for unstaged changes" — sync
"It’s been wonderful!" — chrisshroba
"llm-cmd-comp is the best" — foobarqux
Made with <3 by @siedrix and @shesho from CDMX. Powered by Forge&Hive.