AI-native development · Glossary term

What is Patch?

A reviewable representation of changes to one or more files, usually expressed as additions and deletions against a known base revision.

Why does Patch matter?

A patch gives people and agents a narrow artifact to inspect, test, apply, or reject without accepting an entire working directory.

Patch in practice

Ask a coding agent to return a unified diff, then verify that it touches only allowed files and applies cleanly to the expected commit.

What is the common confusion about Patch?

A patch captures file changes, not the reasoning, test evidence, or approval needed to ship them.

Learn Patch in the course

Start with

  • The Workbench on a Real Repo

    Eleven lessons of surfaces are worth nothing if they do not survive contact with a real codebase. This lesson runs the same task twice on a small sample app: prompt-only versus workbench-guided.

    Phase 14: Agent Engineering

Lessons that name Patch in a title or section

  • Vision Encoder Patches

    A vision model that reads pixels needs a tokenizer for pixels. Patch embedding is that tokenizer. Cut the image into a grid of squares, flatten each square, project it through one linear layer, then…

    Phase 19: Capstone Projects

  • Vision Transformers (ViT)

    Cut the image into patches, treat each patch as a word, run a standard transformer. Don't look back. Implement patch embedding, learned positional embedding, class token, and transformer encoder…

    Phase 04: Computer Vision

  • Vision Transformers and the Patch-Token Primitive

    Before anything multimodal, an image has to become a sequence of tokens a transformer can eat. The 2020 ViT paper answered this with 16x16 pixel patches, a linear projection, and a position embedding.

    Phase 12: Multimodal AI

Taught in Phase 14: Agent Engineering.

Also covered in Phase 04: Computer Vision, Phase 12: Multimodal AI and Phase 19: Capstone Projects.

  • Coding AgentAn agent specialized for software work that can inspect a repository, edit files, run development tools, and use their outputs to advance…
  • WorktreeIn Git, a working directory attached to a repository and branch or commit, with shared object storage but its own checked-out files and…
  • Scope ContractA concrete agreement that defines a task's goal, allowed and forbidden surfaces, expected artifacts, verification requirements, and…
  • Regression TestA repeatable check that protects behavior known to work, especially after code, prompt, model, retrieval, or tool changes.

More terms in AI-native development

Open the AI-native development list in the glossary

This entry comes from glossary/terms.md on GitHub. Browse all 250 glossary terms.