Lore

Foreground / Background / Remote Agent Execution Model

Overview

Three execution modes for running coding agents, distinguished by locality and interactivity:

Application

Ankur Goyal (Braintrust) matches the mode to the task rather than defaulting to one: quick guided edits stay foreground; long or exhaustive experiments (see Agent-Driven Exhaustive Experimentation (Practical vs. Theoretical Quality)) get pushed to background or remote. Concrete remote example: testing EC2-to-S3 read latency under thousands of concurrent connections was run remotely at near-production scale because a local machine couldn't sustain the realistic load.

An emerging variant of the background mode: teams building their own in-house background-agent tooling on top of infrastructure exposed by major model providers, rather than relying only on an off-the-shelf background-agent product — a sign the underlying primitives (compute, orchestration) are now exposed enough for custom layers.

Related

Concurrent Agent Session Management, Agent-Driven Exhaustive Experimentation (Practical vs. Theoretical Quality)

Notion's Boxy: background-agent handoff for small fixes

Notion's internal "Boxy" tooling runs background agents on pre-provisioned VMs. An engineer hands off a small, loosely specified fix — a few sentences of description plus a screenshot — by mentioning the agent in a comment, and receives a working, self-tested pull request back minutes later. Illustrated with a real example: a "copy link to tab" feature request handed off this way and shipped without the requester writing code. This is the low-friction end of the background-agent spectrum: minimal spec in, verified PR out, no synchronous engineer attention required. Related: Specification-Driven Development.

Background-Agent-on-VM Strategy

Background-Agent-on-VM Strategy

Hooking coding agents to standing remote VMs lets engineers delegate a task or fix request immediately, without spinning up a local dev environment first. Notion's boxy-agent-vm-fleet is a concrete implementation: VMs pre-installed with Codex and Claude Code sit ready, and a task or comment mentioning the agent dispatches work to one of them.