Skip to content
All posts

Using AI agents in a real delivery workflow

What changes when an agent picks up well-scoped tickets, and the guardrails that keep humans in charge of what ships.

Matt Claffey · 2 min read

AI coding agents are good enough now that the interesting question isn't "can it write the code?" but "how do I fit it into the way my team already ships?" The answer, in my experience, is mostly about scope and guardrails rather than the model.

Agents need a definition of done

An agent is most useful when the work is well scoped and the finish line is written down. A ticket that says "improve the blog" produces a guess. A ticket that lists the pages, the data source, the behaviour and what complete looks like produces a pull request you can actually review.

The side effect is that tickets get better for humans too. Writing for a reader with no context forces you to state the outcome, link the content model and spell out the edge cases.

Gate what an agent may start

Not every idea in the backlog is ready. I use a single agent-ready label as the gate: an agent only picks up issues that carry it, and the rule lives in the repo's CLAUDE.md so every session sees it. That keeps half-formed ideas from turning into half-built features.

Give it standards, not just a task

The agent should inherit the same standards as a new hire:

  • The architecture and conventions the codebase already follows
  • Commands to build and type check
  • Branch and pull request naming
  • A hard rule never to merge or approve its own work

For repeat work, a specialist agent definition with its own scope and done criteria beats a long prompt every time.

Review like you would a colleague

A green build is not the same as done. In my own setup, the first pass of a feature passed every check and still rendered dark text on a dark background. Somebody has to look at the deploy preview. That can be a lead agent doing a first review, but a human approves the merge.

Where the time actually goes

Agents compress the making. They don't remove the deciding. The time I save on implementation goes into writing clearer issues and reviewing more carefully, which is a good trade for a small team.