browser sandbox. Paul Kinlan is a web platform developer advocate at Google and has recently focused his attention on coding agents. He immediately recognized the importance of a robust sandbox for agents to operate and put together these detailed notes on how the web browser can help:
This got me thinking about browsers. Over the past 30 years, we’ve built a sandbox specifically designed to run malicious, untrusted code from anywhere on the web as soon as a user taps a URL. […]
Can you build something like Cowork in the browser? Perhaps. To find out, I created a demo called Ko-Do that tests this hypothesis. In this post I want to discuss the research I’ve done to see how far we can get, and determine whether the browser’s ability to run untrusted code is useful (and good enough) for enabling software to do more for us directly on our computers.
Paul then describes how three key aspects of the sandbox – file system, network access, and secure code execution – can be handled by browser technologies: file system access API (still Chrome-only as far as I can tell), CSP headers. And WebAssembly in Web Workers.
Ko-Do has a very interesting demo that shows all these ideas in a single application:

You choose a folder full of files and configure an LLM provider and set an API key, Co-Do then uses CSP-approved API calls to interact with that provider and provides a chat interface with tools to interact with those files. It sounds really similar to Cloud Cowork but without running multi-GB local containers to provide a sandbox.
my biggest complaint is This still remains how thinly documented it is, especially across different browsers. Paul’s post has all kinds of useful details that I haven’t found anywhere else, including a complex double-iframe technique to help enforce network rules on the inside of two frames.
Thanks to this post I also came to know about Tags that work on Firefox, Safari And Allows Chrome and the browser to have read-only access to an entire directory of files at once. I had a WebKitDirectory demo created from the cloud to try it out and I will definitely be using it for future projects.