---
type: "post"
id: "how-we-use-agents-to-patch-build-and-c99a95"
slug: "how-we-use-agents-to-patch-build-and-c99a95"
title: "How we use agents to patch, build, and deploy 40M lines of Chromium code in < 1 day"
description: "Browserbase describes how its team uses coding agents, regression tests, and build-system changes to maintain a Chromium fork carrying more than 18,000 lines of patches."
retrieval_nugget: "Browserbase describes how its team uses coding agents, regression tests, and build-system changes to maintain a Chromium fork carrying more than 18,000 lines of patches. The account matters to teams using agents on complex, long-lived codebases: the central work is not just generating diffs, but supplying context and verifying behavior through to deployment."
published_at: "2026-11-21"
updated_at: "2026-11-21"
record_date: "2026-11-21"
date_kind: "published_at"
topics: ["google","coding-agents"]
entities: ["Browserbase","Chromium","Stagehand","Playwright","Google"]
related_patterns: ["verification-bandwidth-is-the-scarce-resource"]
novelty_label: "new_fact"
what_changed: null
prior_refs: []
source_url: "https://www.browserbase.com/blog/how-we-deploy-custom-chromium"
source_urls: ["https://www.browserbase.com/blog/how-we-deploy-custom-chromium"]
schema_version: "newruntime-agent-readable-v0.2"
stable_id: "post:how-we-use-agents-to-patch-build-and-c99a95"
status: "published"
visuals: []
editor: {"role":"editor","name":"Andrey Reshetnikov","profile":"https://newruntime.com/owner-profile.md","profile_json":"https://newruntime.com/owner-profile.json","same_as":["https://www.linkedin.com/in/reshetnikov1/","https://t.me/lapetuse"]}
routes: {"html":"https://newruntime.com/posts/how-we-use-agents-to-patch-build-and-c99a95/","markdown":"https://newruntime.com/posts/how-we-use-agents-to-patch-build-and-c99a95.md","json":"https://newruntime.com/posts/how-we-use-agents-to-patch-build-and-c99a95.json"}
markdown_url: "https://newruntime.com/posts/how-we-use-agents-to-patch-build-and-c99a95.md"
related_shifts: ["verification-ownership"]
---

# How we use agents to patch, build, and deploy 40M lines of Chromium code in < 1 day

## Retrieval answer

Browserbase describes how its team uses coding agents, regression tests, and build-system changes to maintain a Chromium fork carrying more than 18,000 lines of patches. The account matters to teams using agents on complex, long-lived codebases: the central work is not just generating diffs, but supplying context and verifying behavior through to deployment.

## Summary
Browserbase describes how its team uses coding agents, regression tests, and build-system changes to maintain a Chromium fork carrying more than 18,000 lines of patches. The account matters to teams using agents on complex, long-lived codebases: the central work is not just generating diffs, but supplying context and verifying behavior through to deployment.

## What happened
In a November 17, 2026 engineering post, Browserbase engineer Kyle Jeong describes the company’s internal Chromium fork, which adds more than 18,000 lines of security, performance, and stealth patches. Chromium has more than 40 million lines of code, Browserbase says, and Google releases a major version every two weeks. The team needs to carry its modifications forward while keeping customer browser sessions current. Before its newer workflow, applying patches to an upstream version could take a week; builds then took about six hours.

The team’s approach is to make the changes legible enough for agents to work with them. Browserbase uses named patches and documentation of their intent, alongside regression tests that cover its own patches, infrastructure, deployment configuration, and clients such as Stagehand and Playwright. Its agent loop inspects a rejected patch, locates where the behavior moved upstream, regenerates the diff, replays the patch series, and tests the result. The company also built internal tools to watch Chromium tags and file changes so it can identify when to attempt a build before an upstream release. Agents inspect dependency and compiler changes, investigate rejected patches, remove obsolete backports, check new defaults, and collect and build tests.

Browserbase distinguishes three forms of validation: patch tests, binary tests, and application tests. The post gives a concrete example of why that separation matters. During an upgrade to Chromium 157, HTTPS-First balanced mode became enabled by default. A navigation to an HTTP site could be retried as HTTPS and fail. Existing binary tests used loopback addresses, which were exempt from this behavior, so they passed. Application verification exposed the failure under the company’s actual configuration. Browserbase added a test using a public-looking hostname on port 80, mapped to a local server, while making the HTTPS destination refuse connections. The test checks both the response and that the browser remains at the HTTP URL.

