Better HN
topnewbestaskshowjobs
Log inSign up

kstenerud

22,364 karma · joined Feb 2, 2011 (15y ago) · 4,909 submissions

Author of https://github.com/kstenerud/yoloai

Sandbox your agent so that it can't do any real damage, and you don't have to keep answering annoying permission questions.

Submissions

comment 16h ago · link · parent

"The new law guards against a rising trend of car companies charging car owners fees to activate and use built-in features like heated seats, enhanced navigation, hands-free driving and entertainment options that do not present an ongoing expense for dealers and manufacturers."

comment 1d ago · link · parent

She was sentenced in June.

https://en.wikipedia.org/wiki/Parastoo_Ahmadi

comment 4d ago · link · parent

I just did a live coding interview today. It didn't go well.

I have 30 years professional experience, and 40 years total experience in software engineering. I started with assembler, then to C, then moved on to work in almost every popular language there is.

Last year I started working with AI. I've now gotten to the point where I can build huge, complex systems that would have been an impossibility for a single person before (short of investing decades into it). It's truly an amazing lever.

And then I did a live coding interview today. You know the drill: pick a language, talk about some problem that involves some kind of vaguely tricky algorithm you need to figure out, then code it.

Well, coming up with the algorithm, discussing the tradeoffs in time and space complexity was no problem, but then when I went to code it, I felt a very familiar feeling.

I still remember back in the day when I had to go back to assembler for something after coding in C for a couple of years. It was PAINFUL. It was SLOW. It felt so utterly MORONIC to even be writing an app entirely in assembly in that day and age of compilers that did a pretty damn good job without the slow, torturous pain of tracking registers, PC-relative addressing, stack pointers and all that junk.

Today was a mirror of that. The first thing going through my head is "Why the fuck should I be fighting over the proper syntax to write a fucking loop?" "Why should I have to remember all these damn Python footguns?" "Why should I be trying to remember if it's var x or <type> x or x: <type> or x := something or any of the crazy ways I've written it over the years depending on the language??"

My velocity was so slow it felt like I was walking in molasses. My thought flow was jagged and irregular as I fought for every line of code, trying to decompose the algorithm in my mind into primitive steps, just like it felt when I went from C to assembly that day. It just makes no sense to write code this way!

I probably won't get the job, but I also realized that I probably don't want a job that doesn't embrace AI assisted software development the way I do. I don't think I could handle working that slow again, even if the pay is great.

comment 4d ago · link · parent

JSON, HTTP, Markdown, CSV, HTML, almost every programming language, SSH, AV1, ODF, Open protocol, Linux, POSIX, OpenGL, Wayland, Vulkan, Opus, SeaBIOS, GCC, LLVM, LXC, USB...

comment 1w ago · link · parent

It works from the command line. You can spin up a sandbox around your workdir, using any backend (docker, VM, kata, firecracker, seatbelt, apple container, etc) and it just works.

You could roll your own, just like you could build your own docker implementation. But the devil's in the details. The technologies it depends on are sharp and pointy ( https://github.com/kstenerud/yoloai/blob/main/docs/contribut... ), and it's difficult to make them do the right thing.

comment 1w ago · link · parent

I was with them right up until the admonition against standardizing the UI components. This is not an all-or-nothing proposition. You build a standardized library incrementally, and you slowly migrate codebases over to use them. I've seen some pretty horrendous UI mish-mash in what should appear to be a single application, because each piece was done independently and then stitched together.

You end up with drifting implementations that may or may not come from the same root at different points, where the same fix has to be applied multiple times as each team learns the lessons for what not to do, etc. Effectively what DRY is about.

comment 1w ago · link · parent

I wrote yoloai for this kind of thing.

By default:

- The agent has no access to your filesystem.

- The agent has no access to your env.

- The agent has no access to your credentials.

- The agent has no access to your workdir. You use git semantics to pull its changes back to your workdir, with the ability to view and extract it as a diff.

