frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Ask HN: How do you gate an autonomous coding agent's shell access?

2•alanfuNZ•8h ago
I've been giving coding agents more autonomy lately, letting them run shell commands unattended for longer stretches, and I don't have a good answer for how people actually gate that beyond "run it in a container and hope." A container limits blast radius but doesn't stop the agent from reading a secret and then making an outbound call in the same session, or force-pushing to a branch it shouldn't touch, or just doing something irreversible while nobody's watching. Curious what people are actually doing: allowlists of commands, human-in-the-loop approval for anything destructive, something built into the agent framework itself, or just accepting the risk because the alternative is too slow? Specifically interested in what happens when the approval step itself fails or times out, does your setup default to allow or deny?

Comments

verdverm•4h ago
I used dagger for the sandbox in my personal harness. Docker also has a sandbox (microvm based) product now. Both obscure the credentials, but I do not think it eliminates them base64 encoding it (or some other transformation). It does step it from being visible if it is the same string, regardless where/how it is printed.

Service accounts / IAM / WIF / proxies, which remove credentials from the environment all together, are more advanced options.

I'm working on a custom "tool calling policy" guardrail agent. There are a number of models which have been trained to accept a policy document and user content, returning a truthy value for the harness to use during approval.

Ask HN: Who is using MCP in production?

34•sukit•17h ago•41 comments

Ask HN: Why were OpenAI, Claude, and Grok simultaneously down?

355•halcdev•14h ago•532 comments

Ask HN: Are others seeing Google's reCAPTCHA rejecting Firefox users?

48•Animats•9h ago•13 comments

Tell HN: NVIDIA's Acquisition of HuggingFace was for $HuggingFace

24•MontagFTB•7h ago•4 comments

Ask HN: 30, burnt out, with 6-10 months of runway. What would you do?

17•throwaway_30yo•1d ago•11 comments

Ask HN: Who is using FPGA for ML inference?

7•softwarewright•6h ago•10 comments

Tell HN: Both recent GCP outages caused by fiber optic maintenance

8•fastest963•7h ago•1 comments

Ask HN: Why do many websites use a sign-in code instead of a password?

5•bariumbitmap•1h ago•2 comments

Ask HN: What is the ideal email domain setup?

2•bix6•5h ago•1 comments

Ask HN: How do you market Open Source Software?

5•Daniel-Pan•2h ago•4 comments

Ask HN: Who is hiring? (September 2026)

242•whoishiring•2d ago•318 comments

Ask HN: Founders that raised funding and shutdown, did you raise again?

17•asim•15h ago•1 comments

Ask HN: Who wants to be hired? (September 2026)

107•whoishiring•2d ago•423 comments

Ask HN: Laptop or Desktop?

6•Gecko4072•12h ago•4 comments

Ask HN: How do you guys keep up with the most cost-effective AI models?

4•solomonmwalker•14h ago•4 comments

Tell HN: The Thoughts and Woes of a Full-Time Founder Part 1

3•lcampbellsoup•5h ago•0 comments

Ask HN: How do we build a team? (bootstrapped B2B startup)

3•theonlinx•8h ago•0 comments

Ask HN: iPhone Camera on indicator

2•zahirbmirza•7h ago•1 comments

Ask HN: Is there a test for measuring cognitive affects from LLM usage?

5•niwrad•7h ago•0 comments

Ask HN: Could AI eventually build god?

5•olirex99•7h ago•8 comments

Ask HN: Are technical blogs dead?

11•quaintdev•20h ago•19 comments

One-person startup: a Cornell postdoc wants to put AI in everyone's hands

2•modelslive•8h ago•0 comments

Ask HN: Accountants working with ecommerce

3•vasyl_kyryliuk•11h ago•0 comments

Ask HN: How do you gate an autonomous coding agent's shell access?

2•alanfuNZ•8h ago•1 comments

Ask HN: Why does free time become another thing you have to use correctly?

2•nullifypreset•10h ago•0 comments

Ask HN: Are guardrails being baked into models, or enforced outside them?

2•arkj•10h ago•0 comments

Tell HN: Xbox Game Pass now limits the amount of hours each month

7•nodesocket•4h ago•3 comments

Beware: Malicious Profiles on YC Co-Founder Matching

5•pain_perdu•13h ago•0 comments

Ask HN: Can we classify AI as: subhuman, quasihuman, human, superhumam?

3•aunekiaru•13h ago•5 comments

Resources to Get Good at Soldering?

9•tosmatos•1d ago•9 comments