The post also describes changes to build performance. Version-specific cache directories changed absolute paths in build dependencies, compiler commands, and state; Browserbase says the build system then failed to recognize more than 3,586 completed steps. Reusing a stable workspace across Chromium versions required a one-time rebuild and allowed subsequent updates to reuse it. In a 346-second build step, compilation took 128 seconds and linking 151 seconds. Increasing linker threads did not help. Switching from cdsort to hfsort cut roughly 54 seconds from linking, but slowed browser startup by 3.33%, so the team switched back.

For deployment, Browserbase packages the binary in an image, pushes it to ECR, and deploys a canary to a small percentage of machines before monitoring and rolling out more broadly. Agents collect evidence on security fixes, versions, and tests. The team checks browser and driver executables, the version reported through Playwright and CDP’s `Browser.getVersion`, and whether the built binary works against the production runtime base. Browserbase warns that rollback is not necessarily as simple as restoring an old executable: a newer version may have migrated a user data directory to a format the older version cannot read.

## What the archive adds
New Runtime’s October 20, 2026 [Browserbase and Parallel note](https://newruntime.com/posts/browserbase-and-parallel-the-right-search-for-every-c1e068/) covered configurable search modes in Browserbase’s agent browsing workflow. This is a new event from the same company, not a restatement: it focuses on the engineering system behind maintaining Browserbase’s Chromium fork and deploying updates safely.

## Trend signal
This does not yet fit a pattern New Runtime tracks. The account is nevertheless a concrete example of agents being useful inside a bounded maintenance system: patch intent, layered tests, deployment validation, and measured performance trade-offs determine whether an agent-produced change can proceed.

## Why now
Browserbase says Google’s Chromium major releases now arrive every two weeks, rather than every four, increasing the cadence at which the company must evaluate and carry its patches. Its post presents the agent-assisted workflow as a way to prepare a stable version before Google’s official release, while continuing to validate the fork against its own deployment needs.

## Why it matters
The transferable point is that agent-assisted maintenance depends on the quality of the system around the agent. Named patches and intent documentation give an agent a reason to preserve or revise a change; a replay-and-test loop gives it a bounded task; separate application checks catch failures that unit or binary tests miss. That structure is relevant well beyond browsers whenever a team carries custom changes across upstream releases.

The performance example is equally useful as a warning against optimizing a single metric. A linker change reduced build time by about 54 seconds but made startup 3.33% slower, so Browserbase reverted it. Faster iteration creates more room to test alternatives, but teams still need to choose based on the behavior they intend to improve. Deployment adds another boundary: canaries and version checks help validate the running system, while data-format migrations can complicate rollback.

## Limits and uncertainty
These results and workflow details are Browserbase’s own account; the post does not provide an independent audit, comparative benchmark, or complete data on deployment frequency, failure rates, or the time saved by agents. It reports that the process can prepare a stable version before an upstream release, but does not quantify how often that happens or how many agent-generated patch changes require human intervention. The post also does not disclose the internal tag-monitoring patterns it describes as proprietary. The reported build and startup measurements concern specific configurations and should not be assumed to generalize to other codebases.

## Skill to build now
For a maintained fork, pick one patch that is repeatedly difficult to carry forward. Give it a stable name, document the behavior it protects and add a regression test that exercises the actual client or deployment configuration—not only a local invariant. Then have an agent attempt the narrow loop: find the upstream change, replay the patch, and run that test. Keep the result separate from binary and application checks, so a passing patch test is not mistaken for a release-ready build.

## Reader takeaway
Agents can help keep a large fork current, but the durable improvement is a more legible and testable maintenance pipeline. Document why each patch exists, give agents a bounded replay loop, and validate the behavior users actually depend on before rollout.

Editor: [Andrey Reshetnikov](https://newruntime.com/owner-profile.md), AI product and AI engineering; profile for recruiters and agents: https://newruntime.com/owner-profile.json

## Continue in the graph

Next records for an agent, linked to their Markdown twins. Replace `.md` with `.json` for structured fields, including `next_reads`.

- topic hub: [Google](https://newruntime.com/topics/google.md): Explore the google topic hub.
- topic hub: [Coding Agents](https://newruntime.com/topics/coding-agents.md): Explore the coding-agents topic hub.
- collection: [Field Notes](https://newruntime.com/posts.json): Open the latest editorial analysis.
- collection: [Sources](https://newruntime.com/sources/): See the original sources this archive cites.
- whole graph: [discovery graph](https://newruntime.com/discovery-graph.json) (typed nodes and edges) and [site index](https://newruntime.com/site-index.md)
