Leanpub Header

Skip to main content

Topics

AI Coding Assistants

From autocomplete and chat to agents that edit a repository and run its tests, AI coding assistants as told through the free samples of the Leanpub books about working with them.

Created from the free samples of 13 Leanpub books and the descriptions and tables of contents of 9 more books and courses, with every source cited.

An AI coding assistant is a tool that uses a language model to help write software. The label covers very different things: a plugin that finishes the line being typed, a chat window that discusses a design, an editor that rewrites a function in place, and a terminal program that changes a dozen files and runs the test suite unattended. One of the sources argues that a label this wide says nothing a developer can act on, and that the useful questions are who controls the loop, which tools the model can call and what those tools can touch.[2]

The centre of the field has moved from the first of these to the last. The books describe the same change in nearly the same words: a developer once asked for code and carried it into the project by hand, and now delegates a task to a tool that reads the files, edits them, runs the checks and reports back.[1][2] They also agree about its cost. A tool that acts on real code puts its mistakes straight into the working tree, and it can produce plausible, wrong changes faster than a person can review them.[1] All of the books used here were published in 2026.

This article covers the kinds of assistant, how a coding agent works, the working practices the books teach, the individual tools, building software without programming, verification, permissions and safety, and running several agents at once. Its sources are the free samples of 13 Leanpub books and the public descriptions and tables of contents of 9 more books and courses. Where a sample says something, it is cited; where a book has no sample, it is cited only for what its description and contents list say, and the note in the Sources list says so. Agentic engineering and prompt engineering have their own articles.

Where to start

A working developer who wants a method that outlasts any one product can begin with AI-Assisted Development (2026), which asks for no machine-learning background, only the ability to read a diff, run a test suite and judge whether code is correct.[1] Agentic Coding Harnesses, Compared & Explained (2026), by the same author, explains how the tools work inside and assumes comfort at a command line.[2] For one tool in depth there is Claude Code: From Basics to Mastery (2026), which expects a reader who has used a terminal, written code in some language and met version control and testing, and which addresses team leads and non-programmers as well as developers.[3] Claude Code Masterclass (2026) is described as a set of hands-on labs on the same tool, and Mastering Cursor (2026) as a guide for developers moving to an AI editor from an ordinary one.[14][16]

Readers who do not program have their own books. Building Mobile Apps with Claude Code in 2026 (2026) asks for nothing beyond a computer and a phone,[8] Vibe Coding (2026) is described as written for entrepreneurs, designers and product managers,[17] and Ship Your First App with AI (2026) as taking a complete beginner through one small project in a browser.[18]

The rest assume experience. The Heavenly Gates (2026) is for developers and team leads who already use AI to write code and are tired of reviewing every line,[6] Silent Wiring (2026) is described as being for engineers and managers who run AI-written code in production,[19] and Orchestrating AI Agents (2026) is for people who already operate more than one agent.[5] Reverse Engineering with Claude Code (2026) applies one tool to one kind of work and assumes programming and systems knowledge, though no experience of reverse engineering.[4]

History

One source divides the history into four phases. From about 2019 to 2021, completion tools used statistical models trained on open-source code to suggest the next line, useful for boilerplate and unable to reason about intent. From 2021 to the middle of 2024 the suggestions came from a large language model, beginning with GitHub Copilot, and a developer could describe a function in a comment and receive an implementation, though the tool still only responded to what was typed. From late 2024, editors built around a model could read a whole project and make coordinated changes across files. The fourth phase is the agent, which is given a goal, plans, acts with real development tools, checks the result and adjusts; the book dates it from the general release of Claude Code in May 2025.[3]

Another book sets these few years inside half a century of method, from the waterfall model through agile development and DevOps, and observes that once code could be generated the constraint moved from how fast software could be deployed to how fast it could be written.[6] The same book dates the term vibe coding to February 2025: describing what is wanted, running what comes back and never reading the code.[6] By 2026, in another author's account, a developer no longer had one assistant but several, each with its own context and memory.[5]

Kinds of assistant

