Code Is the Last Step
A coding agent that writes code from a prompt also decides the architecture, the names and the tests on its own.
In my own methodology, Spec-Driven Development with Human-in-the-Loop Learning, code is the last step.
- Constitution: normative documents and organizational knowledge that every agent can read, written first from practices and research. They include requirements engineering, architecture and design, engineering planning, and language. Specialized agents and skills are built from them.
- Specify: stakeholder goals refined into requirements (goal-oriented requirements engineering).
- Clarify: open questions answered by a person.
- Architecture and planning: an architecture and design proposal, then a delivery plan with a critical path, built from it.
- Tasks: implementation-ready tasks, each with its tests and dependencies.
- Implement and validate: tests first, then the code, in parallel.
- Retrospective: logged human corrections update the normative documents and organizational knowledge.
The design shapes the project. In my last delivery, the design proposal shaped the project beyond the initial scope, and the plan was built from it.
The process is not rigid. Phases 2 to 4 run in a loop, and a gap found later in the delivery is fixed in the document where it belongs. It happened in that delivery. Implementation then carries far less: it took one day once the tests were approved on an ambitious project.
A dependency graph shows what can run in parallel, and its critical path sets the shortest duration. My plan already counted AI coding agents as workers. One step at a time, it estimated up to 20.5 working days. With a critical path and parallel work, 8.5 to 12.3. The delivery took 7, with its scope enlarged on the way.
Plain prompting has no plan, so nothing shows what can run in parallel. Design, plan and code are decided in one pass, and the result depends on the model inferring an intent that was never written down.
Independent reviewer agents check each step, in rounds. Clear errors against a written rule are corrected before a person sees them. Trade-offs and uncertainty reach the person. How much a person approves manually is each team’s choice, set also in the constitution.
Documentation is part of every phase, not a formality at the end. It is how an AI agent knows the organization and the project. Much of that knowledge is tacit: people know more than they can put into words (Polanyi, 1966). Effective adoption of AI agents needs it made explicit (epistemological concept: externalization, Nonaka and Takeuchi, 1995).
How much of the architecture and the names do your coding agents decide on their own?
