Hacker News new | ask | show | jobs
by andunie 97 days ago
I don't understand why no one has tried to make a harness without full shell access yet.

It would be so much safer.

4 comments

Is that the harness' job? It seems to me the best place for sandboxing is at the OS level (i.e. running the harness inside a container with correct access configured).
I would argue that it is the harness's job... Certainly for any harness which is targeting an end user.

They don't sell cars without seat belts, and it is the car manufacturer who has to do it.

Also, small nitpick but technically a container doesn't give full isolation compared to something like a VM.

Ok that's fair if it's targeting a non-technical audience.

But I think this will eventually be a problem solved at the OS level in a more streamlined way. I.e. there will be fine-grained permissions you need to approve to give an agent access to the system.

You want both. The harness and the sandbox do different things.

The harness says "You have access to tool X, Y, and Z, but not A, B, C".

The sandbox says "If you try to use X to access a forbidden resource, I'll prevent you from reaching it".

I haven't tried this but sounds like https://github.com/cloudflare/cloudflare-os ?
That exist?

"permission": { "bash": "deny" }

Or something equivalent in any agentic editor of your choice.

What does that achieve if the agent can still run processes on the host system?
what do you mean? the agent can't do it anymore if there's no bash permission
sandboxing?
That's what I though. I've got a harness that uses landlock. Might not be perfect, but should be good enough for almost all cases.