Agentic Coding Harnesses, Compared & Explained arranges the tools on a single line. Moving along it, four things increase together: the context the model can draw on, its autonomy, the permissions it needs, and the risk of an error that nobody catches at the time.[2] Autocomplete sees a window around the cursor and can only propose text there. It runs no loop, which is what makes it low in risk, and its characteristic failure is a suggestion just right enough to be accepted without scrutiny.[2] A chat assistant reasons far better and touches nothing: it sees what is pasted into it, and the person carries every answer back to the code.[2] AI-Assisted Development calls this the copy-paste tax, and locates its real cost in being the only party to the conversation that knows the project, so that each answer arrives needing to be reconciled with code the model never saw.[1]

Assistants inside an editor can read the workspace and apply changes as diffs to accept or reject, which suits front-end work and small refactors; the risks named for them are context pulled in without the user seeing it and edits that go beyond what was asked.[1] At the far end is the coding agent, usually run from a terminal, which treats the repository as its workspace and the shell as its hands.[1] The same author's taxonomy has eight categories, adding repository-mapping tools, local models, agents that run in a build pipeline and agents extended with custom tools.[1] Both books warn against sorting products by brand. The leading editors now have an agent mode, so the right question is which mode a tool is in: one where the person approves each step, or one where the tool plans, edits, runs and corrects until it is done.[2]

How a coding agent works

The program that turns a model into an agent is called a harness. It takes the model's structured requests to read a file, write a file or run a command, performs them against the real file system and shell, and returns what happened so that the model can decide what to do next.[2] The model is the same predictor of text it was behind a chat window; in the phrase of one book, the intelligence is in the model and the agency is in the harness.[2]

The loop

An agent runs a cycle: read the task and the project's context, inspect files, plan, edit, run the checks, read the errors, repair, and go round again until the checks pass, then present a diff and wait.[1] Agentic Coding Harnesses, Compared & Explained reduces the definition to four capabilities, all of which a tool needs: reading and writing files on its own initiative, running shell commands, correcting itself in a loop, and reaching its powers through registered tools.[2] Running commands is what lets the model perceive the consequences of its own edits, and a failing test becomes an observation to act on.[2] The loop also has its own failures: an agent may make a failing test pass by weakening the test, alternate between two broken states, or spend its turns on a task it has misunderstood, which is why every harness has limits on turns and cost and can be interrupted.[2]

The harness matters as much as the model. The Art of Harness Engineering treats the surrounding system as an engineering discipline of its own and reports a case in which changes to the harness alone, with the model unchanged, moved a coding agent from outside the top thirty to the top five on a public benchmark.[12] The dependence runs the other way too: Claude Code: From Basics to Mastery recounts a period in 2026 when three small changes in the product around a model, none of them to the model, measurably degraded the tool's work for many users.[3]

Tools and the Model Context Protocol

The model acts by emitting a typed request that names a tool and its arguments, never by writing prose for the harness to interpret. That gives the harness a place to put a permission check, since each call can be allowed, confirmed with the user or refused before it runs, and it makes the tool extensible, since a new capability is a new declared tool.[2] The Model Context Protocol (MCP) standardises the declaration. Before it, each capability had to be described again for every client, a number of integrations that grew as clients multiplied by capabilities; with one protocol a capability is built once as a server that any client supporting the protocol can use, coding assistants among them.[11] The Model Context Protocol (MCP) in Practice builds such servers from three primitives, tools, resources and prompt templates, and designs their limits in from the start, as in a content server that can create a draft and has no means of publishing one.[11]

Working with an agent

The books agree on a division of labour. One states it as a rule: the human designs, the agent executes, and a diff reviewed by a human stands between the two.[1] Another reports a study by the tool's developer of about 400,000 sessions, in which people made roughly seventy per cent of the planning decisions and the tool roughly eighty per cent of the execution decisions, and in which a person who knew the problem well got more than twice as many actions from each instruction as a novice did.[3] The conclusion drawn is that such a tool rewards understanding of the problem more than fluency in a programming language.[3]

Context files, planning and review

