Hacker News new | ask | show | jobs
by dofm 13 days ago
Could you clarify the security situation here?

It seems from the documentation that you're using something homegrown to stop tools accessing files outside the project directory, but maybe not doing anything to stop shell commands doing so?

Is there seatbelt support here or are you expecting users to sandbox localcode itself using seatbelt commands?

2 comments

Hey so I just added Seatbelt in the latest release, as well as a bunch of other stuff like importing MCPs and Skills from Codex and Claude Code + experimental feature to control with your iPhone.

Would love to know what you think..

Release overview vid: https://mjwsolo.github.io/localcode/demo/localcode-release.m...

uv pip install -U localcode

Thanks for the question - it's a good one and you're mostly right. There's no seatbelt support today in localcode.

- File tools: reading or writing outside the project asks for approval.

- Shell commands: before a command runs it's parsed for the paths it mentions, and anything outside the project asks the same way. That only catches paths written in the command itself though, a script or python -c can still reach anything your user account can.

- So the prompts are a guard against mistakes, not a security boundary per se.

If you want a real boundary today, run localcode inside sandbox-exec or a VM.

Proper seatbelt support for shell commands is a good shout though, just created an issue for it https://github.com/mjwsolo/localcode/issues/254.

Would you use it if it were on by default?

This was flagged and dead, likely because it seems like it’s AI written, but I vouched since you are OP.

Don’t submit comments written by AI. It’s against the site rules.

I’m not going to vouch your other comments that were flagged. Write new comments yourself.

Thanks for vouching, noted re site rules!
I wish you would vouch them if they are by the OP.
> Would you use it if it were on by default?

I would possibly test it, though as with others, I have a fairly modular approach so it's not quite what I am looking for.

For the agentic stuff I am teaching myself, I usually run whatever inference server makes most sense on my old M1 Max, with an agent (mostly Pi at the moment) inside a full linux VM or container, and lately Paseo as a desktop app, because that setup is closest to a cloud-VM-plus-openrouter-LLM situation I may need in future.

But I like the freedom of being able to chop and change these pieces around, and for the most part, Unsloth is doing for me what your app would do (inference server with a side of chat).

I don't know if I would necessarily wed myself to a particular agent at this point, not least because e.g. Muse Glimmer and Qwen 3.8 27B seem to have slightly different needs in terms of tools.