Documentation Index
Fetch the complete documentation index at: https://docs.moda.dev/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Moda prompt management keeps prompts in your repository and syncs immutable versions to Moda. Developers edit prompt files, the CLI detects local changes,moda prompts sync uploads new versions, and the dashboard shows each prompt, version, source path, labels, and runtime usage.
This is designed for evals: every LLM call can carry moda.prompt_key, moda.prompt_id, moda.prompt_version, and moda.prompt_version_id, so later eval runs can compare prompt versions against production behavior.
Workflow
- Run
moda initonce in the repo. - Keep prompt files under
prompts/**/*.prompt.mdorprompts/**/*.prompt.json. - Check local changes with
moda prompts status. - Upload immutable versions with
moda prompts sync. - Render prompts at runtime with
Moda.prompt(...).render(...)ormoda.prompt(...).render(...). - Promote labels with
moda prompts promote <key> --label=prod --version=<version_id>.
Versioning
Each prompt version is content-addressed from the prompt key, content, messages, system prompt, model config, variables schema, tools, and response schema. Syncing unchanged content reuses the same version; changing a prompt creates a new version. Labels are pointers:| Label | Use |
|---|---|
dev | Active development |
staging | Pre-production validation |
prod | Production prompt |