- You can restrict where it's allowed to visit over the network.

Requests can be brokered (still working on making this more ergonomic), and you can make explicit carve-outs from the above rules.

comment 1w ago · link · parent

Money in sufficient quantity brings an outsized potential political power. By enriching someone through your purchases, you give them that potential.

So you have to ask yourself: Do you want to increase this person's ability to influence the politics of your country (and potentially the world)?

comment 2w ago · link · parent

Yup, this is definitely the latest gold rush. And there will be a lot of losers and some winners, just like every other time.

And anyone who feels the floor being taken out from under them will feel the pressure to join the gold rush, just like every other time.

And it's going to put unnatural pressures on relationships and families, and even destroy a lot of them, just like every other time.

And people will feel resentful and alone and confused, and say that things shouldn't be this way - it's not fair the way things are and where they're going. Just like every other time.

My sympathies go with those who are suffering under this, but when forces beyond your control are threatening your livelihood, you do what you must and hope for the best.

And when there is a gold rush going on, be the one selling the shovels.

comment 2w ago · link · parent

> what does Xfce have that Mate doesn't?

A 1px window border that's near-impossible to land on.

comment 2w ago · link · parent

It's funny, just this morning I had Claude come to me and say "Did you delete directories X and Y?" I entered the sandbox, and sure enough, one of its subagents had deleted the directories wholesale. No idea who did it or why.

No matter; I just rebuilt the dirs from my outside copies and carried on.

comment 2w ago · link · parent

This feels to me like a stretch. Christian Gläßel and Adam Scharpf studied data from the Argentinian army and compared it with historical accounts of dictatorships and coups, tracing differences between henchmen, coup plotters, and other members of the officer corps. These are situations where your physical survival often depends on what you do.

That's very different from company environments.

The Peter Principle is also unfortunately an overly simplistic model. Yes, some people can get promoted to a level where they technically can't cope anymore, but ability is rarely the measure by which people advance (except at the lowest grades where your political power is almost nil).

comment 2w ago · link · parent

“The question arose: what about the women and children? I decided to find a perfectly clear solution to this too. I did not consider myself justified in exterminating the men — that is, to kill them or have them killed — while letting avengers in the shape of their children grow up for our sons and grandchildren.”

- Heinrich Himmler

“I am persuaded that this is a righteous judgment of God upon these barbarous wretches, who have imbrued their hands in so much innocent blood; and that it will tend to prevent the effusion of blood for the future, which are the satisfactory grounds to such actions, which otherwise cannot but work remorse and regret.”

- Oliver Cromwell

“It was no longer a question of merely dispersing the crowd, but one of producing a sufficient moral effect, from a military point of view, not only on those who were present, but more especially throughout the Punjab.”

- Brigadier-General Reginald Dyer

comment 2w ago · link · parent

You're absolutely right! There's no way around this problem — and no amount of creative thought could ever solve it.

All hail the agent!

comment 2w ago · link · parent

The CC source code leak was contained many months ago. But Claude is perfectly happy to decompile its own code if you ask the right way. It'll even patch the binary for you.

Regardless, It's kinda silly to keep the harness code hidden. There aren't any valuable secrets in there.

But there are rules & procedures to follow, so...

comment 2w ago · link · parent

Such a convenient narrative. "Yeah, a shit ton of civilians who weren't vaporized died slow, agonizing deaths from radiation exposure, but believe you me, it's more humane than the alternative! They should be thankful!"

comment 2w ago · link · parent

You could in theory fully review Claude Code.

But even that wouldn't be enough because LLMs are nondeterministic, and these kinds of issues are the inevitable results.

Only a mechanical, deterministic failsafe can protect you from it.

comment 2w ago · link · parent

This is EXACTLY why I never use an agent outside of https://github.com/kstenerud/yoloai

