← Back to Playbooks
Engineering

Verify-Loop CI for Agent-Written Code

When agents author most of the code, CI — not typing — is the bottleneck

Operator recipe for the verify loop when agents write most of the diff and CI is what actually gates ship. Anthropic’s public CI post (2026) reports: CI job volume increased 25x over 6 months; Claude authors ~80% of the code engineers ship; engineers ship 8x as much code per quarter versus 2021–2025; tests across the codebase grew 10x. Those figures are Anthropic’s, not Institute metrics. The recipe: horizontal test-impact / selection (do not run every test on every PR); keep selector state out of singletons; instrument lag so jobs-in equals jobs-out; plan for exponential CI load. Primary: https://claude.com/blog/agentic-coding-is-straining-ci-heres-how-we-scaled-test-impact-analysis-at-anthropic. Optional support (embedded evaluators only, not a restatement of Dario Amodei’s broader pacing essay): https://darioamodei.com/post/we-must-pace-the-frontier. Related catalog: METR Inspect Hawk is an eval harness, not a test-selection service.

0
Registrations
$1,000
Prize Pool
Feb 23, 2026
Starts
0%
Complete

Core Workflows (6)

Each workflow represents a critical business function. Click any workflow to see detailed automation architecture.

01

Treat CI as the bottleneck, not authoring

Led by: CI Operator

Once agents author most code and PR review speeds up, CI is the constraint. Cite Anthropic’s public numbers only: 25x CI jobs in 6 months, Claude ~80% of shipped code, 8x ship rate vs 2021–2025, tests 10x. Do not invent Institute throughput or revenue figures. Smaller, more granular agent PRs and overnight/weekend agent activity raise the CI floor; bursts still follow human approval.

Sub-Agents
Authoring Agent
Skills Required
CI observabilityAgentic SDLC
Human TouchpointConfirm you are measuring CI job volume and gate time, not lines typed
02

Horizontal test-impact / selection

Led by: Test-Impact Selector

Do not run every test on every change. Anthropic’s service is a deterministic test-impact / selection layer: a listener records results from every CI run; a selector reads history and package relevance to decide which tests run on which opened PRs. Agents need a specific valid set to self-verify; humans can ignore irrelevant failures, agents cannot. Vendor test-selection products exist in this category — build or buy, same split.

Sub-Agents
Listener Worker
Skills Required
Test impact analysisPackage-aware selection
Human TouchpointDo not default every-test-on-every-PR once agent PR volume is the load driver
03

Keep selector state out of singletons

Led by: CI Operator

A single-process listener/selector cannot shard: one writer holding per-test history blocks horizontal scale. Anthropic’s path: patches (bigger machine, then per-package shards, then daily restarts) bought less time each round. The durable design offloads history to a store: any listener worker appends a job-result to a journal and stays stateless; a small consumer rolls the journal into per-test history; the selector looks up history. Do not keep the running selector state inside the process.

Sub-Agents
Listener WorkerHistory Consumer
Skills Required
Stateless workersJob-result journal
Human TouchpointRefuse a singleton that must be the only writer of test history
04

Instrument lag so jobs-in equals jobs-out

Led by: CI Operator

Listener lag is the failure mode: stale selector data runs the wrong tests (already-flaky or already-failing suites) and misses new/fixed tests. Anthropic’s operator metric: the same number of CI jobs coming in should equal the same going out. Instrument queued unprocessed job-result events. Use those signals as the agent’s eyes so it can hill-climb incrementally. A lagging listener is a verify-loop bug, not a reason to skip CI.

Sub-Agents
Lag Monitor
Skills Required
CI lag metricsThroughput equality
Human TouchpointPage on listener lag (jobs queued ≠ jobs processed), not only on red builds
05

Plan exponential CI load in v0

Led by: CI Operator

Anthropic’s advice, from the same public post: whether you build or buy, assume the architecture will be at a 25x load within two quarters. Account for 10–20x perceived scale in v0 if budget allows. Quick patches buy a fraction of the time they did a year ago; rewriting the service also takes a fraction of the time now that authoring is not the bottleneck. The insight is not “buy a bigger box” — it is plan the exponential before the singleton pages.

Sub-Agents
Capacity Planner
Skills Required
Capacity planningTest selection architecture
Human TouchpointBudget and design for 25x CI in two quarters (Anthropic’s public planning bar), not last quarter’s job count
06

Optional: give embedded evaluators the same CI eyes

Led by: Eval Operator

Dario Amodei’s pacing essay (https://darioamodei.com/post/we-must-pace-the-frontier) commits Anthropic to embedded third-party evaluators (example: METR) with employee-like access to verify safety practices and report incidents. Use that here only as optional instrumentation context: expose jobs-in = jobs-out, selector lag, and selection coverage so an embedded reviewer can see the verify loop. This playbook does not restate the essay’s coordination steps. METR Inspect Hawk remains the catalog eval harness — separate from test selection.

Sub-Agents
CI Operator
Skills Required
Embedded evaluatorsMETR Inspect Hawk (evals, not selection)
Human TouchpointShare CI throughput/lag telemetry with reviewers; do not treat evals as a substitute for test selection