Areas we serve
Chapter 1

Welcome & Why This Is Not Optional

Agents can write the app. Only commits can prove what they did.

In this book

  • Explain what Git stores, and what GitHub adds on top of it
  • Read a diff and say what an agent actually changed
  • Tell a safe commit from one that leaks a secret or hides a rewrite
  • Use branches and pull requests so a human still approves agent work
  • Treat the commit history as the audit log of every agentic change

The agent can write the app. It cannot be the record.

Vibe coding means you describe the change and a coding agent edits the files. Cursor, Copilot, Claude Code, and similar tools are good at that. They are also fast enough to change twenty files before you have read one of them. If the only copy of the truth is “whatever is on the laptop right now,” you cannot answer the questions that show up the next morning: what changed, who changed it, and how do we put it back?

Version control is the practice of saving the project as a sequence of named snapshots. Git is the tool that stores those snapshots on disk. GitHub is the shared copy of that history, plus the review screen where a person accepts or rejects a change. This book is introductory. It does not assume you have used a terminal for years. It does go deep enough that you can supervise an agent instead of hoping the folder still looks right.

Core idea

Once agents edit the product, Git is not a developer hobby. It is the system of record. Every prompt, every file edit, and every rollback has to land as a commit you can audit. If it is not in Git, it did not officially happen.

Why this is too important to skip

An agent does not “remember” the way a careful colleague does. It will happily overwrite a working booking form because the prompt said “make it cleaner.” Chat history is not a backup. The model’s context window is not a backup. The only durable account of what the software is, and of what the agent was allowed to do to it, is the repository.

That is also the compliance story. If a client asks who changed the price calculation, “the AI did it” is not an answer. A commit with an author, a time, a message, and a diff is an answer. Agentic operations stay governable only when they are forced through that trail.

Workshop Co.

Who
The same St. Albert class studio from Book 10. The owner still is not a full-time developer.
What exists
A small booking app an AI coding tool generated: class list, reserve a seat, a simple admin page.
What went wrong
An agent “improved” the reserve button at 1 a.m. The next class showed zero seats. Nobody could see the previous version.
What this book builds
A GitHub repository where the agent may edit and commit, and a human merges only what the history can explain.

What you need first

Book 10 is useful if you have not named the stack yet. You do not have to finish Books 1 through 9. You do need a GitHub account, and Git installed on the computer where the agent runs. The chapters show the commands. You can paste them. You should still read what they do before you paste them into an agent.

Before Chapter 2

The owner has the booking app in a folder named studio and a long chat with the coding agent. There is no Git repository. In one sentence, what can they no longer prove?

Answer

They cannot prove what the code was before the last agent edit, who made that edit, or how to return to a version that took bookings. The chat is a conversation. It is not a snapshot of the files.