Skip to main content
The Prompt Registry lets you manage prompts centrally, separate from your code. Update prompts without redeploying your application.

Why Use Prompt Registry?

  • Iterate faster - Update prompts without code changes
  • Version control - Track prompt history and rollback
  • A/B testing - Test different prompts in production
  • Collaboration - Non-engineers can edit prompts

Creating a Prompt

  1. Go to Prompt Registry in your project
  2. Click New Prompt
  3. Enter a name (e.g., summarization-system-prompt)
  4. Write your prompt content
  5. Click Save

Prompt Structure

Each prompt has:
  • Name - Unique identifier (slug format)
  • Content - The prompt text
  • Variables - Placeholders like {{user_name}}
  • Version - Auto-incremented on each save
  • Tags - For organization

Using Variables

Include variables in your prompts:
Pass variables when fetching:

Fetching Prompts

Python

TypeScript

Versioning

Every save creates a new version:

Rollback

To rollback to a previous version:
  1. Click the version in history
  2. Click Restore
  3. This creates a new version with the old content

Environments

Use different prompts per environment:

Caching

Prompts are cached locally to minimize latency:
  • Default TTL: 60 seconds
  • Force refresh: muxx.get_prompt("name", cache=False)

Best Practices

customer-support-system-v2 is better than prompt1.
Use tags like production, experimental, deprecated.
Test new versions in staging before production.
One prompt per purpose. Don’t combine unrelated instructions.