Building with AILesson 18 of 80

Module 2 · Prompting as engineering

Prompts belong in version control

In this lesson

  • 8 min read
  • 6 reading sections
  • Knowledge check
  • Lesson 8 of 10 in this chapter

This chapter’s goalTurn a prompt that works once into a versioned, cached, example-driven interface with a stated behaviour when the model does not know, and justify with cost and latency numbers whether a given task needs a longer prompt, a chain of smaller ones, a reasoning budget, or a fine-tune.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 7Free · no account needed
Lesson steps

A prompt change is a deploy

Editing a prompt changes the behaviour of your product for every user immediately. That is the definition of a deploy, and it deserves the same machinery: a diff, a review, a version number, a test run, and a way back.

What happens instead, almost everywhere, is that prompts live as string literals scattered through the codebase, or in a spreadsheet, or in a vendor’s web console where there is no history at all. Then quality drops, nobody can say what changed, and the honest answer to “what was the prompt on Tuesday?” is that it is gone.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the Python, from Zero, for AI exam.

Stuck on something?Ask Sayali, your AI tutor

How to cite: Addaly (2026) ‘Prompts belong in version control’, in Building with AI. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/building-with-ai/prompts-in-version-control (Accessed: 27 November 2026).