Kitesurf: Agent-first browser that runs in V8 isolates
TL;DR Highlight
Cloudflare launched Kitesurf, an agent-first browser running on Workers, in free beta
Who Should Read
Backend developers whose agents use headless browsers and who find Chromium's memory and CPU costs too high
Core Mechanics
- Chromium is overkill for agents
- Tabs, themes, extensions, and device sync don't matter to AI.
- Agents care about token count, context windows, scalability, performance, and cost.
- Per-instance memory and compute make one Chromium per agent prohibitively expensive, per the post.
- It runs entirely on Workers
- Kitesurf runs only on Cloudflare Workers and is free during beta in Browser Run.
- It is significantly more efficient in CPU and memory than Chromium for screenshots and HTML extraction.
- The excerpt gives no concrete numbers.
- It started by porting obscura with AI
- The team tried porting obscura, a Rust headless engine, to Workers using an AI agent.
- It worked poorly at first.
- It worked once they gave a solid plan and clear success criteria so the agent could loop and ask questions.
- Tests kept AI-written code under control
- Web Platform Tests (WPT) served as the agents' goalposts.
- WPT only measures standards conformance, so they added integration and visual regression tests.
- Multistep Puppeteer tests run on real sites against Chromium and Kitesurf, comparing rendering at every step.
- Every page is untrusted input
- All network access goes through one SandboxOutbound worker, enforced by Dynamic Workers.
- It enforces CORS, injects browser-shaped headers, filters responses, and keeps per-page cookie jars.
- Anything failing policy gets a 403.
- Engine, PageScript, PageRenderer architecture
- Only the Engine is public-facing; it serves CDP WebSocket and HTTP REST and stores session state.
- Because it speaks CDP, Puppeteer, Playwright, and chrome-remote-interface work as is.
- PageScript spins up an isolated isolate per page via Dynamic Workers and uses Blitz and Stylo to parse HTML and CSS.
Community Reactions
- Blitz's author weighed in
- A commenter says Kitesurf is built on Blitz and that they were told Cloudflare intends to open source and upstream its patches.
- The article excerpt doesn't mention open sourcing.
- The V8 isolate guards only half the risk
- One commenter argues the danger is not code escaping but the agent reading hostile pages and misusing its normal tools.
- Prompt injection doesn't need to break out of V8, they say.
- Identity, not rendering, was the blocker
- A commenter who tried raw HTTP across the open web reports being stopped by CAPTCHA, SMS verification, and cards on file.
- They argue an isolate browser fixes none of these.
- Questions on anti-bot and fingerprinting
- One comment asks whether Kitesurf gets special bypass privileges on Cloudflare-protected sites.
- Others say it would be easy to fingerprint and block, and wish it were open source for local use.
How to Apply
- Measure your current browser task cost first
- Pick the screenshot or HTML extraction tasks your agent runs today and measure memory and CPU per Chromium instance.
- Save these numbers as the baseline for comparing against the Kitesurf beta.
- Point your existing CDP code at Browser Run
- Change only the connection endpoint of an existing Puppeteer or Playwright script and run the same job.
- Compare the resulting HTML and screenshots against Chromium.
- Cut browser-agent tool permissions to the minimum
- List the tools your agent can call after reading an untrusted page.
- Remove write and send tools from read-only tasks.
- Define tests before delegating to AI
- Before handing code to an AI agent, set the test suite and success criteria it must pass.
- Tell the agent to ask questions when unsure.
Try It
# Paste into Claude or ChatGPT (simplified version of the post's approach: auditing browser tasks for agents)
I use a headless browser with an LLM agent. Classify the task list below.
Task list: {{tasks the agent performs in the browser}}
Split each task into:
1. Light rendering is enough (screenshots, HTML extraction)
2. Needs identity (login, CAPTCHA, payments)
3. Risky if a hostile page is read and tools are then called
Also propose the minimum-privilege tool list for each task.
Next step: write 5 success-criteria tests for the category 1 tasks.Terminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques