Prompt Editor
How to write, test, and save prompt source, including save targets, variables, and shortcuts.
The Editor is where prompt source is written, tested, and saved.
Anatomy
| Region | What it does |
|---|---|
| Header | Slug, folder, owner, model, and temperature controls. |
| Variables panel | Lists every {{var}} and {var} token detected in the source. |
| Source editor | Main prompt text area. Cmd+S / Ctrl+S opens the save modal. |
| Preview / test runner | Lets you try sample variables and inspect the rendered prompt. |
Save Targets
| Target | What changes | When to use |
|---|---|---|
| Draft | Saves work without changing live or staging reads. | Mid-iteration checkpoints. |
| Staging | Makes the draft visible to pv_test_ keys. | Preview environments, CI, teammate review. |
| Live | Publishes the version to pv_live_ keys. | Production-ready prompt changes. |
Draft saves update the current draft during an iteration so normal editing does not create unnecessary version labels.
Variables
Two syntaxes are supported:
{{name}}- Mustache-style.{name}- single-brace shorthand.
Names match [A-Za-z_][A-Za-z0-9_.-]*. JSON braces, code samples, and unrelated placeholders are left alone.
The SDK extracts the same variable names and returns them on prompt.variables. See Variables.
Keyboard Shortcuts
| Shortcut | Action |
|---|---|
| Cmd+S / Ctrl+S | Open save modal. |
| Esc | Close any open modal. |
Editing Metadata
You can rename the slug, move folders, and update model or temperature from the editor header. These changes appear in Activity.
Deleting a Prompt
The editor's overflow menu exposes Delete prompt. Deleting a prompt removes it from the dashboard and sends a delete event to connected integrations.