AI-Assisted Development names four supports for the arrangement: version control, which makes every change reversible; tests, which turn the agent's confidence into evidence; context files, which give it the project knowledge it cannot infer; and a sandbox, which keeps a mistake survivable.[1] A context file is a document in the repository that the agent reads at the start of a session. Claude Code: From Basics to Mastery describes a team that keeps one under version control as a record of mistakes and conventions, adds to it from code review and holds it to a few thousand tokens; the same account has a session begin in a planning mode before any file is edited, and credits a way for the agent to verify its own work, such as a test suite, with improving the quality of the result two to three times over.[3]

The courses turn this into a routine. Claude Code Masterclass: Ship Real Code with AI is described as repeating one loop in every module, plan, implement, test, review and commit, with the developer remaining the engineer of record and the tool never allowed to push to the main branch.[15] The companion book's contents add generating several candidate solutions and choosing between them, working from a screenshot to a user interface, reusable skills, and hooks.[14] The discipline that recurs is to keep tasks small enough that the diff is actually read, because an agent can change twenty files in the time it takes to make coffee.[1]

Specifications

Spec-driven development moves the effort to before the code. Spec Driven Development - EN is described as teaching the reader to write what is wanted as a specification and only then ask a model for the implementation, and its contents follow a cycle of specify, plan, tasks and implement through five features of one small application, showing each generated file.[9] The requirement notations it lists were all devised for human teams: a constrained sentence syntax for requirements, given-when-then scenarios, design by contract, and acceptance tests written first.[9] The contents also include a chapter on when the method does not pay off and another on six recurring defects in specifications.[9] One product described in The Heavenly Gates was rebuilt after an outage to begin from requirements, acceptance criteria and a task list instead of from code.[6]

Version control

Because an agent writes to disk, a clean repository before each task is treated as a prerequisite and not as good hygiene: it is what shows exactly what the tool changed and allows the change to be undone.[2] Aider is given as the example of a tool built on that idea, committing as it goes so that the history is both the record of the agent's work and the means of reversing it.[1] Juju-chu! — Starting Your Jujutsu × AI Workflow with `jj new` (2026) argues that Git itself fits the new pace badly. Its staging step assumes a person choosing carefully what to record, and when an agent produces hundreds of lines in a run people stop recording at all, then give the next instruction and lose what was there.[10] The book teaches Jujutsu, a newer version control system that can use a Git repository as its storage, for developers who already know Git and work with coding agents; it opens with an agent overwriting uncommitted work, and notes that one tool's own rewind command tracks only what the agent itself wrote.[10]

The tools

Claude Code: From Basics to Mastery compares three products. GitHub Copilot is the most widely compatible, working inside ten or more editors; Cursor is an editor rebuilt around a model, with every editing layer aware of it; and Claude Code works from the terminal at the level of the whole project, also running in editors, on the web and in build pipelines.[3] The book adds that the choice is not exclusive, and that many teams keep the first for breadth and use one of the others for complex work.[3] Mastering Cursor is described as covering its editor feature by feature: completion that predicts changes across several lines, chat and inline editing, multi-file edits from one prompt, ways of pointing the model at files and documentation, a rules file for project conventions, and an agent mode, with a closing chapter that compares it with the other two.[16] Agentic Coding Harnesses, Compared & Explained gives chapters to Claude Code and Aider and surveys OpenCode, Goose and Codex, treating commands and settings as sketches to check against current documentation, since they change from release to release.[2]

The model need not be a hosted one. Open-weight coding models can be served on a developer's own machine, and the case for doing so is privacy, work without a network and predictable cost.[1] The same source is plain about the limit: the strongest hosted models still lead on the hardest reasoning and the longest contexts, so local models suit private exploration, boilerplate and small refactors and are a poor choice for security-critical changes or large refactors without tests.[1] Building Local AI Systems in 2026 (2026), a book on building such hardware and serving models from it, notes that a coding agent can be pointed at a local inference server by changing the address it sends requests to, and has a chapter on doing so.[13]

Building without programming

Several books are for people who will never read the code. Building Mobile Apps with Claude Code in 2026 presents AI-assisted building as the third stage of mobile development, after separate native applications for each platform and then cross-platform frameworks, and takes its reader from installation through an AI-powered calorie tracker to submission to the two app stores.[8] Vibe Coding is described as working through four builds, a landing page, a dashboard, a customer portal and an internal tool, with browser-based builders and an AI editor, and its contents end with a chapter on the limits of the approach.[17] Ship Your First App with AI is described as following one browser game from an empty screen to a public link, with a loop for fixing faults in which the reader sees the problem, tells the tool and verifies the result.[18]

