HackerTrans
TopNewTrendsCommentsPastAskShowJobs

benswerd

no profile record

Submissions

Builders Fallacy

davidgu.com
3 points·by benswerd·2 months ago·1 comments

How much do sandboxes cost?

sandboxprices.swerdlow.dev
3 points·by benswerd·3 months ago·1 comments

X for AI Agents

twitter.com
4 points·by benswerd·3 months ago·0 comments

Launch HN: Freestyle – Sandboxes for Coding Agents

freestyle.sh
322 points·by benswerd·3 months ago·158 comments

Be intentional about how AI changes your codebase

aicode.swerdlow.dev
170 points·by benswerd·4 months ago·102 comments

RPyC – Transparent, symmetric distributed computing

rpyc.readthedocs.io
2 points·by benswerd·5 months ago·0 comments

Certificate Transparency Log Explorer

certs.swerdlow.dev
33 points·by benswerd·6 months ago·10 comments

Favorite Rust Crates of 2025

docs.freestyle.sh
4 points·by benswerd·6 months ago·0 comments

Drawing with zero-width characters

zw.swerdlow.dev
122 points·by benswerd·7 months ago·31 comments

Maxims of Good Software Design

kevingugelmann.com
2 points·by benswerd·7 months ago·0 comments

comments

benswerd
·2 months ago·discuss
Been feeling this more recently, building got 10x easier but choose what to build kinda got harder.
benswerd
·3 months ago·discuss
a pricing calculator showing the prices of different sandboxes with dials to compare them in practice.
benswerd
·3 months ago·discuss
Live migrations and the tech powering it was the hardest thing I ever built. Its something that I think will come naturally to projects like smolVM as more of the hypervisors build it in, but its a deeply challenging task to do in userspace.

My team spent 4 months on our implementation of vm memory that let us do it and its still our biggest time suck. We also were able to make assumptions like RDMA that are not available.

All that to say — as someone not working on smolVMs — I am confident smolVMs and most other OSS sandbox implementations will get live migration via hypervisor upgrades in the next 12 months.

Until then there are enterprise-y providers like that have it and great OSS options that already solve this like cloud hypervisor.
benswerd
·3 months ago·discuss
Its actually almost O(1) with respect to fork count. We have some O(N) behaviors but I expect to be able to remove those in the next 6 months and get to full horizontal fork O(1) any VM any fork count.
benswerd
·3 months ago·discuss
We read your blogs when building all of this!
benswerd
·3 months ago·discuss
Freestyle isn't designed for an individual engineer working on their Github repos. Its designed for platforms building coding agents that want to take the place of Github all together. Those platforms need some source of truth alongside the VMs, just like how you don't store all of your important documents on your personal computer. That is why we offer git.
benswerd
·3 months ago·discuss
I'm not sure what you saw as slow, I'd love to improve it. Do you mean the dashboard?

We're built as an API for platforms to build on rather than tool for individual developers. Oriented at platform orchestrating tens of thousands at VMs rather than individuals using CLI. We also have a CLI but its primarily a debugging and testing tool.

Resuming a freestyle VM with claude code in it will just work. You can do that via SSH.
benswerd
·3 months ago·discuss
So first I don't, I think startup times are fundamentally really important. 5s is different than 1s is different than 500ms is different than 200ms and users notice.

I don't think people run real world benchmarks on what that coldstart really means though, like time to first response from a NextJS is a very important benchmark for Freestyle and we've spent a lot of time on it. While Daytona sandboxes boot faster than Freestyle ones our first response is an order of magnitude ahead of theirs.

I think another important one is concurrency: In worst case scenarios how many VMs can you get from a provider in a 5 second period is important.

I also think not enough time is spent on "Does it actually work on this VM", stuff like postgres, redis, ntftables, complex linux binaries that are hard to run need to work on these sandboxes because AI is going to need them and I don't think there has really been a feature-bench system yet.

Networking/snapshotting/persistence characteristics all also need to come into this.

I
benswerd
·3 months ago·discuss
This is a good note. We've never been great at explaining what we're doing and plan to do a lot more work on making it accessible/make sense.
benswerd
·3 months ago·discuss
I don't believe so. while it is technically easy to fork claude code running in these VMs, its not technically difficult to fork a conversation loop outside of the VM as well.

What matters is that its all forked atomically, which can be done with resources outside of the VM as well.
benswerd
·3 months ago·discuss
If git isn't for you we'd still love to support you. We believe to build the sandboxes for coding agents you also need to provide git repos for them so we do that as well. You can easily say give me this vm with these 3 repos and these permissions with us.

But that said, the sandbox stands on its own without it.
benswerd
·3 months ago·discuss
This assumes you can retain the same state after an operation.

> "I wonder if this is slow because we have 100k database rows" > DELETE FROM TABLE; > "Woah its way faster now" > But was is the 100k rows or was it a specific row

Thats a great place where drilling bugs and recreating exact issues can be really problem, and testing the issues themselves can be destructive to the environment leading to the need for snapshots and fork.
benswerd
·3 months ago·discuss
That + its not always simple to replicate state. A QA agent in the future could run for hours to trigger an edge case that if all actions to get there were theoretically taken again it wouldn't happen.

That can happen via race conditions, edge states, external service bugs.
benswerd
·3 months ago·discuss
There is no partial state really possible. We can run out of space on a Node and just say no. But the nature of memory forking is if you don't literally do it 100% right it crashes immediately (I know cuz it took me a while too get it right).
benswerd
·3 months ago·discuss
TBH I wouldn't recommend using it for this. I'm a big believer in agent chat running outside of the VM, where you can get much better control over the chat loop. I would treat the VM as a tool the agent is using rather than the agent's environment. Like the agent is a human using a machine and watching it, rather than trying to watch it from inside the machine. Then there are great existing observability tools, my fav is langfuse.
benswerd
·3 months ago·discuss
We're actually median under 500ms — ~320ms median — I just didn't want to piss of hacker news with over estimatation.

We have another set of optimizations that we believe can take us to ~200ms in the next few months but beyond that we're pretty much completely stuck.

Realistically other sandboxes will be able to get there before us because we've chosen to support so much of Linux/if you don't run an operating system or don't support custom snapshots that is much easier.
benswerd
·3 months ago·discuss
Ah I see. This is very interesting but not what we're focused on right now. I will keep this in mind for future prioritization.
benswerd
·3 months ago·discuss
Billed for wall time. whichever plan you are on you get in credits, so hobby plan gets $50 of credits and beyond that billed on per CPU wall time.
benswerd
·3 months ago·discuss
We do not allow long term persistence for the free tier.

This is purely a defense mechanism, I don't want to guarantee storing the data of an entire VM forever for non paying users. We have persistence options for them like Sticky persistence but it doesn't come with the reliability of long term persistence storage.
benswerd
·3 months ago·discuss
CI Builders/QA Agents can do this very well. User session starts, bring VM up with content + dependencies, when session is done throw it away. Keeps it clean, debuggable, fast and cheap.