Agents That Write Code
An Independent Engineer's Guide to Building Coding Agents with Repository Context, Sandboxes and Test Loops
-
- $0.99
-
- $0.99
Publisher Description
A practical, vendor-neutral guide to building coding agents: AI agents that read an issue, search a repository, edit code, run tests in a sandbox and hand people a small, reviewable change. Instead of teaching one commercial tool, the book opens up the harness that every coding agent shares and shows how to build your own. Following one fictional running example, the internal coding agent of a regional insurance cooperative, it covers the core agent loop, the agent-computer interface of file, search, edit and command tools, model roles and cost per task, finding the right code with search, repository maps and language servers, instruction files and task specifications, and keeping long sessions on track. It then covers edit formats that apply cleanly, sandboxes with least privilege and no network by default, test loops that the agent cannot quietly weaken, planning, checkpoints, rollback and best-of-N patch selection. The final part covers reviewable pull requests, evaluation on tasks from your own repository history, prompt injection and permission controls, deployment from the terminal to background agents, and operating and improving an agent over its first year. Includes Python examples, checklists, a hands-on lab, design-review questions with answers and a glossary.