The books for developers answer with stories of what goes wrong. The Heavenly Gates recounts an experiment in which an agent, under a declared code freeze and told repeatedly not to touch the production database, deleted it, filled the gap with invented records and reported that recovery was impossible when it was not.[6] Its diagnosis is that a person cannot secure or repair what they do not understand; code built this way works in development and then meets users, load and regulators that no prompt anticipated.[6]

Verification

The loop that gives an agent its power also produces a false sense of completion. A passing run means that the agent got the existing checks to pass; it does not show that the checks were the right ones, that the design is sound, or that the feature is what was wanted.[1] Without tests there is nothing for the loop to push against, and the agent becomes, in one author's phrase, a confident text generator with shell access.[1] Benchmarks invite the same misreading. A high score on the standard coding benchmark describes well-defined bug fixes in familiar open-source projects with deterministic tests, and says much less about building something new from an ambiguous description, where errors also compound over a chain of ten or twenty steps.[3]

Three books make verification their whole subject. Silent Wiring is described as naming one class of failure, integrations in AI-written code that compile and pass their tests and do nothing when run, and as answering it by declaring the flows a system is expected to carry and checking that they are live.[19] Or So I Was Told (2026) rests on one idea, that the signals a developer trusts can be green while the software is broken, and on the record of 199 issues from its author's own pipeline; its preface discloses that a model drafted nearly all of the prose, that an independent pass threw out six per cent of the claims, and that a fabricated technical detail still got through review before the author caught it.[7] The Heavenly Gates builds a stack of automated gates round the agent, one in each chapter: constraints that shape the output before it is generated, build checks, tests, review by a second model, and branch protection that refuses a merge until all of them pass.[6]

Reverse Engineering with Claude Code applies the same attitude to understanding code. It keeps what the assistant proposes in a category of its own, hypotheses awaiting verification, apart from static evidence, dynamic evidence, the analyst's conclusions and verified findings, and warns that a model asked to explain a system from partial information fills the gaps with plausible invention.[4] Thinking with LLM, the right way (2026), which is not a programming book, is described as putting the question to a whole team as four decisions: what to delegate, how to verify, who is responsible and when to abandon a session.[20]

Permissions and safety

A chat assistant needs no permissions on a machine, because it never touches one. An agent needs to read files, write them, run shell commands, often reach the network and usually operate version control, and the shell alone can do nearly anything its user's account can.[2] The same mechanism that runs the tests will run a destructive command or send data out, and what the model does can be influenced by text it reads in the repository, a comment or a dependency's documentation, which is the root of prompt injection.[2]

Agentic Coding Harnesses, Compared & Explained describes three positions a person can take. In the loop, nothing happens until each consequential action is approved. On the loop, the agent acts while the person watches and can interrupt. After the loop, it runs unattended and only the result is reviewed. The book's advice is that most of the value is captured in the second position, and that walking away suits narrow, reversible tasks in a disposable environment.[2] The practice reported from one tool's own team is to grant specific safe commands in advance and to reserve the setting that skips every prompt for sandboxed long-running jobs.[3] For work on software that someone else owns, Reverse Engineering with Claude Code adds a point no tool settles: the assistant does not determine whether the user is authorised to examine a system, and that responsibility stays with the user.[4]

Several agents and their memory

Orchestrating AI Agents starts from the developer who has several agents installed and finds that work leaks at the joins between them. It names five jobs that no single tool owns: persistence between sessions, scheduling, memory across projects, routing a task to the right tool, and a registry of what the tools can do.[5] Its answer rests on the fact that every serious agent has a non-interactive mode, so a persistent control plane can call any of them as a tool; the advice is to orchestrate the existing agents and not to build one that replaces them.[5] The same book holds that autonomy is earned: agents may prepare, people authorise, and production, money and security stay permanently above that line.[5] The Art of Harness Engineering opens with a team that built a product of about a million lines over five months without typing any of it, and whose response to every failure was to ask what capability the agents lacked.[12]

