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".
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.
It does feel like a slightly overzealous restriction, though.
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.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.