I'm trying to address this w/ clank.talk: a self-discoverable scripting language for agents that replaces bash with a controlled sandbox environment and strives to be easy for humans to read:
I'm designing this for the student AI infrastructure here at Montana State, to avoid rolling out the current wild-west of local agents to our student body.
This is pretty cool! I can’t help but be really reminded of AppleScript. Was that an inspiration? I’ve always hated AS, but the primary reason was difficulty learning to write it. Readability, I realize, was actually a huge strength.
AppleScript lives again? ;) I think it's an interesting concept, but it's really hard to do right. There are a lot of things that require very careful accounting for even in such a design–I see that you are already blocking access to .git for example, since the agent can drop code there that makes safe-looking commands like git status unsafe. This is definitely something I've been looking at, as well as taint tracking, it's just really hard. Would be interested to see where you take it!