the browser is the sandbox
AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.
Why it matters
Browsers may now sandbox AI agents that edit local files without heavyweight local containers, cutting the deployment barrier for file-managing AI tools.
Paul Kinlan, a Google web platform developer advocate, built Co-do, a browser demo where you pick a folder, add an API key, and chat with an AI that works on your files. Normally such tools need a heavy local container for security; Co-do instead uses the browser's own protections, which were built to safely run untrusted web code. Simon Willison highlights useful tricks, including a 'webkitdirectory' input that lets browsers read a folder of files.
Google's Paul Kinlan argues the browser's 30-year-old sandbox can safely run AI agents on local files, and demonstrates this with Co-do, a working prototype similar to Claude Cowork but without installing a multi-gigabyte local container. File System Access API support remains Chrome-only, a practical limit. Teams building agent tools could skip container overhead; the trade-off is that file contents are sent to whichever AI provider the user selects.
Kinlan maps the three sandbox requirements to browser APIs: File System Access API for the filesystem, CSP headers with <iframe sandbox> for code execution, and WebAssembly in Web Workers. Network rules can be applied via a double-iframe technique; <iframe sandbox> is thinly documented across browsers. Co-do configures an LLM provider with an API key and CSP-approved API calls. <input type="file" webkitdirectory> gives read-only directory access on Firefox, Safari and Chrome.
Read the original
This summary exists to save you time, not to replace the source.
Key terms
Co-do Paul Kinlan Google Claude Cowork File System Access API Simon Willison WebAssembly
Was this summary useful?
One click, anonymous. It tells us which summaries to re-run.
Related reading
Code-driven AI illustrations are more useful than images from dedicated image models
Code-driven AI illustrations let designers edit assets directly in code, saving time on iteration and ensuring consistency, which is a game-changer for teams that need rapid, reusable visual content.
A hierarchical note-taking app for building large personal knowledge bases
Trilium lets users build and navigate massive personal knowledge bases without duplicating content, saving time on organization and retrieval.
Desktop apps in Go with native UI or web frontend
Go developers can now ship cross-platform desktop and mobile apps in a single small binary without cgo or heavy runtimes, cutting build complexity and deployment size.
OpenBitFun: an agent workspace with four harness modes and phone remote control
OpenBitFun lets agents run on any machine and be controlled from a phone, eliminating the need to choose between local power and remote access, saving developers time switching contexts.
Intel One Mono: a monospaced font designed with low-vision developers
Developers with low vision or eye fatigue can read code more clearly, reducing errors and improving productivity.