frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: Bash is All You Need for a language model REPL

https://github.com/cloudkj/llayer
1•cloudkj•1h ago
I’ve recently just started tinkering with using local large language models, focusing on simple, low-dependency CLI setups. I ended up going down a bit of a rabbit hole: I wanted to see if I could build a functional model interaction REPL using exclusively standard command-line building blocks.

I tried to abide by the Unix philosophy, breaking the REPL into the composition of a few small, single-purpose program. Because the data flow is just text streams fed through pipes, at any step you can inject tools to inspect or modify the data—like using `grep` to filter out strings before they hit the model, or `pv` to benchmark model throughput. Everything is ultimately tied together into an `agent` Bash script that codifies the interaction into a REPL. To my surprise, this setup seemed to be sufficient to get a working “agent” that largely resembles ones built by more complex frameworks.

One motivation I have for sharing this here is to embed some semi-rhetorical questions: is that really all there is to a “modern agent”? Are the frameworks and libraries being tossed around overly complex and we really just need to keep it simpler?

A few more details of potential interest:

- Zero heavy dependencies: No `pip`, `npm`, package managers, virtual environments, etc. It just requires `bash`, `jq`, and `curl` to talk to the local model server. These should be available in most modern CLI environments.

- Transparent, file-based state: The agent's memory is just an append-only `.jsonl` file (like `.bash_history`). If you want to rewind the agent's memory, you just run head on the log to drop the last few lines.

- Standard exit codes for control flow: Tool execution is handled by checking standard Unix exit codes within a basic bash while loop.

I suspect there are scaling limits to doing this all in shell, and I'm still figuring out the most elegant way to handle some of the edge cases, particularly around tool calling - but those appear to mostly be limitations of the underlying models. Nevertheless it's been a really fun experiment in stripping out bloat, and as I mentioned above, somewhat surprising at least from a neophyte perspective.

Would love to hear thoughts and comments, particularly around the limitations to this orchestration and what features are otherwise missing due to bypassing the popular frameworks and libraries.

Meta's non-invasive BCI still isn't great

https://www.theregister.com/offbeat/2026/06/30/metas-non-surgical-mind-reading-machine-improves-o...
1•simojo•11s ago•0 comments

Can a $60 Plastic Cube Solve Our Screen-Time Crisis?

https://www.wsj.com/tech/personal-tech/brick-smartphone-screen-time-6dd4fe69
1•fortran77•16s ago•1 comments

LLMs as 5x Faster Sandboxes

https://github.com/experientiallabs/world-model-harness
1•SilenN•42s ago•1 comments

Show HN: Paneflow – cross-platform GPUI app for parallel coding agents

https://github.com/ArthurDEV44/paneflow
1•arthurjean•42s ago•0 comments

How Credit Cards Make Money

https://www.bitsaboutmoney.com/archive/how-credit-cards-make-money/
1•jimsojim•58s ago•0 comments

Anthropic has embedded hidden spyware-like code in Claude Code

https://twitter.com/IntCyberDigest/status/2071971609183678544
1•kyokoL•1m ago•1 comments

Reducing Feedback Latency with Local CI for Developers and AI Agents

https://www.moderntreasury.com/journal/reducing-feedback-latency-with-local-ci-for-developers-and...
2•mattmarcus•1m ago•0 comments

Tenor GIF API shuts down today

https://support.google.com/tenor/answer/10455265?hl=en
1•ChrisArchitect•1m ago•0 comments

Show HN: A statically typed, cross-platform, easily bootstrappable build system

https://github.com/rochus-keller/BUSY/
1•Rochus•1m ago•0 comments

Scientists estimate there could be 20M species, triple what was thought

https://english.elpais.com/science-tech/2026-06-30/earths-hidden-insects-scientists-estimate-ther...
1•geox•3m ago•0 comments

UC Berkeley quantum processor to be buried for US 250th

https://news.berkeley.edu/2026/06/30/uc-berkeley-quantum-computing-chip-to-be-buried-in-national-...
1•simojo•3m ago•0 comments

Group Note Draft: W3C Standards Vulnerability Disclosure and Handling Proces

https://www.w3.org/news/2026/group-note-draft-w3c-standards-vulnerability-disclosure-handling-pro...
1•jruohonen•3m ago•0 comments

Building a PS1 style retro 3D renderer (2021)

https://www.david-colson.com/2021/11/30/ps1-style-renderer.html
1•Tomte•4m ago•0 comments

OpenAI launched strongest new models

https://www.superhuman.ai/p/openai-launched-strongest-new-models
2•Cyrus2050•6m ago•0 comments

SpaceX may donate stock to Trump's savings accounts for kids

https://arstechnica.com/tech-policy/2026/06/spacex-may-donate-stock-to-trumps-savings-accounts-fo...
1•andsoitis•7m ago•1 comments

The AI boom is colliding with a new threat: weather

https://www.cnbc.com/2026/06/29/ai-data-centers-heatwave-climate-risk-weather.html
1•1vuio0pswjnm7•8m ago•0 comments

Agriculture is ready for AI, but its data isn't

https://www.technologyreview.com/2026/06/30/1139513/agriculture-is-ready-for-ai-but-its-data-isnt/
1•Brajeshwar•8m ago•0 comments

UATC – A Closed-Loop Controller to Prevent GPU OOM During LLM Training

https://github.com/sajjaddoda72-design/UATC
1•L_u_u_6•8m ago•0 comments

Wallabag.it will fund development work contributed back to wallabag

https://wallabag.it/en/blog/2026/06/30/wallabag-it-funds-open-source-development/
1•raybb•8m ago•0 comments

Run Any Dockerfile on Vercel

https://vercel.com/blog/dockerfile-on-vercel
1•thesurlydev•9m ago•0 comments

Walter Mosley: "A Novel is Not a Machine"

https://lithub.com/walter-mosley-a-novel-is-not-a-machine/
1•bookofjoe•9m ago•0 comments

Claude Code Anti-China tracker: verification report

https://gist.github.com/AdnaneKhan/0a0edb5620d5214282ef4027caad8950
1•king_zee•9m ago•0 comments

HTML is all you need

https://12gramsofcarbon.com/p/agentics-html-is-all-you-need-for
3•theahura•9m ago•0 comments

Etched has officially come out of stealth

https://www.bloomberg.com/news/articles/2026-06-30/ai-chip-startup-etched-says-jane-street-tsmc-l...
2•seventeen29•9m ago•0 comments

What is Blockchain: a Gentle Introduction [pdf]

https://www.researchgate.net/publication/311572122_What_is_Blockchain_a_Gentle_Introduction
1•thunderbong•10m ago•0 comments

Show HN: Webbynode – An observatory built from 700 fresh cloud deployments

https://webbynode.com/articles/we-started-webbynode-to-benchmark-cloud-providers-it-ended-up-beco...
1•gsgreen•10m ago•0 comments

EU commissioners shut down air conditioning for employees, leave theirs on

https://www.politico.eu/article/eu-commission-heatwave-hq-forced-shut-down-air-conditioning-europe/
11•spwa4•10m ago•0 comments

Tengu Decoded: what the Claude Code binary does

https://github.com/wtfwhs/tengu-decoded
1•wtfwhs•11m ago•0 comments

Show HN: Diskly – fast and beautiful macOS disk usage visualizer

https://github.com/noxan/diskly
1•noxan•12m ago•0 comments

Big loads offgrid with a small battery (sidelined)

https://joeyh.name/blog/entry/big_loads_offgrid_with_a_small_battery_sidelined/
1•edward•13m ago•0 comments