Agentic Pattern Libraryby Vikas Goyal
← All patterns
55

Review Capacity Limits

Also known as: WIP limits for agents, review throttling, review-paced delivery

Cap open agent changes at what reviewers can handle, so review wait stays short instead of growing into a queue.

TrackAI-native software delivery FamilyVerify Maturity Emerging ChangesCoordination
01

Problem

Coding agents can open pull requests far faster than people can review them. When nothing limits that, a queue builds: changes wait days, go stale, conflict with each other and get merged in a rush. The team produces more code but delivers no faster, and failures rise as reviews get shallower.

  • Agent output is limited by compute; review is limited by people.
  • Waiting changes go stale and conflict with newer ones.
  • Idle agents feel wasteful, so teams keep them busy.
  • Some changes are urgent and shouldn’t wait behind routine work.
02

Solution

Treat review as the bottleneck it is and limit work in progress to match it. Measure how many agent PRs your reviewers can properly handle per day, and cap the number of open agent PRs at roughly that level per team or repository. When the cap is reached, agents stop opening new PRs and instead work on things that don’t need review yet: tests, planning the next change, or fixing comments on open PRs. Order the queue by priority, not arrival, with a fast lane for urgent fixes. Watch review wait time, and raise the cap only when reviewers or AI first-pass review add capacity.

03

Diagram

Backlogwaiting is free Agentsopen PRs Review queuecap: 10 open Reviewers~8 a day fast lane · production fixes Review-free worktests · plans · comment fixes queue full raise the cap onlywhen capacity grows

The cap moves the queue from review, where changes go stale, to the agents' backlog, where waiting is free.

04

When to use

Use it when

  • Review wait time is growing as agent output grows
  • Open agent PRs often go stale or conflict
  • Teams feel busy but lead time isn't improving
  • You can measure review wait and throughput

Avoid it when

  • Review keeps up easily with current volume
  • Tiny teams where one person reviews everything in minutes
  • As a substitute for adding review capacity when demand is genuinely higher
05

Trade-offs

Latency Shorter review wait; changes land faster end to end
Cost Agents sometimes idle or do other work
Complexity A cap, a priority queue and wait-time tracking
Reliability Reviews stay thorough; fewer stale conflicts

Gains

  • Review wait stays short and predictable
  • Fewer stale PRs and merge conflicts
  • Makes the real bottleneck visible, so investment goes there

Costs

  • Agent capacity sits partly unused
  • Needs agreement on priorities for the queue
  • A cap that's too low slows teams for no reason
06

Worked example

Scenario
A platform team with 3 reviewers and 4 coding agents. Open agent PRs had grown to over 30, and review wait was close to a week.
  1. MeasureOver two weeks, reviewers properly reviewed about 8 agent PRs a day between them.
  2. CapSets a cap of 10 open agent PRs. Priority order: production fixes, then the current milestone, then cleanups.
  3. At the capWhen 10 PRs are open, agents stop opening new ones. They add missing tests to open PRs, address review comments and write plans for the next tasks.
  4. Fast laneA production bug fix skips the queue and is reviewed within the hour.
  5. Four weeks laterReview wait falls from days to under a day, and stale PRs nearly disappear. After adding AI first-pass review, reviewers handle about 12 a day, so the cap rises to 14.
07

Failure modes

FailureSymptomMitigation
Cap ignoredPeople bypass the limit for "just one more"Enforce it in tooling; only the fast lane skips the queue
Wrong capQueue still grows, or reviewers sit idleSet it from measured throughput and adjust monthly
Everything is urgentThe fast lane fills upStrict fast-lane criteria, such as production incidents only
Agents idlePaid capacity does nothing while cappedGive agents review-free work: tests, plans, comment fixes