← Practical books

Technology & AI

Agentic Coding in Practice

A developer’s guide to building, testing, and supervising software agents. Work through bounded tasks, tool permissions, evaluation, debugging, and a practical capstone. A substantial technical guide for readers who already understand basic programming.

Kindle-ready EPUB · EPUB · PDF · 43,336 words · reflowable edition

Includes all formats. Included at no extra cost with any active paid subscription. .

Read the preface ↓Read our publisher’s review →

A note before you begin

Preface

The work begins with a clear promise

A coding agent can move at astonishing speed. It can open a file, trace a function, suggest a repair, and return with a change before the coffee has cooled. But speed is only the opening note. The music comes from knowing what the change must accomplish—and being able to show that it did.

Imagine a small team with a useful idea and an ordinary problem: a filter loses its selection when the page refreshes. An assistant can help investigate. Yet the real achievement is not a polished explanation or a green test on its own. It is a person choosing the right outcome, a tool acting within clear bounds, and evidence that the behavior now serves the person who asked.

That is the practical promise of agentic coding: more capable help, joined to more deliberate judgment. The agent may explore and propose; the developer decides what matters, checks the result, and keeps the work recoverable. A good process gives curiosity room to move and gives mistakes a safe place to be found.

In these pages, we will build that process one decision at a time. Our workshop is fictional, our examples are made for learning, and our aim is wonderfully concrete: finish changes people can understand, inspect, and trust. You need not begin as an expert in artificial intelligence. Bring a real question, a willingness to test your assumptions, and the courage to ask, “What would count as done?”

There is a special pleasure in watching a difficult task become manageable—not because the difficulty vanished, but because the next step became clear. Let us begin there.

Welcome to Agentic Coding in Practice. Turn the page and put these ideas to work.

Choose your edition ↑
Read inside the book · 4,739 words from the delivered edition

Read before you buy

A proper look inside.

4,739 words · 10% of the complete edition’s text · Free sample

Taken from the complete delivered edition, including its worked examples. The final chapter shown may end partway through. The full table of contents is available in the gallery.

How to use this book

How to use this book

You ask an assistant to fix a bug. It opens files, describes a cause, changes a function, and reports success. The patch looks reasonable. The question that remains is deceptively small: what, exactly, has succeeded?

Perhaps the function now passes one test. Perhaps the whole application builds. Perhaps the user can perform the intended action in a browser. These are different accomplishments. A useful coding agent has to move between them without losing track of which one it has actually demonstrated.

This book is about that movement. It treats a coding agent as part of a software delivery process: a system that receives an intention, investigates a codebase, proposes and performs actions, inspects their consequences, and eventually hands back something a person can accept. The useful output is a change with evidence attached.

You do not need to train a model to follow the exercises. You should be comfortable opening a small project, editing a text file, and running a command. Where a chapter introduces an unfamiliar concept, it will explain the concept through a concrete task before generalizing it. Readers who already build developer tools can use the same examples to examine their own assumptions about context, permissions, review, and recovery.

The running example is a fictional issue-tracking application called Patchboard. People create issues, assign them to a team member, choose a status, and filter the list. This is deliberately ordinary software. A broken status filter, a lost draft, or a misleading success message makes a useful engineering problem because the desired behavior can be described without inventing a new business. As the book progresses, we will add constraints and observe how those constraints change the agent's work.

All Patchboard scenes are constructed teaching examples. The named developers and users in those scenes are fictional. They are not interviews or accounts of a particular company's deployment. Where the text discusses a real system, benchmark, or public claim, it identifies the source separately.

The chapters follow five stages. The first establishes the task, the repository, and the working environment. The second examines the loop that connects a model to tools and observations. The third follows changes through implementation, testing, review, and recovery. The fourth addresses permissions, evaluation, cost, and concurrent work. The fifth turns those practices into a team workflow and a complete capstone.

Read the first four chapters in order if agentic coding is new to you. Their vocabulary will make the later implementation chapters easier to follow. If you already operate an agent, begin by writing down a task it recently completed. Keep the original request, the diff, the commands it ran, and the final report. As you read, compare the book's questions with the evidence your system actually records. Missing evidence is often more informative than an impressive demonstration.

Keep a small experiment notebook. For each exercise, record the task, the starting state, the action you expected, the action you observed, and the result you would accept. A plain text file is sufficient. The point is to preserve a distinction that conversations tend to blur: what you wanted to happen and what you know happened.

Some exercises ask you to write an acceptance criterion before you implement anything. Others ask you to introduce a controlled failure into a disposable example. Do these exercises in a practice project. A learning experiment should let you inspect an error without putting somebody else's work at risk.

The examples emphasize enduring interfaces: files, patches, commands, test results, permissions, and versioned state. Commercial assistants change their names and capabilities. A workflow that depends on a particular button being in a particular corner will age quickly. A workflow that records the current revision, checks the relevant behavior, and identifies the consequences of an external action can survive changes in the interface.

That does not make model choice irrelevant. Different models and configurations may behave differently on the same task. It means that the surrounding process must let you discover those differences. A confident sentence is easy to generate. A result that can be inspected, repeated, and recovered requires deliberate engineering.

By the end, you should be able to answer six questions about an agent-assisted change:

What outcome was the agent asked to produce?

What evidence did it use to understand the starting state?

Which actions could it perform, and who enforced those limits?

What changed in the software and its environment?

Which observations support accepting the result?

What remains uncertain, and how would you recover?

You will not need a perfect answer to every question before doing useful work. You will need to notice when an unanswered question affects the next action. That judgment is the central skill of supervised autonomy.

1 / 3

That’s the end of this sample chapter. Your purchase includes the complete book in every listed format.

Choose your edition ↑

Publisher’s note · For adults

Put your ideas into practice

Explore the tools at Roseram.

Visit Roseram.com to explore building software, applications and websites with artificial intelligence. Available tools and access depend on your account and plan.

Explore Roseram →

Text and illustrations created with AI and reviewed for this edition. Author: Roseram.com. Publishing imprint: Roseram Publishing, as shown on the cover artwork.