Skip to content

35 min read

Three ways to see it

  1. The single biggest predictor of whether a Pakistani team's AI deployment will still be working six months after launch is not the model they chose, the cloud they rent, or the talent they hired. It is whether they treat their prompts as code. Prompts that live in Slack messages and WhatsApp groups, copy-pasted from one engineer's laptop into a config file, evolve mysteriously over weeks until nobody remembers which version is in production. Prompts that are versioned, tested, and stored alongside the code they live in survive turnover, get debugged when they break, and keep improving over time. This lesson teaches the discipline. It is the least exciting lesson in this track and the one that distinguishes serious teams from amateur ones.

  2. Way one: prompt as code constant. The simplest level. Your prompt lives in your source code, in a constants file, with a clear name. Every time anyone changes the prompt, they edit the source file and check it in. Git records who changed what, when, and why. There is exactly one source of truth and it travels with your code. For most internal tools and proof-of-concept projects in Pakistani offices, this is enough. The cost is zero. The benefit is that you stop guessing which prompt is running where.

  3. Way two: prompt as YAML or markdown. As your prompt library grows, hardcoding them in source becomes ugly. You move them out to .yaml or .md files in a /prompts directory. Each prompt has a name, a version number, a description, the prompt body, and maybe a set of example inputs and expected outputs. Engineers and non-engineers (a tax expert, a lawyer, a compliance officer) can edit the prompt files without touching code. Git still tracks every change. This pattern scales from one prompt to fifty cleanly. Most Pakistani product teams that ship AI features land here within their first year.

Quick check

Quick check: what makes modern AI different from a rule-based program?

The why-tree

For small Pakistani teams, a Google Sheet works. Each row is a prompt: name, version, body, last edited by, last edited date, notes. Engineers read it into their code via an API or by copying once a day. The sheet is auditable, editable by non-engineers, free, and survives the team. This is not the answer for a serious deployment, but for the first six months of any project it is more than enough.

Sources

Sources. The LangSmith documentation on prompt versioning. PromptLayer's blog on prompt management for production teams. Langfuse open-source documentation. Anthropic's guide on testing prompts. The 2024 paper "PromptLayer: A Framework for Prompt Engineering and Versioning" by the PromptLayer team. "The MLOps Maturity Model" by Microsoft, applied loosely to prompt operations.