Product teams iterating on tone
Writers adjust the assistant's voice daily without waiting for an engineering release, and recent versions are kept.
Version your system prompts in the data layer, roll a new one out to every service at once, and roll back in one command when it misbehaves.
The first version of the support agent's system prompt.
An animated walkthrough with real HotKV commands and example replies. Click any step to jump to it.
System prompts change more often than code, yet they usually live in the code. Every tweak is a deploy, different services drift onto different versions, and when a new prompt makes the assistant worse at 2 a.m., rolling back means another release.
The prompt registry keeps every version of each template in HotKV. Services read the active version at runtime, an editor publishes a new version with one command, and choosing which version is active is a single atomic switch that every service sees on its next read.
The first version of the support agent's system prompt.
PROMPT.PUT support-agent "You are a helpful support agent."Every service fetches the template at runtime instead of compiling it in.
PROMPT.GET support-agentA new version with metadata about who wrote it. It becomes active for every service at once.
PROMPT.PUT support-agent "You are a concise, friendly support agent." META "{\"author\":\"maria\"}"Answers got too terse. One command makes version 1 active again. No deploy, no restart.
PROMPT.SETACTIVE support-agent 1Recent versions stay in the registry, 64 by default, so you can compare them or return to any of them.
PROMPT.VERSIONS support-agentWriters adjust the assistant's voice daily without waiting for an engineering release, and recent versions are kept.
Chat, email drafting and summarisation all read the same template, so a fix lands everywhere at the same moment.
When a prompt change causes bad answers in production, on-call rolls back in seconds with one command.
Each PROMPT.PUT adds a version and makes it active. The most recent versions are kept, 64 by default.
PROMPT.PUTPROMPT.VERSIONSServices read the active version, or a specific one, with a single call.
PROMPT.GETPROMPT.LATESTSwitch the active version atomically.
PROMPT.SETACTIVEKeep the author, the change reason or an experiment id with each version.
METANo. They read the active version at runtime, so the next read returns the new one.
Yes. Publish from CI with PROMPT.PUT, so Git stays the source of review and HotKV serves the live version.
The prompt registry is part of the Performance and Scale plans.
HotKV speaks the Redis protocol, so you can point an existing client at it and run these same commands.