I appreciate that you're trying to make Claude Code safer, but the agent really needs to be a lot more restricted in its reach rather than its actions.

The agent should NOT have ANY access to:

- Your ENV

- Your homedir

- The network at large

- ANY other directory on your system

- No, not even your workdir.

The only safe way to use an agent is COMPLETELY isolated by a container or VM, using git semantics to extract its output.

comment 3w ago · link · parent

My "desktop" machine is actually an old T450 I bought used over a decade ago, running Linux Mint (Mate).

Weak processor, 16gb ram, but good enough for browsing and running daily tasks, and it's simple enough to connect to more powerful machines when the need arises. And the docking station has HDMI and displayport. Hardware H.264 codec, and also HEVC and VP9, but alas only with the windows driver.

My big rig desktop is now in the basement, sleeping until I need to run LLMs or diffusion or a heavy compile. I also sometimes use it for Steam gaming, connecting to it via moonlight (which works surprisingly well, even over WIFI).

comment 3w ago · link · parent

I'm building a self-hosted media server for video, like Plex or Jellyfin. I'll be opening the beta in about a month.

Features:

- No paywalls, bandwidth limiting, or crippled behavior. No login required.

- Single go binary, deployed via Docker.

- Reaches your home server from anywhere with no port forwarding, no VPN and no paywall, even behind carrier-grade NAT. No Tailscale required.

- Cast to another device. You can use any logged in device as a playback screen.

- Watch together, with voice support: Play synced video with friends, and also chat voice. You can also mix this with casting to another device.

- Dialogue boost and loudness levelling for every film.

- Real adaptive quality, tuned for a home's upload.

- Hardware transcoding, full quality in every supported browser.

- A library that explains itself: what the scanner saw, why each title matched, guesses marked for you to check, and a disk that's gone missing shown as missing instead of its titles silently vanishing.

- Your data stays yours: The database is a rebuildable index, metadata corrections can be written back as NFO files that Kodi and Jellyfin read, and an automatic backup keeps what can't be re-derived (watch state, preferences, shares).

Security is a primary concern:

With the ever increasing pace of hacks and CVEs and AI-assisted intrusion, you simply can't be too careful anymore.

- The core (which talks to the network, handles the API, users and the database) never opens a media file or runs FFmpeg.

- A separate media node does every file read and every transcode. It has no network access and talks to the core only over Unix sockets.

- FFmpeg runs under Landlock and seccomp with no path to the file and no socket. All it can do is read and write streams.

- Small dependency tree on an allowlist, pure Go with no cgo, secrets sealed at rest and never logged.

- The library can be mounted read-only, so even a full compromise can't encrypt or delete your media.

- Cryptographically signed chain for servers and releases.

https://orpheum-app.com/

comment 3w ago · link · parent

Actually, Japan is one of those interesting cultures that traditionally inverts permission. That's slowly going away now in many areas as they adopt a more western approach, but it's part of their culture's origins.

comment 3w ago · link · parent

There's a difference between not giving way to a robot vs spending 10-15 minutes actively blocking it.

Yes, we're going to quickly come to a head on the issue of robots on sidewalks, much like we have with e-scooters, or Google's ill-fated bikes.

The robots open a new possibility on an existing system (sidewalks), which is going to lead to problems from both sides until the legislature comes up with new rules. This is how free and democratic societies work.

comment 3w ago · link · parent

I didn't take it quite so literally. It's more about taking a chance to be the person you want to be.

Q put it best:

"This is the man you are today. And you should be happy! You have a real heart beating in your chest, and you get to live out the rest of your life in safety: running tests, making analyses, and carrying reports to your superiors."

comment 3w ago · link · parent

I think the most memorable of the Picard-focused TNG stories for me was "Tapestry". It really hammered home how much of one's potential is lost when one never takes risks.

comment 3w ago · link · parent

