Engineering Software with Coding Agents: Context, Control, and Evidence from Ticket to Production
by Mike Salari · Books for mobile engineers
$199
Launch price: 20% off both editions for the first 3 days. After that, the book returns to full price, with no regional discounts.
Read the free sample (desktop)Read the free sample (mobile)
I've spent a lot of time watching experienced software engineers work with AI coding agents, and experimenting with these tools myself.
Even engineers who know their systems well run into problems that have little to do with writing code.
An agent loses context halfway through a task. You spend time explaining decisions you've already made. Something you explicitly rejected comes back in a later session. Or the agent reports that the work is finished, but reviewing the changes reveals problems neither of you had considered.
I've had sessions where Claude Code or Codex made difficult work much easier. I've also had sessions where I spent more time correcting the agent than I would have spent writing the code.
Working with multiple agents brings its own challenges. Tasks need clear boundaries, shared decisions need somewhere reliable to live, and someone has to review and integrate the results. Running more agents can sometimes create more work.
I wanted to improve how I approached all of this.
I started experimenting with context checkpoints, agent instructions, task contracts, specialist workers, permissions, testing, and ways to verify what the tools had done.
I documented the approaches, examined failures, and built practical examples around them.
That work became Engineering Software with Coding Agents.
It's a technical book for software engineers who want a more structured way to work with Claude Code, OpenAI Codex, and other coding agents in existing software projects.
WHAT YOU'LL LEARN
Keep context between sessions
Learn how to preserve architectural decisions, rejected approaches, repository state, open questions, and test results. Build checkpoints and handoffs that help a new session understand where the work stands, without relying on the previous conversation being available.
Work with multiple agents
Decide when delegation makes sense, how to divide work between specialist agents, and how to integrate their results. The book examines the cost of coordination, duplicated effort, and the time required to review delegated work.
Work in existing codebases
Investigate unfamiliar repositories, clarify incomplete requirements, identify dependencies, and plan changes that fit the existing architecture. Keep the scope manageable enough to understand and verify.
Verify the results
Learn how to examine an agent's claims using source references, test results, failure cases, review findings, and execution records. Understand what has been tested, what remains an assumption, and what still needs human judgment.
Control security and permissions
Understand how coding agents interact with repositories, tools, MCP servers, hooks, credentials, and CI systems. The book covers sandboxing, least privilege, prompt injection, untrusted inputs, and the risks of giving agents access to sensitive systems.
Notice when a session is going wrong
Track repeated corrections, frustration, review fatigue, and moments when you take over manually. Learn to recognize when continued supervision is costing more than it helps, especially when fatigue starts affecting the quality of review.
Take changes through delivery
Follow the work beyond implementation, through code review, CI, database migrations, release decisions, rollback, and operational verification.
ONE ENGINEERING EXAMPLE THROUGHOUT THE BOOK
The book follows Relay, a constructed incident-management system.
The initial task is to let an incident commander schedule a status update.
That single feature raises questions about authorization, timezones, background workers, retries, cancellation, database migrations, client compatibility, and recovery after failure.
You'll follow the change through investigation, architecture, implementation, testing, review, and release.
The accompanying laboratory implements a defined part of Relay. The book distinguishes what was executed and tested from proposed designs and behavior that would still need validation in production.
RECORDED SESSIONS FROM THE WORK BEHIND THE BOOK
The book includes nine annotated spreads. Seven come from agent sessions recorded during its development; two are labelled reconstructions.
Among them are examples of Claude Code following a project rule despite a conflicting instruction, a permission profile blocking a command, Codex refusing a dependency inside its worktree, and a fresh session reconstructing work from a saved checkpoint.
There's also a GitHub Actions run, with a note on the failed run that preceded it.
The annotations explain what happened, what the evidence establishes, and what remains uncertain. Where a sequence could not be captured directly, it is identified as a reconstruction.
These examples are there so you can inspect the behavior yourself, and not only take my word for it.
WHAT'S INCLUDED
Book Edition
The complete technical book in PDF (371 pages) and EPUB.
18 chapters across six parts
Five technical appendices
Diagrams and code examples
Engineering checklists and practical methods
Nine annotated spreads: seven recorded agent sessions, two labelled reconstructions
References and supporting material
Book + Companion Edition
Everything in the Book Edition, plus a companion of 13 PDFs (152 pages) and runnable code.
Executable Relay laboratory using Python and SQLite: 7 labs, each a Git tag you can check out, from 5 tests to the final 16
Lab guide and Git lab guide
Workbook with guided exercises (35 pages)
Session casebook (27 pages) and completed examples
22 configuration files for Claude Code, Codex, MCP, Git and GitHub Actions
Mobile case study in Swift, with 20 tests
Context checkpoint, handoff, delegation and code review templates
Verification and evidence records
Quick reference
Some configurations are educational examples that require adaptation to your environment. Their limitations are documented.
WHO IT'S FOR
I wrote this primarily for senior, staff and principal software engineers, technical leads, experienced mid-level developers, and contractors who use coding agents in their daily work.
The methods apply across backend, frontend, mobile, full-stack, and platform engineering.
You should already be comfortable with Git, software architecture, testing, and ordinary development workflows.
ABOUT THE AUTHOR
I'm Mike Salari. Staff mobile engineer · 500+ technical interviews from the hiring side. 15+ years building software, including work at Apple, Adobe, Cisco, Visa, Mastercard and Deloitte.
I write technical books and share practical engineering material at salari.dev.