A red dinosaur looks at a board of four cards; the pinned card with three red check circles is highlighted, and a red line runs from it to a laptop showing a red checkmark

A good engineer reads a vague ticket and walks over to ask what you meant.

An agent doesn’t. It reads the ticket, fills the gaps with whatever seems most likely, and builds it. Quickly, cleanly and with complete confidence. If the ticket was vague, you get a well-made version of the wrong thing.

When I built an app with agents, the biggest change to how I work wasn’t the code. It was the tickets. Here’s the template I landed on and why each part is there.

The ticket template

Every ticket has six parts:

  1. The why, in one or two sentences. What problem this solves and for whom. Agents make dozens of small decisions inside a ticket. Knowing the purpose is how they make them well.
  2. The requirements it covers, by number. Each ticket points back to numbered lines in the PRD. The agent can go read the full context, and I can trace any piece of code back to why it exists.
  3. “Done when.” A short list of things that have to be true, written so each one can be checked.
  4. Out of scope. What this ticket deliberately doesn’t do. More on this below; it’s the part people skip.
  5. A definition of done. The same for every ticket: tests pass in CI, the feature’s analytics events fire, and nothing else broke.
  6. Links and flags. What this ticket is blocked by, what it blocks, and whether it touches anything sensitive.

None of this is new. It’s what a good ticket always needed. The difference is that a person could get away with a thin one and an agent can’t.

Write “Done when” like a test, not a wish

The most useful part of the ticket is the “Done when” list, and the most common mistake is writing it like a goal.

“Saved addresses work well” isn’t checkable. Neither is “the flow feels fast.” An agent will decide it’s done, and it’ll be right by its own definition.

Compare it with this:

Every line is something you can test, and most of them are something the agent can test itself. That’s the shift. When the definition of done is something a machine can check, the agent can keep working until it’s actually done, instead of until it looks done.

If you’ve written acceptance criteria for a PRD, this is the same muscle. It just has to be sharper.

Say what’s out of scope

Agents are eager. Ask for saved addresses and you may also get address validation, a map preview and a new settings screen. Each one looks helpful. Together they’re a pull request three times bigger than it should be, full of decisions nobody made.

So every ticket says what it isn’t doing: “No address validation; that’s ticket 41. No changes to the settings screen.” This keeps the work small enough to review, which matters more than it sounds. The bottleneck with agents isn’t writing code. It’s reading it.

Make the order explicit

A person knows not to build checkout before the cart exists. An agent knows it only if you tell it.

Blocking links do that. Each ticket lists what has to exist before it can start. When we planned the build, mapping those links was most of the sprint planning: it showed what could run in parallel, what had to wait, and which blockers had nothing to do with code at all, like an account that takes a week to approve. Those went first.

Without the links, an agent will happily build on top of something that isn’t there yet, and stub it out in a way you’ll find later.

Flag what a person has to review

Not every ticket needs the same depth of review. A layout tweak can be checked in a minute. Anything touching sign-in, payments, personal data or who can see what gets a flag, and a flagged ticket doesn’t merge until a person has read every line.

That’s the line I don’t move. The agent does the work. I’m accountable for it. The flag is how I make sure my attention goes where the risk is.

Turn every surprise into a ticket

No plan survives the build. An agent finishes a ticket and the review turns up an edge case nobody wrote down, or a rule that needs tightening.

The temptation is to fix it inside the current ticket. I don’t. It becomes a new ticket with its own “Done when,” prioritized with everything else. The current ticket stays small, the gap gets a real definition instead of a quick patch, and the backlog stays an honest picture of the work. A backlog that grows while you build isn’t a sign of a bad plan. It means you’re finding problems while they’re cheap.

What I’d do Monday

Take the next ticket you’re about to hand to an engineer or an agent and add two things: a “Done when” list where every line can be checked, and an out-of-scope line.

Then read it as if you’d never seen the project. If you’d have to guess at anything, so will the agent. And it won’t ask.