Remix.run Logo
IceWreck 5 hours 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.

kkukshtel 4 hours ago | parent | next [-]

This is a really interesting idea. I wonder if something like Luau would be a good solution here - it's a typed version of Lua meant for sandboxing (built for Roblox scripting) that has a lot of guardrails on it.

https://luau.org/

JohnMakin 3 hours ago | parent | prev | next [-]

They use bash in ways a human never would, and it seems very intuitive for them.

Spivak 44 minutes ago | parent [-]

If you present most LLM's with a run_python tool it won't realize that it can access a standard Linux userspace with it even if it's explicitly detailed. But spiritually the same tool called run_shell it will use correctly.

Gotta work with what's in the training data I suppose.

0x457 4 minutes ago | parent [-]

There are a lot of shellscripts holding this world together out there.

simonw 4 hours ago | parent | prev | next [-]

Being unchanged for decades means that the training data should provide great results even for the smaller models.

wild_egg 4 hours ago | parent | prev | next [-]

Agents really do not care at all how "nice" a language is. You only need to be picky with language if a human is going to be working with the code. I get the impression that is not the use case here though

Bolwin 2 hours ago | parent | prev | next [-]

I've had LLMs write some pretty complex powershell on the fly. Still a shell language but a lot nicer.

Ideally something like nushell but they don't know that well

andrewingram 3 hours ago | parent | prev | next [-]

just-bash comes with Python installed, so in a way that's what this has done. I've used this for some prototypes with AI tools (via bash-tool), can't really productionise it in our current setup, but it worked very well and was undeniably pretty cool.

inetknght 4 hours ago | parent | prev | next [-]

Bash is ubiquitous and is not going away any time soon. Nothing is stopping you from doing the same thing with your favorite language.

sheept 4 hours ago | parent | prev | next [-]

I feel like Deno would be perfect for this because it already has a permissions model enforced by the runtime

tosh 3 hours ago | parent | prev [-]

At least for me codex seems to write way more python than bash for general purpose stuff