Nirmos
Core concepts

Prompt lifecycle

Understand saved content, branches, live releases, and pinned versions.

A prompt has a logical identity, immutable saved content versions and a live release selection. Saving content and making it live are separate actions.

Drafts, branches and releases

Management methods under prompts edit metadata, save versions and manage branches. A saved version advances its branch's head. Publishing a default-branch version changes the global live release; saving another draft does not. A branch merge creates a saved draft and requires explicit publication to release it.

The selected branch's editableVersion describes saved editable content. Management latestVersion describes the live summary. Runtime managedPrompts.retrieveLatest() selects the globally newest saved version, including drafts. These values can differ.

Consume selected content

managedPrompts retrieves active, latest or numbered content, renders variables and caches reads. Management uses string version IDs; runtime numbered selection uses numeric versions. Pinned endpoints and evaluation targets use explicit version IDs.

Rendering retrieved content is local. A Gateway prompt reference retrieves and renders before the AI request. The application must still select a model or route. Cached active content can remain stale after management publication until reload, invalidation or expiry.

Use versions, branches and releases for operations, variables and rendering for interpolation, and prompt caching for freshness. The evaluation recipe evaluates an unpublished version before an explicit release decision.

On this page