NHacker Next
  • new
  • past
  • show
  • ask
  • show
  • jobs
  • submit
just-bash: Bash for Agents (github.com)
IceWreck 11 minutes ago [-]
At this point why not make the agents use a restricted subset of python, typescript or lua or something.

Bash has been unchanged for decades but its not a very nice language.

I know pydantic has been experimenting with https://github.com/pydantic/monty (restricted python) and I think Cloudflare and co were experimenting with giving typescript to agents.

huntaub 10 minutes ago [-]
We just released a driver that allows users of just-bash to attach a full Archil file system, synced to S3. This would let you run just-bash in an enrivonment where you don't have a full VM and get high-performance access to data that's in your S3 bucket already to do like greps or edits.

Check it out here: https://www.npmjs.com/package/@archildata/just-bash

Lerc 6 minutes ago [-]
I have been playing around with something like this.

I'm not going for compatibility, but something that is a bit hackable. Deliberately not having /lib /share and /etc to avoid confusion that it might be posix

On neocoties for proof of static hosting

https://lerc.neocities.org

jpitz 12 minutes ago [-]
Just curious: why wouldn't you attack this with a jail?
gaigalas 27 minutes ago [-]
https://github.com/vercel-labs/just-bash/blob/main/src/spec-...

That's a lot of incompatibilities.

LLMs like to use the shell because it's stable and virtually unchanged for decades.

It doesn't need to worry much about versions or whether something is supported or not, it can just assume it is.

Re-implementing bash is a herculean effort. I wish good luck.

esafak 25 minutes ago [-]
No, they use it because there's a lot of training material.

pro-tip: vercel's https://agent-browser.dev/ is a great CLI for agent-based browser automation.

athorax 19 minutes ago [-]
Why do you think there is a lot of training data? Could it be because it's stable and virtually unchanged for decades? Hmmm.
esafak 4 minutes ago [-]
Because bash is everywhere. Stability is a separate concern. And we know this because LLMs routinely generate deprecated code for libraries that change a lot.
gaigalas 21 minutes ago [-]
> No, they use it because there's a lot of training material.

Trained on an interpreter that is stable is virtually unchanged for decades. That's precisely my point.

It was never trained on an incompatible, partial implementation.

> agent-based browser automation

Clearly out of scope. You a bot?

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
Rendered at 15:28:44 GMT+0000 (Coordinated Universal Time) with Vercel.