I actually found DS9 to be the best of all of them. Aside from the terrible Dr Bashir character, they felt believable, and like any real environment had personality clashes, personal issues, baggage, and of course interpersonal conflicts.

The difference was that rather than turn it into soap opera porn, the characters actually tried to behave professionally (most of the time).

comment 3w ago · link · parent

> Work, obviously, is pointless in a world of cheap superhuman intelligence.

Really? So doing things like learning to play an instrument or mastering chess are pointless?

> University (really all education beyond teaching people to speak) will be pointless because there’s no work to do and because growing your human capital doesn’t change your life outcomes: you get the same UBI whether you’re illiterate or a PhD.

Why must a university education be only a career generator? What about a well-rounded education, with a specialization in the things that interest you?

> If Claude Code has existed when I was starting out, nobody would have cared about Austral or my other open-source projects

Claude code is here, and yet I'm still writing open source code that people appreciate.

> As a teenager I tried to install Linux, ran into all kinds of problems, and went on the IRC chatrooms to get help. And in the process I made friends. Today, I would just ask Claude. AI disintermediates everyone, so that we no longer need each other.

Your friends don't need to all be techies. There are many other ways to make friends.

> What even is the point of cities in a world without work?

Community? Actually physically going outside and meeting people?

> The BATNA to hanging out keeps getting better, cheaper, and more convenient. When people’s sensorium becomes an infinite firehose of AI-generated superstimulus, why would they hang out with anyone?

Human connection? Experiencing things in the world together? Physical contact?

comment 4w ago · link · parent

I haven't noticed any difference. In fact, I just set it on a laundry list of 12 items to sort out overnight. It took 10% of my weekly quota to do it, and it probably would have only taken half the tokens if I'd been monitoring it. But it did work while I slept, so I'm not too torn up about it.

There were a few small issues with its work (it's not the greatest at getting layouts right, and one of the features it implemented feels clunky and will need tuning), but the architectural refactors it did worked perfectly and I'm happy with the performance improvements.

I haven't yet checked out the research tasks it did, but usually it does a decent job. I could have just asked it to research and implement, but I find it best to manually verify its conclusions first.

comment 1mo ago · link · parent

I liked my prof's approach to exams:

"You may bring one 8.5x11 double-sided cheat sheet into the exam. You may write anything you want on it. And I promise you that if you prepare such a sheet, you'll never even look at it during the exam."

And he was right.

comment 1mo ago · link · parent

"I think Scratch is so featureful that it is intimidating to newcomers. The paradox of having so many toys is that it’s hard to know which one to play with."

I'm the exact opposite. I want the choices and possibilities so that I can run with them. When the space is limited, it can still be fun and interesting, but only until you've plumbed the depths and everything you do becomes derivative, repetitive, and boring.

Growing up, my favorite toy was a huge bucket filled with random lego pieces. Some were basic bricks, some were from the technical set, some were from themed sets (cars, space ships, etc). I'd spend hours coming up with new designs, the original box designs long forgotten.

comment 1mo ago · link · parent

Jellyfin can only be used from remote if you can expose its ports somehow. Lots of routers block that, or your ISP is set up such that you need NAT tricks, and have to use STUN and TURN and such to work around it. Jellyfin doesn't handle any of that. Tailscale helps here, but then if you want family members to use it, you have to set them up on tailscale as well. Or you set up a service on a VPS.

I wrote this because I'm unhappy with the offerings out there, including Emby, Plex, and Jellyfin. Also too many bugs that have been sitting for years with no solution. For Jellyfin in particular:

- SyncPlay is buggy, doesn't support voice, and seems to be unmaintained now.

- Way too many CVEs, mostly FFmpeg injections (CVE-2026-35033, CVE-2026-35032, CVE-2026-48793, CVE-2025-31499).

- The session key leaking in URLs.

- Upgrades breaking the database.

- Needless transcodes and wrong "can play this" guesses.

- Subtitles that load late or drift after resuming.

12345
164