Agentic development from scratch: a step-by-step setup plan
Set up agentic development so that autonomy grows only after verification exists. The order: small tasks that are cheap to check, commands that work from a clean clone, a short instruction file, limits (hooks, permissions, a separate branch), a task template, a plan → small steps loop, rules for tests, a review gate with CI, and only then skills and subagents. Every step has a «done when» criterion.
Agentic development · The cycle
A team bought an agent and set everything up at once. A week later nobody trusts the result.
A typical scenario: the tool is connected, the instruction file is two hundred lines, five subagents, an autonomous mode. The very first big pull request turns out to be unverifiable and the team goes back to manual work. The problem is not the agent but the order: autonomy was raised before verification existed. This is a summary article on the sequence in which to set up work with a coding agent so that it stays manageable.
The details of every step are covered in separate articles of the sections on the development cycle, context, orchestration and control. Here only the sequence and the criterion that a step is done. The tools (Claude Code, Cursor, Codex) are only examples, the order is the same.
How it works and why. The steps are ordered from what gives the biggest effect at the lowest risk to what is needed only at scale. Each next step rests on the previous one: limits make sense when there is a check that catches violations; parallel agents make sense when one already works in a controlled way. A step is confirmed by its "done when" criterion, not by a feeling.
The adoption ladder
- Start small. One repository and one kind of task whose result is cheap to check: small fixes, repetitive edits, test drafts. Do not start with architectural changes. Done when you know which tasks go first and what you will check them against.
- Let the agent check itself. The build, the linter and the tests must run with known commands and work from a clean clone. Without that, "done" is just the agent's words. Done when one command gives a clear pass/fail in an acceptable time.
- Write a short instruction file. Build and test commands, conventions, constraints not visible from the code. Do not paste procedures or what the linter checks. Done when a new colleague could use it.
- Set limits before raising autonomy. Allow reading and running tests, require confirmation for the rest, forbid secrets and production access. What must never be violated goes into a hook, not a wish. Work on a separate branch in an isolated environment. Done when the agent physically cannot do what it must not.
- Make a task template. Goal, context, limits, definition of done, report format. Save it and use it every time. Done when a task can be handed to a colleague without verbal explanations.
- Work in the "plan → approval → small steps" cycle. For non-trivial changes a plan first, then steps with a check after each. Done when you stop at the checkpoints and really look at the result.
- Agree on tests separately. For a behaviour change the test is written from the specification and seen to fail before the implementation; at the implementation step tests are not touched. Done when a change to a test file in a diff with no reason raises a question.
- Set up a review and CI gate. An agent's pull request passes the same checks as a human's: your own reading of the diff and CI in a clean environment. A human merges. Done when nothing reaches the main branch without a green CI and a read diff.
- Add skills and subagents only when needed. A procedure you explain for the third time becomes a skill. Side work that clutters the main session goes to a subagent. Parallelism and a reviewer are added when the parts are really independent. Done when each complication matches a concrete pain you have already felt.
- Learn from mistakes. When the agent repeats a failure, the cause is fixed at the right level: missing knowledge, a line in the instruction file; an action that must not happen, a hook or a ban; an unclear task, a template change; a procedure, a skill. The instruction file is trimmed periodically. Useful metrics: the share of results accepted without rework and the time spent on review. Done when the same mistake does not occur a third time.
Example: one round of learning from a mistake. The agent twice runs tests with the wrong command and reports "passed". The cause: the instruction file has no command. The fix is minimal:
## Verification
- All tests: npm test (unit) and npm run test:integration
- "Passed" only when both commands finish without errors
Two lines solved the problem at the level of knowledge. If the agent knew the command but ignored it, that would be a matter for a hook or CI, not another line in the file.
Two ways to adopt
Everything at once
Many rules, subagents and autonomy with no verification and no measuring. Failures are invisible, trust falls.
Step by step, with a criterion
Each complication has a concrete reason and a "done when" check. Autonomy grows with trust.
Limits and alternatives. The order is not dogma: in a small team steps 5 and 6 may merge into one template, and where strong CI exists step 2 is shorter. But swapping "autonomy before verification" almost always costs a lot. If one person uses the agent for small things, the full set of steps is excessive: steps 1-4 are enough.
Common adoption mistakes.
- Setting everything up at once and measuring nothing: it is unclear what helps.
- Raising autonomy before verification exists.
- Bloating the instruction file: the important part sinks and rule compliance drops.
- Treating the agent's report as proof.
Check yourself
A team wants to launch parallel subagents and an autonomous mode right away. Which steps are missing and why does the order matter?
Answer
Missing are a one-command verification, short instructions, limits (hooks, a separate branch) and a review gate with CI. Without them autonomy produces a large volume of unverifiable changes, and parallel agents multiply it.
The agent ignores a rule from the instruction file again. When do you add another line and when a hook?
Answer
A line helps when the agent lacked knowledge. If an action must never be allowed, the instruction file is only context, and the rule goes into a hook or a permission denial, which are enforced.