The Agentic SDLC

Part III · Making it work

Chapter 12

Building one, and where to start

You do not need a platform to start. Most teams already have the pieces: an issue tracker, a repository, tests, code review and a release process. What changes is that an agent does the work between the ticket and the pull request, and people stay at the points where judgment matters.

Here is a simple version of that workflow, using Claude Code as the example. Other coding agents work in similar ways.

Ticketwhat and why CLAUDE.mdhow we work here Planread, then propose Plan approveda developer Code and teston a branch Second reviewa fresh session Pull requestCI runs the tests Review and mergea reviewer tests fail: fix and run again What the team learns goes back into CLAUDE.md
Figure 5. A simple agentic workflow with Claude Code. The agent plans, codes and tests; people approve the plan and the merge.

A simple workflow with Claude Code

  1. Write down how the project works. Claude Code reads a file called CLAUDE.md at the start of every session. Keep it short: how to build and test the project, the conventions that are not obvious from the code, and anything an agent keeps getting wrong. Check it into the repository so the whole team improves it.
  2. Start from a ticket. Give the agent the same thing you would give a new teammate: what should change, why, and how you will know it is done.
  3. Plan before coding. In plan mode, the agent reads the code without changing anything and proposes a plan. A developer reads the plan and corrects it. This is the cheapest place to catch a misunderstanding.
  4. Let it code and test on a branch. The agent edits files, runs the tests, reads the failures and tries again until they pass. Give it a way to check its own work, such as tests, a build or a linter, and ask for the evidence, not just a summary.
  5. Make the important checks automatic. Instructions in CLAUDE.md are advice. Hooks are commands that run every time, for example running the formatter after each edit, or refusing to finish while tests fail.
  6. Get a second opinion. A fresh session, or a separate review agent, reads the change without the first session's reasoning and reports what is wrong or missing.
  7. Open a pull request. If the team has continuous integration, it runs the tests again. If not, the agent attaches the full test results to the pull request. A person reviews and merges, the same way the team already works.

Once this works on a developer's machine, the same steps can run without one. Claude Code can run inside GitHub Actions: mention @claude on an issue or pull request, or run it on a schedule, and it works on a branch and opens a pull request for a person to review.

Try it on a small task

A CLAUDE.md can start as a few lines:

# How to work in this repo
- Install: npm install
- Run all tests: npm test (they must pass before you finish)
- Never change files under migrations/
- Every bug fix comes with a test that fails before the fix

Then pick a small, real bug and start in plan mode with a request like this:

Read issue 142. Find the cause and propose a plan. Do not change any code yet.

Read the plan, correct it if needed, and let the agent continue. When it finishes, look at the evidence before the code: the test that failed before the fix, the test results after it, and the list of files it changed. That is verification in practice.

Each step maps to an idea from earlier chapters. The ticket and CLAUDE.md are the written intent. The repeat until tests pass is a loop with an exit rule. The hooks and the second review are checks. The plan approval and the merge are approval points.

Where to start

Choose one loop, one codebase and one baseline. Testing is a common first choice, because its result is easy to check and a mistake rarely reaches customers. Measure where you are today. Run the loop for a month, compare, and widen it to more teams before adding a second loop.

Resist starting everywhere at once. A loop that works well in one place is the best argument for the next one, and a loop that fails quietly in ten places is the fastest way to lose the team's confidence.

Five measures

  1. Accepted change rate: the share of agent changes accepted without rework.
  2. Cost per accepted change: including the attempts that failed.
  3. Time to production: from request to release.
  4. Rework rate: changes reopened, reverted or fixed again.
  5. Escaped defects: problems found in production that checks should have caught.

Together they show whether more good software is reaching customers, at a cost the business can sustain.

A loop that works well in one place is the best argument for the next one.