5 min read

Bite off more than you can chew: build the whole feature in one giant pull request, then cut the stack

The standard advice for a big feature is to break it down first. Write the design doc, split the tickets and land small pieces one at a time.

I do the opposite now. I build the whole feature at once in one pull request so big it’s embarrassing. I put it on a test environment. Nobody reviews or merges it. Its only job is to be clicked.

Why build it all first

The unknowns in a feature aren’t in the parts you planned. They live where parts meet. A page needs an endpoint nobody thought of. A permission only matters once the migration has run. A label makes sense alone and gets confusing next to the one beside it.

A design doc can’t show you those. A working thing can. When a colleague clicks through a real flow with real data, the conversation changes. Nobody debates a paragraph. They point at a screen and say “what happens if I press this?”

A few examples from the last two months:

It costs me less than it sounds. With coding agents, most of a role binding UI came together in one Sunday afternoon. Typing used to be the expensive part, but not anymore. What’s expensive now is finding out what you got wrong. That’s what the giant pull request is for.

A design doc gets debated. A working thing gets clicked.

Then cut it

Once the direction holds, I cut the branch into a stack of small pull requests. Each is safe to merge on its own. That one Sunday’s work became 51 of them. Only about 10 needed a real design review. The other 41 were the kind a reviewer approves without comment.

Slices from one stack are routed by line to two pull requests, one labelled schema and one labelled screens

That makes the cut a routing step. Each pull request says who it’s for. The colleague who owns the database schema sees the migrations. The frontend reviewer sees the screens. Everything else is small, labelled and something I review myself.

The rules that made cutting reliable:

My first stacks were nine and eleven pull requests. Next came 23, 51 and 65. Once our merge queue could test about 25 at a time, a 60-layer stack merged about as fast as a single one.

What it costs

It isn’t free. I don’t want to write a post that pretends it is.

A giant pull request with a long line running from it, and a grey branch peeling off the line into a fork

While the big branch is in flight, it’s the only place the whole truth lives. That makes planning hard for everyone around it. One colleague branched off my work just to stay current. In one planning meeting, the main decision was to merge this as soon as possible. A giant pull request that lives too long turns from a prototype into a fork.

So the habit has a clock on it. Build it big, put it in front of people fast, learn what you got wrong and cut it while the lessons are fresh.

If you want to try it

A grey design doc beside a working window with a button that a cursor clicks, labelled clicked

It feels like biting off more than you can chew. You find out exactly where it’s tough while it’s still cheap to spit out.