Show HN: Prompting LLMs in Bash scripts
6 comments
·February 27, 2025wunderwuzzi23
Beware of ANSI escape codes where the LLM might hijack your terminal, aka Terminal DiLLMa.
https://embracethered.com/blog/posts/2024/terminal-dillmas-p...
thephyber
Are there any projects to sanitize the output of LLMs before it is injected into Bash scripts or other source code?
I get the feeling this will start to break into the OWASP Top 10 in the next few years…
jmholla
While on the topic, does anybody have a good utility to sanitize things? I'm imagining something I can pipe to:
xclip -selection clipboard -o | sanitize
I've been meaning to throw something together myself, but I worry I'd miss something.TheDong
I feel like the incumbent for running llm prompts, including locally, on the cli is llm: https://github.com/simonw/llm?tab=readme-ov-file#installing-...
How does this compare?
zoobab
Did a similar curl script to ask questions to Llama3 hosted at Duckduckgo:
null
https://github.com/elijah-potter/ofc