Hacker News new | ask | show | jobs
by danavar 352 days ago
Is there a way to instantly, quickly prompt it in the terminal, without loading the full UI? Just to get a short response without filling the terminal page.

like to just get a short response - for simple things like "what's a nm and grep command to find this symbol in these 3 folders". I use gemini alot for this type of thing already

Or would that have to be a custom prompt I write?

4 comments

I use `mods` for this https://github.com/charmbracelet/mods

other people use simon willison's `llm` tool https://github.com/simonw/llm

Both allow you to switch between models, send short prompts from a CLI, optionally attach some context. I prefer mods because it's an easier install and I never need to worry about Python envs and other insanity.

Didn't know about mods, looks awesome.
-p is your friend
And if prompt is too long for -p due to shell arg limits, pipe into stdio instead
If you uv install llm Then grab my shelllm scripts github.com/irthomasthomas/shelllm and source them in your terminal then you can use premade prompt functions like shelp "what's a nm and grep command to find this symbol in these 3 folders" -m gemini-pro

There's also wrappers that place the command directly in your terminal prompt if you run shelp-c

The link you have posted 404’s and I could seem to find a command like that in your repos. Can you be more specific?
Sorry, the function is in here and it's called shelp https://github.com/irthomasthomas/shelllm.sh/blob/main/shell...
gemini --prompt "Hello"