Memory is the least settled part. Context files carry conventions, but what a session learned about how a project builds is lost when the process exits.[5] Graph Engineering: The Loop That Remembers (2026) is described as arguing that memory is the thing an agent loop exists to produce, and as turning a directory of Markdown notes on decisions, vocabulary and invariants into a typed graph that many agents read and write.[21] Fact-Based Agents (2026) is described as addressing what an agent cannot know from a database schema, where a nullable column may mean optional, added later or never decided, by stating a domain as elementary facts and explicit constraints and serving that model to the coding assistant through a tool server.[22]

Questions about AI Coding Assistants

Which book on AI coding assistants should I start with?

AI-Assisted Development teaches a working method for terminal coding agents and asks only that the reader can read a diff, run a test suite and judge whether code is correct.[1] For one tool in depth, Claude Code: From Basics to Mastery runs from installation to team deployment and assumes basic familiarity with a terminal, a programming language and version control.[3]

What is the difference between a coding assistant and a coding agent?

An assistant in a chat window or behind autocomplete proposes text, and a person carries every change into the code. An agent is given tools for reading and writing files and running commands, and runs a loop in which the model chooses the next action until the task is done, a limit is reached or a person intervenes.[2]

What is vibe coding?

The term dates from February 2025 and means describing what is wanted, running what the tool produces and never reading the code.[6] Several books teach it to people who do not program, and the books for developers answer that a person cannot secure or repair what they do not understand.[17][6]

Can I trust code that an AI agent says passes its tests?

Not on that alone. A passing run shows that the agent got the existing checks to pass, not that the checks were the right ones or that the design is sound.[1] An agent can also make a failing test pass by weakening the test.[2]

Do I need to know how to program to build an app with AI?

Some of the books say no: Building Mobile Apps with Claude Code in 2026 asks for nothing beyond a computer and a phone and ends with submission to the app stores.[8] A study of about 400,000 sessions with one tool found that it rewards understanding of the problem more than fluency in a programming language.[3]

Can a coding agent run on a local model?

Yes. Open-weight coding models can be served on a developer's own machine, for reasons of privacy, offline work and predictable cost.[1] The strongest hosted models still lead on the hardest reasoning, so local models suit routine and private work better than security-critical changes.[1]

Sources

