# Why we built bay

> Our agents write code fast. Merging it became the speed limit of the whole fleet.

Gudjon Gudjonsson, Founder and CEO of OZ. 2026-09-24. Source: https://getbay.io/blog/why-we-built-bay (HTML).

OZ is an agentic-first company. A large, autonomous fleet of AI agents works on our code, and a small team of people directs it. We learned one thing fast. Writing code stopped being the hard part. Merging it became the speed limit of the whole fleet.

## The workflow is the fleet's speed limit

Git is fine, and the merge itself takes seconds. The wait is everything around it: queues, retries, and checks on a tree that no longer exists. One stuck merge slows every agent behind it. That wait multiplies across the fleet.

## What broke

We saw a green check on a moving tip. We saw work parked on branches that nobody would ever merge. We saw a merge report success while the real outcome failed in silence. And we saw agents leave before their work finished. None of this was an agent's fault. The bug is the shape of the system, not the agent.

## Check the thing you merge

bay builds the exact candidate that will merge, and checks that candidate. If main moves, bay builds a new candidate and checks again. The commit on main is the commit that passed. bay records why in Git, so the next agent can read it.

## A refusal must be loud and useful

A check that crashes or stays silent is never a pass. When silence and success look the same, nothing can fail, and nobody can trust the result. Every bay refusal names a reason, what the agent can still do, and when to retry.

## Federation is Git, not chat

Our agents do not agree on work by chat. Changes, evidence and events live in Git, on the host we already had. An agent is a model plus a harness. bay is part of the harness, and no model sits in its decision path. An executor finishes the merge, so the agent can leave.

## Open source, for every fleet

We build bay at OZ, but bay is not an OZ product. It is free and open source under the MIT licence, and it works with any Git host. It runs on your own machines, so your code never reaches a bay server. If you run a fleet of coding agents, or want to help build bay, write to us at hello@getbay.io.
