Where agents should listen

Part 1 of 2 in The software factory, lights on

In What done means now, I argued that “done” is shifting from shipped to stays true. Which immediately leaves you with a practical question: if agents are going to do more of the work, where do you actually plug them in?

On most teams today—ours included—the answer is “wherever an engineer happens to open a chat window.” That means the agent is only as useful as your memory to summon it. It doesn’t hear the alert going off at 2 a.m. It doesn’t see the bug report rotting in the support queue. It only hears whoever happens to be typing at it.

Quick heads-up before we go further: we haven’t built what’s below yet. This is the blueprint I’d pitch to my own team—and the reasoning behind it—written down so you (and they) can poke holes in it.

Borrowing a map

Addy Osmani’s Own the Outer Loop gave me the words I was missing. The short version: agents now run the inner loop (read the context, write the change, check it, repeat), while you own the outer loop—deciding what goes in and what’s allowed out.

Work leaves the inner loop as evidence: tests, a diff summary, notes on risk. A human reads that evidence and gives the verdict: ship, block, or redirect. Run a bunch of those loops in parallel and you get what Addy calls a software factory.

Here’s my take on his picture:

Events
  • PR opened
  • Alert fired
  • Bug report labeled
  • Issue marked agent-ready
The agent listens here
Agent loop
  1. Read context
  2. Generate
  3. Verify, repeat
In a sandbox, with traces and tests
Evidence
  • Tests
  • Diff summary
  • Risk notes
Human verdict

Ship, block or redirect

Lights off fails here

Shipped work reaches users, monitoring watches it, and alerts and feedback come back as new events.

Agents listen at the edges and people judge in the middle. Redrawn after the software factory in Addy Osmani’s Own the Outer Loop.

The one thing the essay leaves open is what kicks off a loop. It names the inputs—product intent, incidents, user feedback—but not how they actually reach the agent. That’s the gap I want to look at here.

Listen at the edges, judge in the middle

Here’s my rule of thumb:

Wake an agent with an event, not with a person remembering to ask. And every time it wakes up, it should leave behind evidence you can judge in a few minutes.

That puts agents at the edges of your lifecycle, where signals already show up, and keeps people in the middle, where judgment actually matters. Four events cover most of what’s worth wiring up:

Event Stage What the agent does Evidence it leaves Who decides
PR opened or updated1 Review Reads the diff, runs the tests, checks it against the ticket Diff summary, test results, risk notes The reviewer
Alert or incident opened2 Operate Pulls the trace, reproduces the failure, drafts a fix A test that failed and now passes, plus the fix as a PR The on-call engineer
Bug report labeled3 Plan Finds duplicates, reproduces it, drafts a small fix Repro steps, linked duplicates, a PR or “can’t reproduce” The team that owns the area
Issue marked agent-ready4 Build Builds against the written outcome and its checks A PR, a test for each acceptance check, open questions The product owner and a reviewer

Notice two things I left out on purpose? There’s no row where the agent makes the call, and there’s no event called “an engineer felt like it.” Of course you can still open a chat whenever you want—it just shouldn’t be your integration architecture.

Wire them in this order

If you hook up all four of these tomorrow, you’ll bury your team in pull requests nobody has the bandwidth to review. In a GitLab survey this June, 85% of developers and technology buyers agreed that AI has already moved the bottleneck from writing code to reviewing and validating it.5

So don’t start where the agent writes code. Start where it adds evidence:

  1. 1. Evidence on every PR
    Trigger
    A pull request opens
    Agent
    Summarizes the diff, runs the tests, writes risk notes. Writes no code.
    Risk
    Low: a wrong note gets ignored.
    Payoff
    Faster, better-informed reviews.
  2. 2. Incidents
    Trigger
    An alert fires
    Agent
    Reproduces the failure and drafts a fix with a test.
    Risk
    Medium: approving at 2 a.m. without reading.
    Payoff
    Shorter time to recover.
  3. 3. User feedback
    Trigger
    A bug report is labeled
    Agent
    Finds duplicates, reproduces, drafts small fixes.
    Risk
    Medium: noisy, duplicate input.
    Payoff
    Shorter path from complaint to fix.
  4. 4. Product intent
    Trigger
    An issue is marked agent-ready
    Agent
    Builds against a written outcome and its checks.
    Risk
    Highest: the wrong thing, built well.
    Payoff
    People spend their time on what to build.
Wire agents in this order. Each step adds autonomy and risk, and each one still ends with a person’s verdict.
  1. Evidence on every PR comes first because it asks for zero trust. The agent writes nothing that ships—it just makes the pull requests your team is already opening easier to judge. If its notes are off, you ignore them, and you get to see how sharp the agent really is before it touches a single line of production code. Better yet, it builds the muscle everything else depends on: reading evidence before giving a verdict.
  2. Incidents come second because the signal is clean and the payoff is obvious. An alert has a start time and an end time. The real trap here is human pressure: at 2 a.m., a green test and a confident summary are dangerously easy to approve without reading.6
  3. User feedback is third. It’s a lot noisier—half of it is duplicates, and another slice is a feature request wearing a bug’s trench coat. Agents are great at sorting, so your first win here is triage, not auto-fixes.
  4. Product intent is last, because it requires something most teams don’t have yet: a written outcome with checks an agent can actually run against. That’s what the last post was about. Skip that step and you’ll get the wrong thing, built very, very well.

Where the lights stay on

If you look back at the diagram, one box has a warning on it: the verdict.

A “lights-off” factory—one that runs in the dark with nobody watching—works fine for stamping car doors. In software, it falls apart the second someone has to answer for a change in production.

So my line is simple. An agent can propose any of these, but it should never do them alone:

That last one is the easiest to overlook. Give an agent the keys to edit the test that’s failing it, and sooner or later it’ll discover the shortest path to green.

What this actually buys you

None of this is about taking people out of the loop. It’s about moving you to a better spot in it.

Instead of spending an afternoon typing boilerplate wrangling syntax, you spend ten focused minutes on a verdict with real evidence sitting right in front of you. The goal isn’t fewer engineers—it’s putting your judgment at the checkpoint where it’s worth the most.


Of course, “better judgment at the checkpoint” is a tough line item to put in a budget. That’s what the next post is for: If your tech team asks for agents is written for the person who actually has to sign off on the spend.

Footnotes

  1. On GitHub, a pull_request event can kick off a workflow, and Anthropic’s Claude Code GitHub Action is one ready-made way to run an agent from it. ↩

  2. Most error trackers and paging tools—Sentry and PagerDuty among them—can fire a webhook the moment an alert triggers. ↩

  3. Jira, Linear, and most help desks can fire a webhook when a label is added. "bug: customer-reported" is a solid first label to start with. ↩

  4. The same label trick works here, with one hard rule: no label without a written outcome and acceptance checks in the issue. ↩

  5. GitLab’s AI Accountability Report, run by The Harris Poll with 1,528 developers and technology buyers in six countries. Worth noting: it measures what people believe, not how long review actually takes. ↩

  6. Ask yourself honestly: if PagerDuty woke you up twice tonight and a PR showed up with a neat summary and a green check, how closely would you read the diff? That’s why the review habit from step 1 has to come first. ↩

  7. Addy calls these checks back pressure: the tests, types, hooks, and sandboxes that push back on an agent’s work. Give an agent as much autonomy as those checks can verify—and never the power to switch them off. ↩


Tagged: ai agents, engineering culture, software delivery

All posts