Pull prompts at runtime
client.evaluations.prompts.create(name, text)) or the dashboard.
Suggest improvement
From the dashboard: Improve → Prompt Management → a prompt’s row menu → Suggest improvement. It gathers real evidence from two places at once - deliberate Evaluate runs tagged with the prompt’s name (as above), and worst-scoring Online evaluator ratings from real production traffic, since a live trace can carry the exact samemetadata.promptName tag a run can:
The evidence panel
Both sources are merged, worst-rated first, and load as soon as the dialog opens: this evidence already exists (a plain data read, no judge call), so you don’t have to generate a rewrite just to see what’s going wrong. Evaluate-run evidence defaults to the current published version only, a v3 prompt’s rewrite shouldn’t get polluted by v1 complaints v2 or v3 may have already fixed, automatically widening to every version if there aren’t at least a few examples on the latest one yet. The evidence panel also runs a second, informational judge pass grouping the same examples into a handful of named recurring failure themes (e.g. “Curt or unempathetic tone”), so you can see the shape of the problem before reading every individual justification.Generate, review, publish
Each example has a checkbox, filterable by source (production monitoring vs. eval dataset runs); only the checked ones feed Generate suggestion, so a rewrite can be scoped to a specific failure mode instead of always using everything gathered. The result includes the rewritten prompt, a short overall summary, and an itemized what changed list (each entry tagged added, tightened, or removed), plus the judge model actually used. The current and proposed prompts are shown as an editable, line-by-line diff (unified or side-by-side): you can edit the proposed (green) lines directly in the diff before publishing, not just accept it verbatim. Nothing is saved until you click Publish as new version. Your agent’s nextclient.evaluations.prompts.get(name) call picks up the new version immediately. Tagging your run’s metadata.version as <promptName>@v<N> (shown above) means the Compare versions dialog already tells you whether the published rewrite actually scored better, no separate comparison view needed.
Before publishing a proposal, validate it: the candidate and the current version run against a golden dataset’s cases under identical conditions, and the verdict ships with the published version.

