
LLM projects start with one innocent prompt string. Then come a few conditions, a special case for one customer, a different instruction for a specific task, three examples copied from Slack, and suddenly your prompt is a 700-line f-string that nobody wants to touch because it'll break production behaviour.
We’ll cover practical patterns but also cover the dark side of hidden branches, accidental behavior changes and an impressive new species of spaghetti.
The goal is not to turn prompts into a templating religion. It is to make LLM behavior easier to reason about, debug, and safely evolve once prompts become a real part of your application.
Tal N. Mizrachi is a data scientist and founder of XP Lab, where he builds LLM-powered systems for evaluating analytical skills. With experience in data science, analytics leadership, and education, he focuses on the practical challenges of building reliable AI applications, from evaluating model outputs to keeping prompts and agent workflows from turning into spaghetti.