On 13 November 2026 Cloudflare open-sourced Kitesurf under Apache 2.0. The engine is a stateless browser built specifically for AI agents. It runs entirely on Cloudflare Workers: parses HTML, applies CSS, executes page JavaScript, produces screenshots and PDFs, and speaks the Chrome DevTools Protocol so Puppeteer, Playwright, or an MCP client can drive it. No Chromium container, no persistent browser process. Rust packages (Blitz for layout/painting, Stylo for CSS, Boa as JS fallback) compile to WASM and sit inside Workers isolates.
That is a clean infrastructure win for agent loops that need to scrape, fill forms, or extract content at machine speed. Lower CPU and memory per session than a full Chromium instance means denser packing and cheaper scale-out. CDP + WebMCP support means existing agent toolchains can point at a Kitesurf endpoint instead of spinning up a heavy browser. For pure automation jobs—research pipelines, form filling, site monitoring—the latency of the agentic loop is now dominated by model reasoning rather than browser startup and memory pressure.
It does not move the floor if the agent is also supposed to produce short, timely suggestions while a technical interview or sales call is happening live in another language on Windows.
Where the delay actually lives on Windows
A usable dual-track overlay still needs two clean PCM streams that stay separate:
- Local microphone — what you say.
- Loopback of the render endpoint — what the remote party says through Teams, Zoom, Meet, or the browser.
Both must stay in shared-mode WASAPI so the call client keeps the device. Exclusive mode would break the call. The Windows Audio Engine (audiodg.exe + audioeng.dll) mixes, applies any enabled communications enhancements or vendor APOs, and delivers buffers on a fixed period. Typical shared-mode period is 10 ms; the engine often ignores smaller requests under load.
Rough additive budget once samples leave the callback (modern laptop, enhancements off):
| Stage | Typical cost |
|---|---|
| WASAPI shared period | 10 ms |
| Callback → lock-free SPSC ring + format convert | 1–3 ms |
| Resample to 16 kHz mono + lightweight VAD | 2–5 ms |
| Streaming STT first partial (local or remote) | 40–150 ms |
| Optional local polish / suggestion model | 20–80 ms |
| Overlay paint | <16 ms |
Even if a remote browser agent or a cloud model returns usable text in a few hundred milliseconds, the capture period and the first partial still dominate the user-visible lag. A lightweight Workers-based browser that now starts faster is fine for a backend orchestration loop; for a tight overlay that should show a short suggestion while the other person is still talking, you need the partials much earlier.
Practical capture shape that ships
// Shared-mode capture client (mic or loopback).
// Callback does nothing but copy into a lock-free SPSC ring.
// Consumer thread owns resampling, VAD, and the STT or model call.
HRESULT hr = pAudioClient->Initialize(
AUDCLNT_SHAREMODE_SHARED,
flags, // AUDCLNT_STREAMFLAGS_LOOPBACK for render endpoint
hnsPeriod, // request 10 ms or smaller; engine may ignore
0, mixFormat, NULL);
// In the callback:
// Copy GetBuffer samples into ring, ReleaseBuffer, return S_OK.
// Zero allocations, zero model work on the audio thread.
From the ring you can feed:
- A streaming STT (AssemblyAI-style, Deepgram, or local faster-whisper / Whisper.cpp / Windows ML Speech Recognition Task).
- A small local GGUF for translation polish or short suggestion generation.
- Or, if you own the whole stack, an end-to-end model that still has to wait on the same capture path.
Kitesurf is useful if your local agent has a large set of tool calls that need to hit the web without burning a full browser process. The audio path has not changed. Drop enhancements, pin the capture thread, keep the period short, and the biggest remaining slice is still the shared-mode buffer plus the first usable STT partial.
Tradeoffs that matter in practice
Shared mode keeps the call client happy and avoids device exclusive fights, but it adds the engine’s mixing and any APO latency. Exclusive mode (or a carefully tuned short period that the engine actually honors) can drop the floor into the single-digit milliseconds, but it breaks the call if the client also needs the device. Most shipping overlays stay in shared mode and accept the 10 ms tax.
Local models remove the network hop for STT and polish, but they still wait on the same ring. A Workers-based browser engine removes the Chromium memory tax for agent tool use, but it does not touch the Windows audio stack. The two problems are orthogonal: one is about agent tool efficiency at scale, the other is about the lowest latency you can achieve between a spoken word and a painted suggestion on the same machine.
If you are building the overlay side, measure the full path from WASAPI callback to first painted partial, not just the model TTFT. The capture period is still the floor.
I'm building Talkaside, a Windows app for job interviews and calls in another language.
Drafted with AI assistance from this project's code and logs.


Top comments (0)