frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: Bash4LLM+ – A lightweight, dependency-free Bash wrapper for LLM APIs

https://github.com/kamaludu/bash4llm/
12•kamaludu•2h ago
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 "explains the command: ls -l" | ./bash4llm

Comments

ifh-hn•11h ago
Why is this flagged?
dang•2h ago
The text got classified as genai, which is not allowed on HN itself - see https://news.ycombinator.com/newsguidelines.html#generated and https://news.ycombinator.com/item?id=47340079.

We invited the user to rewrite it and I've moved that text to the top now, and re-upped the post so it gets its full time on /newest.

Chu4eeno•2h ago
You really should either just write it manually, or at least clean it up, 5kLOC of bash for POSTing and reading/writing files is a bit overkill (the code is extremely repetitive, verbose and just hard to follow).
kamaludu•1h ago
Yes, the code is big and bulky, i know. But i am a single person, not a team. I write simple and clear for me, because i need to mantain it. Only Bash, zero dependencies, i like this.

thank you for your comment!

Tiberium•34m ago
> I write

You mean the LLM writes the code based on your instructions (that's fine, I guess, but 5KLOC is huge for this kind of script).

SupLockDef•30m ago
Why are you posting this if you know it is of poor quality then?

It's certainly not because you are proud of yourself, it has been generated.

So I genuinely wonder why?

porridgeraisin•6m ago
I agree. What is with the random precore/core stuff anyways. But on the flip side, this thing seems to be doing a lot. I chugged through a couple thousand lines and there seems to be some amount of context management, I saw mentions of a history file, attachments, etc.
kamaludu•1h ago
well, i write Bash4LLM to be:

. Portable - You need only: bash, coreutils, findutils, util-linux, gawk, curl, jq. No Python (slow), no Node (heavy), no Golang (need too many binaries, one for each OS, hard to maintain for one single person like me).

. Single file - only one. I write many extras, but all are optional.

. Idempotent - you copy it where you want and go!

. Transparent - open the file and read.

. Extras for all, and all optional: help file, extra providers, improved session engine, small GUI/CGI, etc...

Default (embedded) provider is Groq, because when I start the project, was the best free API service for AI.

I'm ready to answer to your question... with my terrible english...

Cristian (kamaludu)

dezgeg•32m ago
Have you actually tested the portability? MacOS ships an ancient bash version and neither mac or BSDs use GNU version of coreutils.

I'm also very doubtful performance of this would be faster than python, bash is very slow.

GLM 5.2 beats Claude in our benchmarks

https://semgrep.dev/blog/2026/we-have-mythos-at-home-glm-52-beats-claude-in-our-cyber-benchmarks/
174•jms703•4h ago•50 comments

I used Claude Code to get a second opinion on my MRI

https://antoine.fi/mri-analysis-using-claude-code-opus
256•engmarketer•5h ago•363 comments

5k menus from the New York Public Library’s Buttolph Collection (1880-1920)

https://pudding.cool/2026/06/menu-story/
292•xbryanx•7h ago•78 comments

Historical memory prices 1960-2026

https://dam.stanford.edu/memory-prices.html
75•vga1•3h ago•23 comments

TOP500 at ISC’26: We have a New Number 1 Supercomputer

https://chipsandcheese.com/p/top500-at-isc26-we-have-a-new-number
38•rbanffy•2h ago•24 comments

Librepods: AirPods liberated

https://github.com/librepods-org/librepods
176•rbanffy•3h ago•55 comments

The Boeing 747 begins its final descent

https://www.theatlantic.com/magazine/2026/07/boeing-747-retirement/687304/
103•dbl000•3d ago•105 comments

Working around dragons with the Lemote Yeeloong laptop and OpenBSD

http://oldvcr.blogspot.com/2026/06/working-around-dragons-with-lemote.html
76•zdw•4h ago•13 comments

Professor denounces mass AI fraud on an exam at Brown

https://english.elpais.com/education/2026-06-28/ai-fraud-at-brown-university-academic-integrity-i...
70•geox•5h ago•60 comments

Show HN: NanoEuler – GPT-2 scale model in pure C/CUDA from scratch

https://github.com/JustVugg/nanoeuler
22•vforno•2h ago•3 comments

Show HN: Bash4LLM+ – A lightweight, dependency-free Bash wrapper for LLM APIs

https://github.com/kamaludu/bash4llm/
12•kamaludu•2h ago•9 comments

Tokenmaxxing is dead, long live tokenmaxxing

https://12gramsofcarbon.com/p/agentics-tech-things-tokenmaxxing
84•theahura•5h ago•102 comments

Show HN: Zanagrams

https://zanagrams.com/
119•pompomsheep•6h ago•41 comments

Daisugi, the Japanese technique of growing trees out of other trees (2020)

https://www.openculture.com/2020/10/daisugi.html
85•MaysonL•5h ago•28 comments

Examining circuit boards from the Space Shuttle's I/O Processor

https://www.righto.com/2026/06/space-shuttle-io-processor-boards.html
69•pwg•5h ago•13 comments

Computer-Aided Language Development in Nonspeaking Children (1968) [pdf]

https://archive.org/details/colby1968-computer-aided-language-development-in-non-speaking-children
13•dang•2h ago•1 comments

Staying Awake (2008)

https://harpers.org/archive/2008/02/staying-awake/
6•NaOH•3d ago•1 comments

Show HN: DRM-Free Books

https://frequal.com/Perspectives/DrmFreeAuthors.html
44•TeaVMFan•4h ago•20 comments

The US Used to Demand the Best Tech. Now We Ban It

https://www.pcmag.com/opinions/the-us-used-to-demand-the-best-tech-now-we-ban-it
76•mwexler•2h ago•57 comments

Do LLMs pass the mirror test?

https://blog.pascalschuster.de/article/do-llms-pass-the-mirror-test
13•thepasch•2h ago•7 comments

A way to exclude sensitive files issue still open for OpenAI Codex

https://github.com/openai/codex/issues/2847
166•pikseladam•9h ago•110 comments

The curious case of the disappearing Polish S (2015)

https://aresluna.org/the-curious-case-of-the-disappearing-polish-s/
193•colinprince•9h ago•63 comments

British Origami: the 1955 exhibition by Akira Yoshizawa

https://www.britishorigami.org/cp-lister-list/the-1955-exhibition-by-akira-yoshizawa/
9•dang•2h ago•1 comments

The MUMPS 76 Primer – anniversary edition

https://github.com/rochus-keller/MUMPS/blob/main/docs/MUMPS_Primer.adoc
62•Rochus•9h ago•28 comments

The KIDS Act would require age checks to get online

https://www.eff.org/deeplinks/2026/06/kids-act-would-require-age-checks-get-online
224•bilsbie•10h ago•206 comments

EU to legislate about Chat Control behind closed doors

https://www.patrick-breyer.de/en/double-threat-to-private-communications-undemocratic-chat-contro...
546•NeutralForest•7h ago•308 comments

More evidence is consistent with possible ancient life on Mars (2025)

https://www.cbc.ca/radio/quirks/more-evidence-of-life-on-mars-but-still-no-life-1.7649645
45•pseudolus•10h ago•60 comments

Programmable Probabilistic Computer with 1M p-bits

https://arxiv.org/abs/2606.25313
38•rbanffy•6h ago•0 comments

Marfa Public Radio Puts You to Sleep

https://www.marfapublicradio.org/podcast/marfa-public-radio-puts-you-to-sleep
377•reaperducer•19h ago•116 comments

Michigan bill would bar employers from requiring after-hours coms with workers

https://www.cbsnews.com/detroit/news/workplace-boundaries-act-employees-after-hours/
216•cebert•7h ago•153 comments