upvote
I noticed that overzealous restrictions are often the cause of this behavior. Agents have even less tolerance for random bullshit between them and their goal than people, and if you don't nudge them towards the right way of doing something, they'll find or make a way on their own. It's difficult for me to be upset about it, because it's precisely what I value the agents most for.
reply
Interesting point.

But I really, really don't want agents to look into my ~/.ssh, and I don't see any way to do this without "overzealous restrictions".

reply
don't give them physical access to you ~/.ssh.... spend 600$ and buy a mac mini for them and give them their own ~/.ssh folder
reply
> spend 600$ and buy a mac mini for them

Anachronistic, no? I assumed everyone else was using containers or VMs for this basic level of isolation.

Watching subagents disrespect guardrails and executing python scripts and scanning my SSH keys is exactly what pushed me to never trust an agent harness again.

reply
Well, I'm renting out cloud time to do this, but yeah, that's what I do.

It does feel like a slightly overzealous restriction, though.

reply
Well I think the hard part you're running up against here is right now almost nothing has a consistent notion of an action.

E.g. bash is turing complete, so trying to bound it is a very complex problem! Meanwhile high XX% of what you want a coding agent to do in bash can be bounded by piped configurations of sed awk and grep.

Unbounded agents are interesting with a HITL, but for fully autonomous agents my perspective is it's your job as a developer to specify the action space with a more restricted set of typed actions, the granularity of which may be very different depending on the task.

E.g. there is a curve between (single agent, bag of tools, compaction) -> (micro actions, highly parameterized tools, bounded contexts and nesting) where micro actions may be

"Given a social security number, full name"

  -> ask for account number

  -> ask for routing number

  -> ask for 2FA

  -> ask for recovery questions

  --> (requires account, routing, 2FA | recovery) ask for recipient account number

  --> (requires account, routing, 2FA | recovery, recipient account) ask for recipient routing number

and most existing implementations are closer to the former than the latter, or an explicit chain of arbitrarily bounded actions rather than a dynamic configuration of the action space.
reply
Sed alone is already scary enough
reply
I had a small version of this. I've got a hook that stops Claude editing one data file and points it at a script instead, and it mostly listens, but every so often it just writes the file from bash via python.
reply
My guess is that long term we will block agents from using bash. They will get a very limited set of carefully crafted primitives.
reply
This is the wrong approach. Sandbox them enough that you are comfortable with letting them run with full permissions.

My sandbox runs rootless and doesn't have `sudo` either. In addition to bash, the agent is free to install anything it needs via npm or pip, or to write its own scripts.

It doesn't have my signing keys so detecting unauthorized commits is trivial.

reply
Will we also block them from running programs they have written? Because if we don't, they don't need bash. And if we do, they can't run tests.
reply
We will probably end up needing LLM specific languages, so yeah.
reply
[dead]
reply