Skip to content
mentoor

Topic 3 of 5 · 5 min read

Supervising several agent sessions at once

Goal: Plan how many parallel sessions to run and when to review each, given one reviewer's real capacity.

The number of agents you can run is set by how much code you can properly review, not by how many terminals you can open.

Check yourself · 1 of 3

What mainly limits how many agents you can usefully run in parallel?

Choose one answer

Why it matters

Agents write fast. Review is slow, and it is yours. Simon Willison, who runs several agents at once, points out that the natural bottleneck is how fast he can review the results. If five agents each hand you a large diff in the same hour, you will skim, and skimming is how wrong code reaches main. A SmartBear write-up of the Cisco review study recommends reviewing no more than 200 to 400 lines at a time and for under 60 minutes, because defect detection falls off after that. Use that as your budget.

How to do it

  1. Measure your review capacity. How many focused review hours do you have today? At roughly 200 to 400 lines per sitting, that is your ceiling on code you can honestly check.
  2. Pick the session count from the ceiling. Two or three well-scoped sessions are common. More is only sensible when the tasks are tiny or low risk.
  3. Keep a status board. A plain file or note: one line per session with the task, the branch, the state (running, waiting on me, ready for review, merged) and the next action.
  4. Make agents report in a fixed shape. Ask each to end with: what changed, how it was tested, what it is unsure about, and what it did not do.
  5. Batch your reviews. Do not switch to each agent every few minutes. Review in blocks, one diff at a time, with your full attention.
  6. Stagger the starts. Launch the next session when one is nearly ready for review, not all at once.

Before and after

Weak: Dana starts six agents before lunch. By two o'clock all six are "done", and she has 1,800 changed lines to review before the end of the day. She approves four on a quick scan.

Fixed: Dana starts three agents with small tasks, keeps a three-line board, and reviews each diff as it arrives in 30-minute blocks. One is sent back with a clear note. Nothing waits more than an hour, and nothing is merged unread.

BOARD
search-filters   agent/search   READY FOR REVIEW   180 lines   next: me
csv-export       agent/export   RUNNING            -           next: agent
audit-log-docs   agent/docs     WAITING ON ME      question    next: me, answer

What goes wrong

  • Review pile-up. Finished work waits, branches drift from main, and conflicts grow.
  • Context switching. Flipping between sessions every few minutes costs you the understanding you need to review well.
  • Unsupervised sessions. An agent blocked on a question sits idle, or guesses, until you notice.
  • Rubber-stamping. The faster work arrives, the more tempting it is to approve on the summary alone.

Examples

Capacity as a number

Priya has about two hours of focused review time before the end of the day. At 200 to 400 lines a sitting, that is room for roughly three agent diffs, if each is kept small. She starts three sessions with narrow tasks instead of seven with broad ones.

The fixed report shape

Each agent's brief ends with: "Finish with four lines: changed, tested how, unsure about, not done." Priya reads these four lines first, then opens the diff with the doubts already marked.

Key points

  • Your review capacity, not your terminal count, sets how many agents you should run.
  • A review study reported by SmartBear recommends no more than 200 to 400 lines per sitting and under 60 minutes.
  • Keep a one-line-per-session status board with the task, branch, state and next action.
  • Ask every agent to end with what changed, how it was tested, what it is unsure of and what it skipped.
  • Review in focused blocks and start new sessions as earlier ones finish, not all at once.

Common mistakes

  • Starting as many sessions as the machine can run.
  • Reviewing by switching between sessions every few minutes.
  • Letting agents wait on questions with no board to show it.
  • Approving large diffs from the agent's summary because the queue is long.

Check yourself · 2 of 3

Which end-of-task report from an agent helps a reviewer most?

Choose one answer

Check yourself · 3 of 3

You have two focused hours for review today. What is the sensible plan?

Choose one answer

Practice items, not counted towards your mastery.

Start here

More for this topic