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/
8•kamaludu•1h 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•10h ago
Why is this flagged?
dang•1h 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•1h 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•23m 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!

kamaludu•31m 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)

Microsoft Bought a Nuclear Plant

https://moai.studio/blog/posts/microsoft-bought-a-nuke-plant.html
1•ionwake•30s ago•0 comments

France Is Too Hot for Shutters and Ceiling Fans

https://www.theatlantic.com/ideas/2026/06/france-air-conditioning-failure/687723/
1•paulpauper•1m ago•0 comments

Higher Ed Is Sorry

https://www.theatlantic.com/ideas/2026/06/higher-education-universities-public-trust/687714/
1•paulpauper•1m ago•0 comments

Show HN: Drift, write LLM agents in English and transpile to async Python

https://github.com/rileyq7/drift
1•rileyq12•3m ago•0 comments

The Memory Tax

https://bycig.substack.com/p/the-memory-tax
1•paulpauper•3m ago•0 comments

Token Capital Efficiency

https://kmad.ai/Token-Capital-Efficiency
1•kmad•6m ago•0 comments

Utility boss warns US faces blackouts due to power supply shortfall

https://www.ft.com/content/14d2e591-7cd5-4456-904f-1b7fdc5cbc1a
1•Geekette•6m ago•2 comments

Mel Brooks is 100 today

https://www.theatlantic.com/culture/2026/06/long-live-mel-brooks/687730/
3•shellback3•7m ago•0 comments

I made a tool to check out open source websites

https://github.com/Frenxys/portfolio-finder
1•Frenea•8m ago•0 comments

Visual Basic on the PC with Windows 3.1

https://stonetools.ghost.io/visualbasic-win31/
1•TMWNN•11m ago•0 comments

Rats and mice are mutating and becoming resistant to poison, researchers warn

https://www.independent.co.uk/news/world/americas/rats-mice-mutating-poison-resistance-warning-b3...
1•Vaslo•15m ago•0 comments

Show HN: NameSnag – Get alerted when a watched domain appears available

https://namesnag.io
1•pro_methe5•18m ago•0 comments

Strong Relationships, Loosely Held

https://www.jerry.wtf/posts/strong-relationships-loosely-held/
2•personjerry•19m ago•0 comments

There are 5.7M more childless women of prime child-bearing age than expected

https://carsey.unh.edu/publication/factors-contributing-demographic-cliff-more-us-women-childbear...
2•loughnane•23m ago•1 comments

My First Encounter with a Political Spambot

https://tombedor.dev/political-spam/
2•jjfoooo4•23m ago•0 comments

Question: Is matching fixed regexes with back-references in P?

https://branchfree.org/2019/04/04/question-is-matching-fixed-regexes-with-back-references-in-p/
1•fanf2•25m ago•0 comments

Ask HN: Books about Genetic Algorithms

5•andyjohnson0•27m ago•1 comments

POSIX Is Not a Shell

https://alganet.github.io/blog/2026-06-28-12-POSIX-Is-Not-A-Shell.html
2•gaigalas•28m ago•0 comments

Show HN: I reverse-engineered the RLF log format used by REMUS underwater drones

https://github.com/isaacgerg/remus-rlf-reader
1•ipunchghosts•29m ago•0 comments

Technology and Power

https://www.chrbutler.com/technology-and-power
3•delaugust•29m ago•0 comments

Attention is all we have: A conjectural theory of cognitive inequality

https://davidbessis.substack.com/p/attention-is-all-we-have
3•Luc•33m ago•0 comments

Startup Wants to Sell a U.S.-Built Tiny Truck for $21,500

https://www.roadandtrack.com/news/a71667299/reo-industries-runabout-aims-to-simplify-the-truck-ma...
2•rmason•36m ago•1 comments

Claude Code now uses dark UI patterns to gain Google account access via MCP

https://claude.com/docs/connectors/google/gmail
2•janpeuker•37m ago•1 comments

Duolicious – Open-source dating app

https://github.com/duolicious/duolicious
5•nietzscheese•38m ago•0 comments

The Last Museum: a search site for museum art

https://lastmuseum.com/
2•ohjeez•39m ago•0 comments

Why the Metaverse Failed

https://josh.earth/posts/metaverse-failed
4•joshmarinacci•40m ago•1 comments

Ask HN: What do SRE do at your company?

2•petemc_•42m ago•0 comments

Evolving Thoughts on AI in 2026

https://chriskiehl.com/article/evolving-thoughts-on-ai-2026
1•goostavos•49m ago•1 comments

Show HN: Gotaper – A minimalist, journal-inspired race planner for athletes

https://gotaper.app/
1•ezeoleaf•49m ago•0 comments

Ablo – The collaboration layer for AI agents

https://github.com/Abloatai/ablo
1•luckymonkybaby•57m ago•0 comments