Better HN
topnewbestaskshowjobs
Log inSign up

LuD1161

54 karma · joined Dec 9, 2019 (6y ago) · 66 submissions

Building on : https://github.com/LuD1161/agentjail
Submissions

comment 2mo ago · link · parent

I've been working on something similar , policy guardrails for coding agents, with OPA backed policies and os-native sandbox - https://github.com/LuD1161/agentjail

comment 2mo ago · link · parent

I just checked the repo. Nice work A suggestion: 1. Adding which repo/project was where my most tokens were consumed. I checked the image in the repo README, didn't see that graph.

comment 3mo ago · link · parent

wow i need to check the 32GB cards. how did you handle the KV cache. Oh i see it was the Q6 model. Did you have to cut down on context window?

4.

I Rented a 96 GB GPU and Took Uncensored Qwen3.8 From 44 to 125 tok/s(aseemshrey.com ↗)

7 points · by LuD1161 · 3mo ago · 3 comments

comment 4mo ago · link · parent

Hey thanks for the question. I would like to answer it in a more descriptive manner with an example later.

Classifying a command can be a bit of a misnomer because it has two inherent problems:

1. You need a classifier. That means the security boundary becomes “can I trick or bypass the classifier?” Whether it is a smaller model or a pile of regexes, it will eventually have edge cases.

2. The token economics do not work, and it also needs to be fast. I do not want an eval evaluating another eval for every command.

So the approach I took is closer to how we normally build security systems: secure defaults and deterministic boundaries.

For example, to protect secrets, AgentJail can block access to paths like `~/.ssh`, `~/.aws/credentials`, `.env`, etc. at the OS level.

The OS is the deterministic boundary here. The ring-0 enforcement layer.

The more interesting problem is network access. You may genuinely want the agent to debug a production Kubernetes cluster, inspect an AWS resource, or query a production database. A blanket network deny would make the agent useless.

For that, I am taking a protocol-aware DSL approach. Something like:

``` deny if { request.host == "api.github.com" request.method == "POST" startswith(request.path, "/repos/") endswith(request.path, "/git/refs") }

ask if { request.host == "kubernetes.default.svc" request.method == "DELETE" }

allow if { request.host == "api.github.com" request.method == "GET" } ```

So instead of trying to classify whether a command is “dangerous,” the policy describes exactly which resources and operations are allowed, denied, or require approval.

The agent can still be probabilistic. The enforcement boundary should not be.

Does that answer to your question?

comment 4mo ago · link · parent

You mean, I should stop posting much about it ? Is it too aggressive posting Am sorry about that.

comment 4mo ago · link · parent

With agentjail ( https://github.com/LuD1161/agentjail ), I've tried to contain coding agents in os-native sandboxes (sbpl for macos and similarly for linux, <4ms start time) + policy guardrails evaluated by Open Policy Agent (OPA), policies written in rego.

Protocol aware network proxy coming soon Then you can match a DSL and block particular network requests.

This ensures you no longer fear --dangerously-skip-permissions and stop babysitting agents

What else would you want to see in this project? Please star the repo, if you like the idea :)

comment 4mo ago · link · parent

With agentjail (github.com/LuD1161/agentjail), I've tried to contain coding agents in os-native sandboxes (sbpl for macos and similarly for linux) + policy guardrails evaluated by Open Policy Agent (OPA), policies written in rego.

Protocol aware network proxy coming soon Then you can match a DSL and block particular network requests.

This ensures you no longer fear --dangerously-skip-permissions and stop babysitting agents

What else would you want to see in this project? Please star the repo, if you like the idea :)

comment 4mo ago · link · parent

Policy guardrails for Coding Agents. Never babysit your agents - github.com/lud1161/agentjail

· OS native sandbox (<4ms start-time) · Policies for AWS, local files, k8s, DBs etc. · Rego backed policies w/ OPA (CNCF Graduated project) · Fastest policy evaluator (<3ms)

Please star the repo if you like the work.

10.

Hand it your codebase. Not your secrets(agentjail.io ↗)

3 points · by LuD1161 · 4mo ago · discuss

comment 4mo ago · link · parent

Might wanna check out https://github.com/LuD1161/agentjail - policy guardrails for coding agents.

shameless self-plug. I've been dogfooding it for the last 3 weeks now.

comment 4mo ago · link · parent

Dont trust your production data with a markdown file. Have deterministic guardrails

comment 5mo ago · link · parent

Thanks !

comment 5mo ago · link · parent

For now I am parsing the text only. Testing app for real instances would be fun and a dedicated project in itself. I've some ideas, hit me up if you're interested or can collab if you're doing it already.

15.

Show HN: Honest Privacy Policies – We Read the Fine Print So You Don't Have To(honestprivacypolicies.org ↗)

5 points · by LuD1161 · 5mo ago · 4 comments

16.

Security Engineering Is a Context Problem(aseemshrey.in ↗)

4 points · by LuD1161 · 6mo ago · discuss

comment 8mo ago · link · parent

wow. this is such an interesting perspective. hadn't thought so deeply about my 'shower thought'. This expands my horizon. Might put this into the update. When I was thinking about it, the fleeting thought was majorly about the 'newness effect' which isn't related to a subjective liking of something but is pervasive across everything, whether it be tech, music, movies etc.

Thanks for sharing this.

comment 8mo ago · link · parent

A friend said KubeCon "isn't the same anymore." I asked what got worse. They couldn't answer. Turns out there's a name for this.

Three names, actually: 1. Hedonic Adaptation : Brain's inbuilt boredom machine 2. Rosy Retrospection : Your Memory is a Highlight Reel 3. Declinism : The "Kids These Days" Bias

19.

The Newness Illusion: Why Everything Was Better 'Back in Our Day'(aseemshrey.in ↗)

2 points · by LuD1161 · 8mo ago · 6 comments

123