By Abhijith N M · Reviewed 24 October 2026 · Editorial standards
On a Monday, a support team noticed that answers had shifted. The tone was shorter, the escalation wording had changed, and one policy question now cited an outdated paragraph. The error rate on their evaluation set rose by four points.
No code had shipped. Two things had changed quietly. The application called a model alias that now points at a newer snapshot. Someone had also edited the system prompt in an admin panel on Friday afternoon.
The problem was not the new model. Nothing in the repository showed a change. There was no diff to review and no version to roll back.
Claude applications carry configuration in five layers. Each has a different scope and a different reviewer, and mixing them is how a setting becomes folklore.
| Layer | Where it lives | Committed | Reviewed by |
|---|---|---|---|
| Project rules | CLAUDE.md, Skills and commands in the repository | Yes | The team, in a pull request |
| Agent permissions | settings.json for allow, deny and environment | Yes, minus secrets | The team, with security for deny rules |
| Runtime | Environment variables and a pinned model id | A template, not values | Platform or operations |
| Prompts | Prompt files with an id and a version | Yes | The team, with an evaluation run |
| Plugin dependencies | A pinned version in the project settings | Yes | The team, when the version changes |
One rule covers all five layers: if a change alters behaviour, it belongs somewhere a reviewer can see it. A value that lives only in a hosted console is a change nobody can review.
A model alias floats. That is convenient. It is also the quietest source of behaviour change in a Claude application, because a floating alias can move without a deploy.
Pin a dated snapshot id in configuration, and treat a change of pin as a release. Run your evaluation set on the new snapshot, compare it with the current one, record both numbers, then switch. Keep the previous pin for one release so rollback is a configuration change rather than a rebuild.
Read the deprecation notice and put the retirement date on the team calendar.
Run the new snapshot against the frozen evaluation set and record the delta per criterion.
Change the pin in one commit, with the evaluation result in the description.
Watch the traces for one release, then remove the old pin.
The same discipline covers tools and schemas. A tool description change is a behaviour change. A schema field that becomes required is a breaking change for the consumer. Both deserve a diff and a test.
A prompt that lives in a console has no history, no review and no rollback. Move it into a file and give it an id and a version. Record both on every trace, so an answer can be explained a week later.
The release path is the same for a prompt as for a function.
Caching reuses an identical prefix, so the order of your prompt is a cost decision. Put the stable rules and the tool definitions first. Put the ticket, the date and the user name last, because a change early in the prefix invalidates everything after it.
This is ordinary refactoring with an unusual test. Edit the prompt, run the evaluation set, then check the quality delta and the cache hit rate. A prompt tweak that doubles the input cost is a regression even when the answers improve.
import re
DATED_SNAPSHOT = re.compile(r"-\d{8}$")
CONFIG = {
"model": "claude-sonnet-latest",
"prompt": {"id": "triage", "version": None},
"settings": {"max_tokens": 800},
}
def check_config(config):
errors = []
model = config.get("model", "")
if not DATED_SNAPSHOT.search(model):
errors.append(model + " has no dated snapshot: pin it")
prompt = config.get("prompt") or {}
if not prompt.get("version"):
errors.append("prompt has no version: traces cannot be reproduced")
settings = config.get("settings") or {}
if not settings.get("max_tokens"):
errors.append("settings has no max_tokens")
return errors
for error in check_config(CONFIG):
print(error)Audit the configuration of one Claude application you run.
Key takeaways
Behaviour lives in five places: project rules, permissions, runtime configuration, prompts and plugin versions.
A floating model alias can change behaviour without a deploy; pin a dated snapshot.
A pin change is a release: evaluate, compare, commit, watch, then retire the old one.
Prompts belong in version control, with a version id recorded on every trace.
Put the stable prefix first so a late change does not invalidate the cache.
Commit the configuration and a template, never the credentials.
Written and edited by the nexGenCoders team. Spotted a mistake? Tell us and we will fix it.
Don't lose this lesson
Create a free account to save your progress, keep your streak, and work toward a shareable certificate.