Glossary / Code & Repos

Patch

A focused change to a codebase, usually to fix a bug or adjust behavior.

Updated July 2, 2026

The point of a patch is restraint. You change the specific lines needed to fix one thing, without redesigning the system around it.

Think about patching a small leak in an office ceiling. You’re not rebuilding the building. You find the leak, open the right spot, fix it, and check that no more water comes through. Code patches work the same way: maybe a search filter isn’t returning the right results, or a button sends people to the wrong page. Small doesn’t mean low-risk, though. A one-square-foot repair above the server closet still matters, because a small change to the codebase can touch payments, emails, permissions, or client data.

How it shows up

With AI tools, “apply a patch” usually means the agent edits files directly. It may show the before and after, marking removed and added lines so you can see exactly what changed instead of rereading the whole file. A patch often becomes part of a commit, the saved snapshot, while the patch is the actual set of changes. If it goes wrong, you may need a rollback or another patch.

Why you care

Good patches stay specific. If you asked the agent to fix the login error, it shouldn’t also rename half the files and redesign the page. That drift makes review harder and raises the chance of a merge conflict. AI can change things fast, and speed only helps if the change stays tied to the problem. For nontechnical operators, the question is simple: “what exactly did this patch change?” A good agent answers in plain English and points to the files touched. If it can’t, the patch may be too broad.