Skip to content
Back

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-bench

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.

Writing

The code is part of Oxyn Pro

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.

Get Pro

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

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.

Terminal
oxyn add prompt-bench

Usage

Dioxus · rust
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

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.

Writing

Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

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 code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

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 code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

API reference

PromptBench

PropTypeDefaultDescription
nowrequiredClockMs—Host clock.
auto_playbooltrueRun the first test case at once.
failboolDefault::default()The first run fails (error scenario).
compareboolDefault::default()Open in compare mode.

Read from the Rust signature and doc comments.

Keyboard interactions

KeyAction
Ctrl/CmdEnterRun 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
EscClose 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 PromptBench from oxyn_dioxus and include STATUS_INDICATOR_CSS plus the token stylesheet once.
  • A GPUI version exists: BlocksView in oxyn_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.

Guides

Oxyn · 74 free components · 264 Pro components · 96 screens · 20 blocks · Dioxus and GPUI