The scariest bug in an LLM app usually isn't in the code. It's a one-word tweak to a prompt that nobody logged, reviewed, or could roll back.
You'd never let a teammate edit production code straight on the server: no Git history, no PR, no rollback. Yet that is how prompts got treated for years. Someone edits a string in a config or a dashboard, ships it, and two days later nobody can say what changed.
What actually needs versioning, ordered by how often it's missed:
1) The prompt text. LangSmith turns every saved edit into a commit you pull by hash: pull_prompt("my-prompt:commit_hash"). Langfuse uses version numbers plus labels like "production". Both let a label point at a commit, so rollback is repointing a tag, not a redeploy.
2) The model ID. Both tools let you store model config beside the prompt, but it is optional, so teams skip it. Providers ship dated snapshots and retire old ones. Anthropic gives at least 60 days notice, then calls to a retired model just fail (claude-opus-4-1-20250805 retired August 5, 2026). Your prompt didn't change. Its behavior did.
3) The sampling parameters. temperature, top_p and top_k are deprecated on Claude Opus 4.7 and later, where a non-default value returns a 400. A knob that tuned output yesterday is a failed request today.
4) The tool definitions. The sleeper in agentic systems. A tool's name and description IS prompt text: the model reads it to decide what to call. Rename an argument and you've changed agent behavior without touching "the prompt". That whole surface is what people now call context engineering, and all of it belongs in version control.