techlist.io

Ipc

1 posts

OpenAI2025-10-294 min readCurated summary

How we built OWL, the new architecture behind our ChatGPT-based browser, Atlas

# How OpenAI Built OWL, the Architecture Behind ChatGPT Atlas OpenAI's ChatGPT Atlas browser runs Chromium's browser process outside the main application process, through a layer they call OWL (OpenAI's Web Layer). The goal was to keep the benefits of Chromium's web engine while getting instant startup, a responsive UI with many tabs, and a stable base for agentic browsing, all without maintaining a large patch set against upstream Chromium. The architecture also lets most engineers avoid building Chromium locally, so development stays fast enough that new hires can merge a change on their first afternoon. ## Why Chromium, and Why Not Just Reskin It - Chromium was chosen as the web engine for its security model, performance, web compatibility, and active open source community. - The design team wanted rich animations and effects for features like Agent mode, so the UI was rebuilt in SwiftUI, AppKit, and Metal rather than customized from Chromium's open source UI. - Chromium's defaults for boot sequence, threading, and tab models made fast startup and hundreds of tabs hard to achieve. Changing them directly would have grown the patch set and slowed upgrades to new Chromium versions. ## OWL: Running Chromium Out of Process - The Atlas app is the OWL Client, and Chromium's browser process is the OWL Host. They communicate over Mojo, Chromium's message-passing system, with custom Swift and TypeScript bindings. - The Swift client exposes a public API built on several abstractions: Session (global host configuration), Profile (per-user browser state), WebView (rendering, input, navigation, zoom), WebContentRenderer (input forwarding and renderer feedback), and LayerHost/Client (compositing exchange). Service endpoints cover bookmarks, downloads, extensions, and autofill. - Isolation brings practical benefits: the app starts before Chromium finishes booting, a hung Chromium main thread does not freeze the UI, a Chromium crash does not take down Atlas, and the diff against upstream Chromium is smaller. - OWL ships internally as a prebuilt binary, so Atlas builds take minutes instead of hours. ## Rendering Across the Process Boundary - WebViews share a single compositing container in the client, and switching tabs swaps the active WebView into it. - On the Chromium side, the container corresponds to a `gfx::AcceleratedWidget` backed by a `CALayer`. The layer's context ID is passed to the client, where an `NSView` embeds it using the private `CALayerHost` API. - Popup widgets such as `<select>` dropdowns and color pickers use the same delegated rendering model. - OWL keeps view geometry synchronized with Chromium so the compositor always produces layers at the correct size and device scale. - The same technique projects selected Chromium native Views UI, such as permission prompts, into Atlas without rebuilding them in SwiftUI. ## Input Events - Chromium normally translates platform events into Blink's `WebInputEvent` model. Because OWL runs Chromium headless, the Swift client performs this translation itself and forwards the translated events. - Events the page does not handle are returned to the client, which re-synthesizes an `NSEvent` so the rest of the app can process it. ## Agent Mode Challenges - **Rendering:** The computer use model takes a single screenshot as input, so popups rendered in separate windows are composited back into the page image at their correct coordinates. - **Input:** Agent-generated events go directly to the renderer and never through the privileged browser layer. This keeps the sandbox boundary intact and prevents automated input from triggering browser shortcuts unrelated to the page. - **Storage:** Agent sessions can run logged out, using Chromium's `StoragePartition` to create isolated in-memory stores. Each session starts fresh, its cookies and site data are discarded when it ends, and concurrent sessions are isolated from each other and from the user's Incognito profile. ## Takeaway OWL shows that a browser can treat Chromium as an isolated engine service instead of the application's core. Decoupling the engine from the app lets a team combine Chromium's web platform with modern native UI frameworks and keep a fast development loop.