Skip to content
The AI Builder's Newsletter

How to plan features for AI coding agents

Say what the feature must do and how you'll know it's done. Leave the how to the agent.

The most common mistake we see when teams start using AI coding agents seriously is not in the prompting. It is in the planning. Either there is no plan, and the agent invents the product as it goes, or there is far too much of one: a long document that spells out every file and function, written by an expensive model, which a cheaper model then dutifully types out.

Both fail for the same reason. They get the division of labour wrong. Humans are good at saying what a feature must do and how to tell when it is done. Modern coding agents are good at working out how to build it. Planning for agents means doing the first part properly and then getting out of the way.

Here is how we plan a feature before any agent touches the code.

read the rest, free

Enter your email to unlock the article. You will also get the AI Builder's Newsletter with practical notes on building & shipping products with AI.

No payment, no card, nothing else to fill in. Unsubscribe any time.

Focus on what, not how

A good feature plan reads like a brief, not a design document. It states the business requirement, the expected behaviour and the acceptance criteria: what a user can do once the feature exists, what happens in the edge cases that matter, and what has to be true for the work to be accepted.

It does not say which files change, which functions get added or which library to reach for. Capable agents make those decisions well, and they make them better with the information that only emerges once they are in the code. A plan that fixes the implementation in advance takes that away.

If you catch yourself writing "add a method to the UserService that...", stop. Write what the user needs instead.

Plan the architecture separately

That does not mean technical decisions do not matter. They matter a great deal, and the significant ones should be settled before the work is broken into slices: the high-level architecture, the integration points, the constraints you are not willing to bend, the decisions that would be painful to reverse.

Have the planner propose those as short decision records, and have a human accept them before slicing. Keep a short architecture overview up to date to match. Architecture is shared by many features, so it belongs in persistent context, linked from each feature rather than repeated in every issue. We write about where that context lives in Why agents need context.

Break the feature into vertical slices

With requirements and architecture settled, cut the feature into vertical slices. The term is worth explaining, because most of the value of planning sits in it.

Most software is built in layers: a database, a backend, a frontend. The obvious way to split a feature is by layer: first the tables, then the API, then the screens, then a final step to wire it all together. That is a horizontal split, and models do it too: in one of our test runs, a cheaper model skipped our planning step altogether and started building in exactly that order: schema, backend, frontend, then "wire it up".

A vertical slice delivers one thing a user can do, through whichever layers it needs. For a feature that spans a database, a backend and a screen, think of a layered cake. A slice gives you some of every layer. Nobody wants to be served the sponge this week and the icing next week.

"Add the database table" is not a slice. "A signed-in user can save a draft and see it in their list" is.

Why vertical slices matter

  • Each one can be checked. A slice has acceptance criteria a user would recognise, so it can be tested from the outside, then built, reviewed and accepted on its own. A database table cannot be accepted until everything above it exists.
  • The product works after every slice. You can try it, show it and change direction after the first one, rather than finding out at the end.
  • Problems surface early. A horizontal plan hides the hardest part in the last step, where every layer meets for the first time. Vertical slices do that integration every time, starting with the first.
  • Agents can own them. A slice is a complete unit of work with its own definition of done, so an agent can build and verify it on its own. Several agents can build slices at once, if the plan says which ones: no dependency between them, no screen, table or module in common, and any rule they share settled first. For example: "1 first; then 2 and 3 together; then 4." That is the subject of Running coding agents in parallel.

A good first slice is often the thinnest path through the whole system: one screen, one endpoint, one table, working end to end. Every slice after it adds to something that already works.

Not too big, not too small

Sizing is a judgement, and both directions have a cost. A slice that is too large bundles decisions together, takes longer to review and is more likely to go wrong somewhere in the middle. A slice that is too small adds coordination overhead: more hand-offs, more integration, more context lost between pieces.

Aim for one clear outcome that can be checked on its own, with enough context for an agent to build it without help. Settle the business questions you know about before building. An agent may still find a decision that genuinely needs a person; that is the system working, not a planning failure, but if it happens on every slice, the plan was not clear enough.

Put the work in your tracker

Keep a short feature document as the source of truth: why the feature exists, what it delivers, its acceptance criteria and the rules its slices share. Then make the work runnable in your tracker: one issue for the feature that links to the document, and one issue per slice with its acceptance criteria, its dependencies and what it touches.

This matters more with agents than it did before. The tracker becomes the source of work: an agent can read what is ready, pick it up, and update it when done, and so can the next agent. The document holds the context; the tracker holds the queue.

Manage dependencies and readiness

Some slices depend on others. Make that explicit in the tracker: which issues can start now, which are waiting on another, which are blocked by a decision. Agents are good at working through a dependency graph when there is one, and bad at guessing one that exists only in someone's head.

The payoff is that an agent, or a person, can ask "what can I start?" and get a true answer.

Give agents autonomy

Once a slice is well defined, hand it over and let the agent decide how to build it. Do not prescribe the implementation unless there is a real reason, such as a convention the codebase already follows or a constraint from the architecture.

This is the part that takes trust, and it is worth saying why it pays. Agents are now capable of making good technical decisions on their own, and they make them with the full picture in front of them. Instructions written before the work started are, at best, a guess at that picture.

The expensive planner trap

There is a workflow that looks like planning but is really the opposite, and it is common enough to name. Use a top-tier model to plan a feature. Have it write detailed implementation instructions, often including most of the actual code. Hand that to a cheaper model. Have the cheaper model reproduce it.

It feels efficient. It is not.

  • You generate much of the implementation twice, so tokens and money are wasted.
  • The implementing model is locked into choices made before anyone was in the code, without the information that turns up during implementation.
  • The implementing agent becomes a transcription tool rather than an engineer.
  • Long plans eat context that could have gone to understanding the requirements and solving the actual problem.
  • A detailed plan looks settled even when its choices were provisional, so it is easy not to question it.

The better division: use a capable model to establish requirements, acceptance criteria, the important architectural decisions and the slice boundaries. Then let a cheaper but still capable model work out the implementation, guided by tests and verification. How that build and review loop works is the subject of Plan, build, review, and the cost side of it is in Choosing AI coding models.

Match the depth to the risk

Finally, none of this is a ritual. Choose the lightest route that is safe. A small, obvious, low-risk change can just be done. A single slice needs one issue with acceptance criteria. A feature document and a slice plan are for bigger work, or anything touching money, authentication, deleting data, the data model or a new external service. Keep the process light enough that people actually follow it.

The point of planning for agents is not to control them. It is to give them a clear target, and then let them hit it.