IssueFlow
← Blog

Where should a human stay in an AI coding workflow?

Not where a vendor decided. A practical way to choose the few decisions that change outcomes, and let agents run between them.

By Motty Chen, founder ·

Most AI coding tools have already decided where you belong: at the pull request. The agent writes the code, and you review the diff. It feels responsible. For me it put my attention in the wrong place, approving changes that had already passed every check while the decisions I actually cared about went past without me.

This is how I decide where a human stays in my own workflow. It’s my practice, from building two products with agents, not a rule and not a benchmark.

Three questions for every decision

For each decision the work goes through, I ask:

  1. Is it expensive to undo later? A wrong design becomes code, tests and documentation built on top of it. A wrong variable name is a two-minute fix.
  2. Does it need context only I have? Where the product is going, what a customer meant, which trade-off I am willing to make. An agent can read the code; it can’t read my head.
  3. Can a check decide it instead? Tests pass or fail. Linters pass or fail. A security scan has findings or doesn’t. If a check can decide, a person shouldn’t be the bottleneck.

A decision earns a human when the first two answers are yes and the third is no. In my work, one decision clears that bar almost every time: the design, before any code is written. A structural flaw caught there costs a paragraph. Caught in review, it costs a rewrite.

Where I don’t stay

  • The pull request, when its checks passed. Agent reviewers check it against the approved design, and a failed review routes to rework on its own.
  • Transient failures. A flaky check or a temporary merge block retries. Waking a person for it is waste.
  • Routine failures with a known fix. A merge conflict goes to a conflict resolution stage; failing tests go back to implementation with the logs attached.

Three ways to bring a human in

Choosing the decisions is half of it. The other half is how the question reaches you. There are three different mechanisms, and they suit different decisions.

  1. A planned gate. The workflow stops at a stage boundary and waits for your verdict. Use it for decisions you know in advance you want to make, like my design gate.
  2. An agent that stops and asks. Some decisions only show up mid-task: a missing credential, a spec that can’t be built as approved. Tell each agent, in its instructions, what is worth stopping for. It pauses, asks, and resumes the same stage with your answer.
  3. An escalation ladder. Not every question needs you. In my setup, a question goes to two agent resolvers first and reaches me only if they can’t settle it. Yours can come straight to you.

What my workflow ended up with

One human gate, at the design. Everything after it runs unless something needs me, and when it does, it arrives in one queue with its context, or as a comment on the GitHub issue I can answer from my phone. That shape is what lets me build next to a full-time job.

Yours may look nothing like it. If you ship to regulated customers, you might gate the deploy. If you are new to a codebase, you might gate the pull request for a while and move the gate once you trust the reviews. The point is that you choose, and that moving the gate is a configuration change, not a rewrite of your scripts.

A way to start

  1. Put one gate where the first two questions say yes and the third says no.
  2. Run real issues through it for a week.
  3. Look at where the rework came from. If most of it traces to decisions made before your gate, move the gate earlier. If your gate rarely changes anything, it’s in the wrong place.

One repo, one worker, no card. The fastest way to judge it is to run it on something of yours.

Start free with GitHub