Prompts and Releases
A prompt is a file in a repository: prompts/<name>.pml. Every save is a commit, so every save is a version. A prompt does nothing on its own: a release puts one version on one or more keys, and from then on every request made with those keys gets it.
Writing a Prompt
Build › Prompts lists your prompts; New prompt opens the editor.
- Start from a template - Answer from articles, Summarise a document, Extract fields as JSON, Classify a message, Rewrite in a tone, Agent instructions - or write your own.
- Where it is saved - the repository and the branch. The branch's rule decides whether you can save to it directly; Main's rule lets you save directly.
- Name - lower case, digits and hyphens. The file is
prompts/<name>.pml. - Messages - in the order they are sent. Each has a role (system, user, assistant, tool), can be moved up or down or removed, and Add a message adds another. Insert a variable adds a
{{variable}}; Preview shows the messages as sent. - Variables - every
{{name}}found, and the message it is in. Your project fills them withtemplate_variableson each request. - Model settings - model, temperature (0-2), max tokens (1-32,000; a key can lower it) and More settings. They apply to every request on a key the prompt is released to, unless the request sets its own.
- Tools - Add a tool, for a prompt that calls functions.
- File validation - the same checks that reject an invalid push: the name, no empty message, variables, ranges, and that the model is a chat model in the catalog. It must say all pass to save.
- Save - a commit message, then Save to main (or the chosen branch). Saving changes no key: keys keep what they hold until a release.
The messages are an ordered list, and the variables inside them are what a request fills:
[
{"role": "system", "content": "Pick exactly one label from: {{labels}}. Answer with the label only."},
{"role": "user", "content": "{{message}}"}
]
A request on a key that holds the prompt sends its own message and the values:
{
"messages": [{"role": "user", "content": "Classify it."}],
"template_variables": {
"labels": "billing, bug, praise",
"message": "I was charged twice this month"
}
}
The prompt's messages go first, then the request's own messages. Try runs your draft alone: fill a value for each variable, pick a model, and Run (the price cap is shown first); Playground → opens it in the Playground.
A Prompt's Page
The header shows the repository, branch and file, the latest version on the branch, where it is live (development v2 · 1 key) and the checks that gate it. Actions: Edit, Release…, Try and More.
- Content - the messages, variables, model settings and tools of the version shown, and the file as stored.
- Versions - every saved version (v1, v2, … with its commit), its message, author and where it is live. Per version: Files at vN, Compare with live, and Roll back to vN… (a release of the older version, recorded as a rollback).
- Releases - every release of the prompt: when, version, key, who, how it went live (in Infere or by git push) and its status (Live, Replaced by v2).
- Usage - the runs that got the prompt over a period, by environment: runs, requests, cost, duration p95 and error rate, with a chart per hour.
Releasing a Prompt
Release… opens three steps:
- The version that goes live - the latest on the branch, or Change, with a link to the checks that gate the prompt.
- The keys that get it - pick keys by environment and project. Each row shows what the key holds now and its requests over 7 days.
- What changes, before you confirm - how many requests a day will get the new version; the checks this release needs (the gate runs this version for each key when you confirm, and a failing check keeps that key on what it holds); what it asks of your project (the variables it must send - the prompt's messages are added to every request on the key, and a system message your project sends itself stays, next to the prompt's); and per key Adds … or Replaces v1 → v2, with What's different.
Release vN to N keys confirms. The result page shows where it went (per key, live now or blocked by a check), Confirmed by traffic (per key, waiting for the first request until a request with the new version arrives), and where it is live now, with Watch its requests →, All releases and Roll back to what it held….
The Releases Page
Build › Releases has:
- Waiting for your review - release requests you are asked to review.
- Live now - per key, the environment, prompt, version, since when, and whether it is up to date with the branch.
- History - every release, with who released what, when and how.
Releasing with Git Push
A push over HTTPS to the reference deploy/<prompt name>/<key name> releases the pushed version of that prompt to that key, through the same checks:
git push origin HEAD:deploy/<prompt name>/<key name>
Git answers with the result; the possible answers are listed in Settings › Git access (Released, Waiting for review, No check ran, Check failed, Blocked by a rule, No such key, File error, Release failed, Two keys share the name):
remote: released: <prompt> v<n> (8be04d1) → key "<key>" (<environment>), from main
Nothing releases to a key automatically: a release always comes from the release step, the API, or a push.
Prompts and their evaluators are versioned together in the same repository: prompts are .pml files and evaluators are .eml files, so the version of a prompt and the evaluators that judge it stay in step.