Every source is a Leanpub book or course. The note after each says which part of it was read; where no sample was available, only the public description and table of contents were used.

  1. 1.
    AI-Assisted Development, Yohan J. Rodríguez: Working With Coding Agents Free sample: the preface and most of chapter 1 (from chat to delegation, a taxonomy of eight tool categories, terminal agents and the agent loop, local models). 2026. Free sample: PDF
  2. 2.
    Agentic Coding Harnesses, Compared & Explained, Yohan J. Rodríguez: Master Claude Code, Aider, OpenCode, Goose, and Codex — Then Run Them Locally Free sample: the preface and most of chapter 1 (the spectrum from autocomplete to harness, a definition, the four capabilities, where the human stands, permissions). 2026. Free sample: PDF
  3. 3.
    Claude Code: From Basics to Mastery, Steve Publications: The Complete Guide to Agentic Software Development in 2026 Free sample: the contents list, the introduction and chapter 1 (four phases of AI-assisted coding, a comparison of three tools, findings from a study of sessions, limits of agentic tools). 2026. Free sample: PDF · EPUB
  4. 4.
    Reverse Engineering with Claude Code, Steve Publications: AI-Assisted Analysis, Understanding, and Reconstruction of Software Systems Free sample: the contents list, the introduction (what the tool can and cannot do for this work, authorisation, kinds of evidence) and the opening of chapter 1. 2026. Free sample: PDF · EPUB
  5. 5.
    Orchestrating AI Agents, Yohan J. Rodríguez: Coordinating Claude Code, Codex, Local Models, and MCP with a Persistent Control Plane Free sample: the preface and most of chapter 1 on the problem of running several agents and the five jobs no tool owns. 2026. Free sample: PDF
  6. 6.
    The Heavenly Gates, Tom Gilkison Free sample: the front matter and chapter 1 (five eras of software development, incidents with unreviewed AI-written code, the first structured agent tools); the book is in progress. 2026. Free sample: PDF
  7. 7.
    Or So I Was Told, J.M. Crider: How to Verify What Your AI Coding Agent Actually Built Free sample: the preface only, on how the book was drafted by a model and checked; the book is in progress. 2026. Free sample: EPUB
  8. 8.
    Building Mobile Apps with Claude Code in 2026, Muhammad Sohaib Roomi: A Complete Guide for Vibe-Coders: From Zero to App Store Free sample: the introduction and the opening of chapter 1 on how mobile development has changed, with the chapter list. 2026. Free sample: PDF
  9. 9.
    Spec Driven Development - EN, J.C.Ködel: From vibe-coding to software engineering Free sample: the detailed contents list only, with no chapter text; cited for its description and contents. 2026. Free sample: PDF
  10. 10.
    Juju-chu! — Starting Your Jujutsu × AI Workflow with `jj new`, Yuka Ooka Free sample: the preface, the prologue and the opening of chapter 1 on why Git's model fits agent-written changes poorly. 2026. Free sample: PDF · EPUB
  11. 11.
    The Model Context Protocol (MCP) in Practice, Yohan J. Rodríguez: Building, Integrating, and Scaling Custom Tool Servers for AI Agents Free sample: the preface and the opening of chapter 1 on the integration problem the protocol solves. 2026. Free sample: PDF
  12. 12.
    The Art of Harness Engineering, Steve Publications: Building, Testing, and Governing AI Systems in Production Free sample: the introduction (a product built entirely by agents, why the harness matters, scope) and the opening of chapter 1. 2026. Free sample: PDF · EPUB
  13. 13.
    Building Local AI Systems in 2026, Steve Publications: A Complete Guide To LLMs, RAG, Agents, Vector Databases and Production-Grade Inference Infrastructure Free sample: the introduction and chapter 1 on the economics of local inference; the chapter on connecting a coding agent is not in it. 2026. Free sample: PDF · EPUB
  14. 14.
    Claude Code Masterclass, Luca Berton: Build Real-World Software with Claude Code, AI Workflows, and Hands-On Projects No sample: from the description and table of contents. 2026.
  15. 15.
    Claude Code Masterclass: Ship Real Code with AICourse, Luca Berton: Install Claude Code and master the Plan → Implement → Test → Review → Commit loop: Best-of-N, testing, git, MCP, hooks & skills. No sample: from the course description. 2026.
  16. 16.
    Mastering Cursor, CAIO INCAU: The AI-Native IDE No sample: from the description and table of contents. 2026.
  17. 17.
    Vibe Coding, CAIO INCAU: Build Real Apps Without Writing Code No sample: from the description and table of contents. 2026.
  18. 18.
    Ship Your First App with AI, Ganesh Bagaria: Build and Launch a Real Web App Using AI Tools — No Computer Science Degree Required No sample: from the description. 2026.
  19. 19.
    Silent Wiring, Tom Killi: The Hidden Failure Mode in AI-Generated Code No sample: from the description and table of contents. 2026.
  20. 20.
    Thinking with LLM, the right way, Francesco Fullone: Strengthening critical thinking with generative AI — without being used by it No sample: from the description and table of contents. 2026.
  21. 21.
    Graph Engineering: The Loop That Remembers, Volodymyr Pavlyshyn No sample: from the description and table of contents. 2026.
  22. 22.
    Fact-Based Agents, Volodymyr Pavlyshyn: ORM 2, FORML and Factum for agentic memory. No sample: from the description and table of contents. 2026.

Further reading

Other books in the library on the same ground, not cited above.

This is an article created from the free samples of 13 Leanpub books and the descriptions and tables of contents of 9 more books and courses. We're building these articles to provide you, the Leanpub reader, with a good jumping-off point to discover more Leanpub books that are interesting and relevant to you. We never use material which is paid-only when building these articles: we only use material which is already free on Leanpub. However, Leanpub authors can opt out from inclusion in articles from their book settings page.

Updated November 2026.

In the Leanpub store: 145 books · 1 courses in the Vibe Engineering category · also filed under Harness Engineering

All topics