Don't Hand Your Coding Agent a Ticket. Hand It a Process.
Don't Hand Your Coding Agent a Ticket. Hand It a Process.
A senior engineer never gets a ticket and starts typing. Somewhere between "here's the task" and "here's the PR," a lot of thinking happens first.
Yet that's exactly how most of us use coding agents: paste the task, say "implement this," and hope.
I stopped doing that with Claude Code a while back. Now every task runs through a delivery workflow, and the results are far more predictable.

One prompt, too many decisions
"Implement this task" looks like a single instruction. It isn't. Inside it are at least five separate calls: what the requirement really is, how the UI should work, which technical approach fits, what needs testing, and how the code should be written.
An agent that makes all of those in one pass is guessing at most of them. You only find out which guesses were wrong when you're reading the diff.
The pipeline I use now
The structure comes from how I've seen good engineering teams run delivery over the years. I've just adapted it for an agent. Each stage has one job, its own context, and its own constraints.
- Investigation. Clarify the task and turn it into a structured software requirement. No code yet. Just agreement on what "done" means.
- Design. Look at the existing UI and find what's reusable before anything new gets built.
- Architecture. Weigh the technical options, the dependencies, and what the change will touch.
- Plan. Write down a concrete implementation plan and a testing plan. This becomes the contract for everything after it.
- Engineering. Build what the plan says. By now the hard decisions are made, so this stage is mostly execution.
- Review. Check the implementation against the plan and run the tests that were defined up front.
- Publish. Push the changes and open the Pull Request.
Requirement, design, architecture, plan, implementation, review, PR. Nothing exotic. That's the point.
Why it works
The agent doesn't have to decide everything at once.
When a stage has a narrow responsibility, the output is easier to steer and far easier to check. I can read the requirement before design starts. I can challenge the architecture before a single line exists. Review isn't a vague "looks fine" either, because there's a plan to measure against.
It also changed how I see these tools. Claude Code stopped being one assistant I throw work at. It became a set of narrowly scoped roles that I'm directing.
What I haven't figured out yet
Two things are still open:
- Review feedback. How should findings flow back into the workflow without turning it into a mess?
- Engineering or Architecture? When review catches a problem, is it a bug in the code or a flaw in the approach? They look the same in a diff and need completely different fixes.
I'm still working through the second one. The wrong call sends you back to rewrite code that was never the real problem.
The takeaway
An agent that's allowed to decide everything will decide some things badly. Split the decisions up, give each stage a clear job, and most of the surprises go away.
Are you running one coding agent end to end, or splitting up the responsibilities? I'd like to know what's working for you.
I write about engineering, AI, and building software at nareshpahariya.me/insights.