Prompt benchPro
Edit, test and ship a prompt template in one card: variables show as coloured chips, fields fill them from saved test cases, Run streams a reply with latency, tokens and cost, and versions can be compared word by word and promoted to production with Undo.
oxyn add prompt-benchSupport reply
Prompt template · production serves v3
You are a careful support assistant for {{product}}. Answer in a {{tone}} voice, keep it under 80 words, link one help article when it helps and never promise a refund without asking a teammate.
The preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.
Rendered from Rust at build time · goes live when visible
When to use
- Edit, test and ship a prompt template in one card: variables show as coloured chips, fields fill them from saved test cases, Run streams a reply with latency, tokens and cost, and versions can be compared word by word and promoted to production with Undo.
When not to use
- Sit in on a crew of agents mid-run: use Live Session instead.
- One overview for a whole fleet: use Fleet overview instead.
- The fleet overview laid out against time: use Fleet timeline instead.
Installation
Prompt bench is part of Oxyn Pro; the preview is free. Pro items install with the oxyn CLI once your licence is signed in; until then Pro members copy the code from this page.
oxyn add prompt-benchUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Editing
Latest version, test run streaming.
Support reply
Prompt template · production serves v3
You are a careful support assistant for {{product}}. Answer in a {{tone}} voice, keep it under 80 words, link one help article when it helps and never promise a refund without asking a teammate.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Compare
Word diff against production (Oxyn extra).
Support reply
Prompt template · production serves v3
You are a Added +careful support assistant for {{product}}. Answer in a {{tone}} voice, keep it under 80 Added +words, Removed −words Removed −and link one help article when it Added +helps Added +and Added +never Added +promise Added +a Added +refund Added +without Added +asking Added +a Added +teammate. Removed −helps.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Error
The run fails, with Retry (Oxyn extra).
Support reply
Prompt template · production serves v3
You are a careful support assistant for {{product}}. Answer in a {{tone}} voice, keep it under 80 words, link one help article when it helps and never promise a refund without asking a teammate.
Run failed: the model returned an error.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
PromptBench
| Prop | Type | Default | Description |
|---|---|---|---|
nowrequired | ClockMs | — | Host clock. |
auto_play | bool | true | Run the first test case at once. |
fail | bool | Default::default() | The first run fails (error scenario). |
compare | bool | Default::default() | Open in compare mode. |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| Ctrl/CmdEnter | Run the selected test case from anywhere in the card |
| ←or→ | On System and User, the test cases and effort, move the selection |
| ↑or↓ | In the version and model menus, move between rows |
| Esc | Close a menu, or leave compare mode |
Accessibility
- The two message tabs use tab roles; in compare mode insertions and deletions are marked up as such, with a sign you can see and a word read aloud.
- Every input is labelled with its variable name in its series colour; a blank one is flagged invalid and its chips go dashed.
- Runs, results, promotions and undos are announced, including that the reply is simulated.
Responsive behaviour
- Up to 760 px; below 560 px the fields go to two columns and below 340 px to one; below 480 px the test cases and Run take full rows.
Notes for AI
- Import
PromptBenchfromoxyn_dioxusand includeSTATUS_INDICATOR_CSSplus the token stylesheet once. - A GPUI version exists:
BlocksViewinoxyn_gpui. - Props to set first:
now. - It reads a clock (
now) for live timers; pass one clock for the whole page rather than one per component. - Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.