frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Ask HN: AI Agent and harness containerization/security recommendations

2•dv35z•3h ago
Hello HN crew -

I am seeing the tendency for people to allow AI agents to access local project & user folders, and beyond (operating system files).

I thought to ask the question: How can we best use AI tools safely - where the workflow often runs local system commands and network commands - to protect the integrity of our systems & data AND be easy enough to use productively?

Comment structure idea:

Operating system / Agent harness / Agent / Security strategy & tool stack / Workflow

To give some examples: I am currently using OpenCode (+DeepSeek) on Linux Mint Debian Edition (LMDE), and I notice that the Agent & harness is frequently asking to create files in /tmp/ - I usually forbid this, and instruct it to only use files in the current folder. I would rather that the tool ONLY have access to a given project folder (~/Projects/PROJECT-NAME) in a system-enforced way. However, I see that the agent often wants to run system commands (like `ps` to debug a local dev server, `pandoc` or `ffmpeg` for file conversion, etc). This starts blurring the line - so I'm thinking that in order for the AI agent to be useful, I can consider giving it access to an isolated operating system - leading me to think about Virtual Machines, Docker containers, and so on. That introduces complexity like, "Should I be using shared folders between my system/VM?" etc.

Would love to hear what's been working for you, the "ideal" state, and practically how we can implement it.

I ought to mention that I'm frequently teaching technology (including AI) to somewhat newbies - so I am trying to find that balance, that lets them get easily something done effectively, but gives them security/integrity practices by default starting off, so they don't get into an awful jam ("The AI deleted my project/computer!").

Thanks!

Ask HN: What Are You Working On? (July 2026)

244•david927•1d ago•944 comments

Ask HN: Should I do a CS masters at Cambridge or start as a new grad at Amazon?

13•sspehr•7h ago•62 comments

Ask HN: Add flag for AI-generated articles

1010•levkk•1d ago•438 comments

Ask HN: How do you troubleshoot desktop Linux crashes/freezes?

3•Curiositry•3h ago•1 comments

Ask HN: What are your personal websites?

6•basilikum•2h ago•4 comments

Ask HN: AI Agent and harness containerization/security recommendations

2•dv35z•3h ago•0 comments

Ask HN: What are the best free ePub books to read?

4•smalltorch•1h ago•1 comments

Web Client SDK

2•atoapaymentsapp•4h ago•0 comments

What's the first thing you look up when evaluating a company?

2•salleisha•5h ago•1 comments

Claudio? Why we need and open source Claude

3•torrmal•5h ago•0 comments

Ask HN: What makes someone good at using Claude Code?

3•Paarthmj•6h ago•7 comments

Finitude of Knowledge

2•Abhishek000001•7h ago•1 comments

Ask HN: How do you see 3D Gaussian Splats could be used in industry?

4•jesseandringa•7h ago•0 comments

Tell HN: Staged NPM publishing is awful

3•electrovir•11h ago•0 comments

Ask HN: Does appearance matter more than we admit as founders?

5•jmaha•5h ago•6 comments

Ask HN: How do you use Vim in the era of AI?

48•rstagi•3d ago•95 comments

Ask HN: How do you use LLMs for private discussions?

11•emerongi•1d ago•14 comments

Let's talk about: LinkedIn ghost jobs

14•xvxvx•1d ago•6 comments

Ask HN: Why isn't Google indexing information about the AT Protocol?

49•iameli•2d ago•33 comments

Anthropic extends Fable 5 access through July 19

4•dboreham•1d ago•2 comments

Agave runs simulateTransaction synchronously on its shared RPC executor pool

2•simonmorley•8h ago•0 comments

What's the best Roblox scrpit Delta or others

2•uussbblbigbois•8h ago•0 comments

Omarchy 4 concerns, am I the only one?

4•shivc•10h ago•1 comments

How does a Dev's job look like in a few years?

11•korrak•1d ago•20 comments

Ask HN: Resources for non-web software architecture?

4•xqb64•1d ago•1 comments

Ask HN: What Did You Work On? (June 2026)

3•adithyaharish•11h ago•3 comments

Tell HN: I De-Googled Myself

37•degoogled•3d ago•24 comments

Ask HN: Would filesystem bookmarks be useful in your shell workflow?

4•manux81•1d ago•2 comments

Ask HN: Has AI changed the quality of HN posts?

7•codingbuddy•1d ago•8 comments

Tell HN: Fable guardrails trigger on random questions

7•nocoder•1d ago•1 comments