nowfound

Dev tools · February 27, 2025

Prompting LLMs in Bash scripts

https://github.com/elijah-potter/ofc

Prompting LLMs in Bash scripts launched on February 27, 2025 with 79 votes, #422 of 5,999 launches that month and more than 95% of that year's launches. The site was still online in September 2026, 1 year on.

Visit elijahpotter.dev ↗Alternativestop 7% of February 2025

In plain words

Prompting LLMs in Bash scripts is a developer tool that enables users to integrate large language models into bash scripts. It provides a straightforward way to call LLMs directly from the command line, making it useful for developers who want to automate tasks or add AI capabilities to shell-based workflows. The tool is designed for developers comfortable working in bash environments who need quick LLM integration without complex setup.

written from the facts on this page · September 2026

From the sources

Of course it's that easy.

I’ve been ex­per­i­ment­ing with us­ing LLMs lo­cally for gen­er­at­ing datasets to test Harper against. I might write a blog post about the tech­nique (which I am grandiosely call­ing “ LLM-assisted fuzzing”), but I’m go­ing to make you wait. I’ve writ­ten a lit­tle tool called ofc that lets you in­sert Ollama into your bash scripts . I think it’s pretty neat, since it (very eas­ily) lets you do some pretty cool things. #!/bin/bash subreddits=( "r/vscode" "r/neovim" "r/wallstreetbets" ) # Loop over each item in the list for subreddit in " ${subreddits[@]} " ; do echo "++++++++ BEGIN $subreddit ++++++++" ofc --system-prompt "Assume the persona of a commenter of $subreddit " "What is your…from elijahpotter.dev

Does a similar job

all alternatives →
  • Bash4LLM+ – A lightweight, dependency-free Bash wrapper for LLM APIsJun 2026 · github.com · ▲60

    Bash4LLM is a single-file Bash wrapper for interacting with LLMs from the terminal. I created it because I wanted something simple that worked without installing Python, Node, or any other runtime. It uses only Bash, curl, and jq. You can send prompts, start a small chat, process files line by line, stream output, and save session metadata in JSON format. I tried to make it safe and predictable: no use of the system /tmp, no use of eval. Groq is supported by default, and other providers can be added with dedicated Bash scripts in the extras/providers/ folder. Example: echo…

  • Ell – A command-line interface for LLMs written in Bash2024 · github.com · ▲214

    Hi HN! I've created a CLI tool called "ell" that allows you to interact with LLMs directly from your terminal. Designed with the Unix philosophy in mind, ell is simple, modular, and extensible. You can easily pipe input and output to integrate with other tools. Its templates and hook-based plugins enable you to customize and extend its functionality to suit any needs. Check out the README for usage instructions and examples. I developed this tool because existing solutions often felt too heavy, with many dependencies, or they weren't friendly to piping and customization. I, on the contrary,…

  • My LLM CLI tool can run tools now, from Python code or plugins2025 · simonwillison.net · ▲529

    LLM 0.26 is out with the biggest new feature since I started the project: support for tools. You can now use the LLM CLI tool—and Python library—to grant LLMs from …

  • AP
    Automatic prompt optimizer for LLMs2023 · promptperfect.jina.ai · ▲126
  • Llm2sh – Translate plain-language requests into shell commands2024 · github.com · ▲67

    This is my take on the common "use llms to generate shell commands" utility. Emphasis is placed on good CLI UX, simplicity, and flexibility. `llm2sh` supports multiple LLM providers and lets LLMs generate multi-command sequences to handle complex tasks. There is also limited support for commands requiring `sudo` and other basic input. I recommend using Groq llama3-70b for day-to-day use. The ultra-low latency is a game-changer - its near-instant responses helps `llm2sh` integrate seamlessly into day-to-day tasks without breaking you out of the 'zone'. For more advanced tasks, swapping to…

  • Recursive LLM Prompts2023 · github.com · ▲97

    I've been playing with the idea of an LLM prompt that causes the model to generate and return a new prompt. https://github.com/andyk/recursive_llm The idea I'm starting with is to implement recursion using English as the programming language and GPT as the runtime. It’s kind of like traditional recursion in code, but instead of having a function that calls itself with a different set of arguments, there is a prompt that returns itself with specific parts updated to reflect the new arguments. Here is a prompt for infinitely generating Fibonacci numbers: > You are a…

Questions this answers

More dev tools this month

the category →
  • /dev/null▲481

    a social network for devs

    Dev tools · 2d ago · dev-null.sh

  • open-source IDE for thoughtful software design. Contribute to devdotfast/whiteboard development by creating an account on GitHub.

    Dev tools · 27d ago · github.com

  • Contribute to reladraw/reladraw development by creating an account on GitHub.

    Dev tools · 25d ago · github.com

  • OpenBot▲362

    Grok Bot alternative: free, local, open-source, multiplayer

    Dev tools · 22d ago · openbot.run

  • Talanoa▲341

    Hi HN, I’m a fullstack developer, and honestly, I’ve lost count of how many side projects I’ve worked on over the years. But one idea kept coming back to me: a different kind of email client. It first came to me in 2014: “What if we could handle emails more like conversations?” Every year, I’d revisit this concept in my “Build Notes.” Ten years later, no one had built exactly what I had in mind — so I finally decided to do it myself. That’s how Talanoa was born. I wanted something focused on people, not timelines. I was tired of marking messages as unread just to remember to reply later, or…

    Dev tools · 20d ago · talanoa.email

  • CoreSpeed▲332

    One MCP for everything your agents need: apps, memory, tools

    Dev tools · 28d ago · corespeed.io

Source: Show HN post ↗

Launched alongside, February 2025

the whole month →
  • Beautiful screen recordings with instant shareable links

    Growth · 2025 · screen.studio

  • Tana▲1,665

    Put your notes to work with voice and AI

    AI · 2025 · tana.inc

  • IG

    I was at FB/Meta from late 2013 to early 2023, mostly working in the compiler/runtime spaces. I got hit in the spring 2023 layoff wave. I immediately started making games in my newfound free time (a lifelong interest, and I even worked in AA(A?) back ca. ~2000), and in October 2023 I stumbled upon the idea of a roguelike pachinko/plinko game inspired by Luck Be A Landlord. Things snowballed quickly, I started talking to publishers, then worked like crazy through all of 2024, almost the hardest I've ever worked in my career, and launched the game in December 2024. It's sold…

    Work · 2025

  • Tanka▲1,410

    AI Messenger with smart reply & long term memory for teams

    AI · 2025 · tanka.ai

  • Tool Finder▲1,327

    Your shortcut to better software

    AI · 2025 · toolfinder.com

  • i wanted to change the habit of reaching for my phone in the morning and doomscrolling away an hour so i built an app to help me. now i have to literally touch grass before accessing my most distracting apps the app is built in swiftui, uses the screen time apis provided by apple and google vision to recognise grass or not i'd love to get your thoughts on the concept.

    Life & fun · 2025 · touchgrass.now