referenceJune 3, 2026· 3 min read
How to use CPROMPT: version and A/B test prompts
CPROMPT stores named prompt templates with versioning, variable rendering, sticky A/B splits, and rollback — all from the CLI, all surviving restart.
Treat prompts like versioned code. CPROMPT SET creates a version, RENDER fills variables, ABSET splits traffic, and AB buckets a subject stickily.
crowkis cli
> CPROMPT SET support "You are concise. Answer: {{q}}"
"version 1"
> CPROMPT RENDER support VARS q="where's my order?"
"You are concise. Answer: where's my order?"
> CPROMPT ABSET support 1 50 2 50
OK
> CPROMPT AB support SUBJECT user_42
"2" # sticky: this subject always gets v2ROLLBACK reverts a bad version; VERSIONS lists the history. Nothing is lost.