Comment by gaigalas

3 days 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.

I would not over-read into that doc. In practice, the only missing stuff are extreme edge cases of the type that is actually not consistent between other implementations of bash.

In practice it works great. I haven't seen a failed command in a while

[Disclaimer: I made the thing]

  • I gave it a shot. Failed with a simple `> /dev/null` redirection. LLMs do that a lot.

    Good luck with the project! I'm sure it will get there.

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.

  • Why do you think there is a lot of training data? Could it be because it's stable and virtually unchanged for decades? Hmmm.

    • 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.

      7 replies →

Incompatibilities don't matter much provided your error messages are actionable - an LLM can hit a problem, read the error message and try again. They'll also remember that solution for the rest of that session.

  • I don't think the current incompatibilities can be worked around.

    Also, huge waste of tokens. And the waste is not even worth it, the sandbox seems insufficient.

    Again, good luck to the developers. I just don't think it's ready.