OpenUI Live Replies
Any agent in bb answers in live UI: plans you approve, decisions you tune, quizzes and forms, and your click goes back as your next message.
Why read a reply you could click?
Plugin · for bb · any agent · v0.1 · MIT · 2026. Built with TypeScript, React, OpenUI Lang, Zod.
Read it, or use it
The same CI reply. One you read, one you use.
Read it · CI failed on fix/checkout-rounding. · Build passed in 1m 14s. · Test failed after 3m 32s: · unit passed in 1m 36s, · e2e failed in 1m 56s. · Deploy was skipped. · Checkout tests: 1 failed, 2 passed, 1 skipped. · - checkout > adds an item: passed · - checkout > removes an item: passed · - checkout > applies the promo code: failed. Expected total 42.50, received 45.00 (src/checkout.test.ts:88) · - checkout > pays with a saved card: skipped, needs the payments sandbox
Use it · The CI reply as live UI: a pipeline with the failing e2e job open, then the checkout tests, the failure first with its message, file and line
The text is how an agent writes the run without the plugin. The live reply draws the same facts from the plugin’s own Pipeline and Tests examples, redrawn for this page.
Watch it work
Redrawn for this page, with invented data. Touch it to take over.
- Ask · Ask in words. · 1 reply · A question in words. The reply streams in: a sentence, then a block the render line draws as the program arrives.
- Tune · Tune it. · 0 model calls · Weights from 0 to 5 re-rank the options at once, with no model call: the plugin’s own scoring.
- Answer · Answer with a click. · 0 words typed · Go with sends your pick as your next message, weights and all, in the plugin’s exact words.
- Approve · Approve the plan. · 1 click · Plans wait for you: Approve the plan, or Change something. Three words go back, and the agent starts.
Why
An agent’s reply should be something you use, and your answer should be one click.
OpenUI Live Replies is a bb plugin that brings generative UI to agent replies. AI agents put OpenUI Lang programs in what they write, bb draws them inline as live UI, and a button, a pick or a form sends your answer back into the thread as your next message. No gateway, no API key.
- Dashboards and reports
- Plans you approve
- Decisions you tune
- Quizzes and flashcards
- Forms
- Maps and small apps
Ask it anything
Eight asks. Eight replies you can use.
- Slow endpoint · Where does the time go in GET /orders? · Mostly in the database: the select takes 290 of the 420 ms. The last 30 requests look the same. · The reply to “Where does the time go in GET /orders?”, drawn live
- Release check-in · How are the release workstreams doing? · One on track, one at risk, one late, one done. The press kit is the one to chase. · The reply to “How are the release workstreams doing?”, drawn live
- Teach me · Quiz me on HTTP caching. · Three questions. Send me your score at the end and I’ll go over what you missed. · The reply to “Quiz me on HTTP caching.”, drawn live
- Weekend trip · Plan two days in Lisbon. · Belém on day one, the old town on day two. Tap a stop for its note. · The reply to “Plan two days in Lisbon.”, drawn live
- Estimate it · How long will the environments dashboard take? · About 10 days, 11 to be safe. The dashboard UI is the widest range. · The reply to “How long will the environments dashboard take?”, drawn live
- Ready to merge? · Is this branch ready to merge? · Not yet. The checks are still running, and two things it claims haven’t been checked. · The reply to “Is this branch ready to merge?”, drawn live
- A tiny tool · Make me a tip splitter. · Here it is. Change the numbers; the button sends the split to this chat. · The reply to “Make me a tip splitter.”, drawn live
- Something calm · Make me something calm to look at. · Slow ripples. It runs on your graphics card, right in the reply. · The reply to “Make me something calm to look at.”, drawn live
Redrawn for this page with invented data. The tip splitter is the plugin’s own example page, running for real in a sandboxed frame; the ripples are its shader example, running on your graphics card.
- 62
- 3,000
- 6 · ×
Every component
Point at a name. Pick one to keep it.
Every component the plugin adds, in its eight groups, with its real signature and example. Most are drawn here from that example; brighter names are drawn.
- Numbers and charts · Progress · A level toward a goal: slim bar plus the figure. max defaults to 100 (shown as a percent); other max shows "3 of 12". · Progress, drawn from the plugin’s own example · Gauge · A level against a limit as a half-circle meter with the figure, e.g. CPU against 100%. min defaults to 0, max to 100. · Gauge, drawn from the plugin’s own example · Sparkline · Tiny inline trend of a list of numbers, no axes, last value marked and printed. Fits in a Table cell or beside a figure. · Sparkline, drawn from the plugin’s own example · SegmentedBar · Shares of one whole as one stacked bar with a legend of label, value and share. Five parts or fewer reads best. · SegmentedBar, drawn from the plugin’s own example · CalendarHeatmap · Activity per day as weeks of squares, last 53 weeks at most. days: {"2026-08-03": 4, ...} or [{date, value}]; missing days count as 0. · CalendarHeatmap, drawn from the plugin’s own example · Treemap · Sizes as nested rectangles, e.g. bundle or disk usage. items: [{path: "src/ui/app.tsx", size: 3021}]; "/" in path nests. Labels show where they fit. · Treemap, drawn from the plugin’s own example · Histogram · Distribution of raw values (latencies, sizes, scores) as counts per bin. bins defaults to a round-edged count from the data. · Histogram, drawn from the plugin’s own example · BoxPlot · Spread of several samples side by side: median, quartiles, whiskers at 1.5 IQR and outliers. groups: [{label, values: [raw numbers]}]. · BoxPlot, drawn from the plugin’s own example · Heatmap · A matrix of numbers as shaded cells, e.g. builds by weekday and hour. values: one list per row, one number per column; null for no data. · Heatmap, drawn from the plugin’s own example · Funnel · Stages of a flow as shrinking bars with the conversion from the step before. stages: [{label, value}] in flow order. · Funnel, drawn from the plugin’s own example · KeyValue · Facts as a list of name and value, e.g. {Branch: "fix/upload", Author: "sam"} or [["Branch", "fix/upload"]]. Values may be components like Tag. · KeyValue, drawn from the plugin’s own example · Grid · Equal tiles side by side for comparable items (Gauges, small charts, short cards). columns defaults to 2; one column when narrow. · Grid, drawn from the plugin’s own example · Diagram · Flow diagram drawn from Mermaid source: flowcharts, pipelines, architecture, sequences, state machines.
- Inputs and learning · Stepper · A count with minus and plus buttons and a typed field (guests, servings, seats). Bind value to a $var to use it elsewhere. · Stepper, drawn from the plugin’s own example · Rating · 1 to max stars (default 5) picked by click or arrow keys. Bind value to a $var to read the rating. · Rating, drawn from the plugin’s own example · ListEditor · An editable list of short strings: add, edit, reorder and remove (labels, steps, names). Bind value to a $var holding a string array. · ListEditor, drawn from the plugin’s own example · Swatches · CSS colours, plain or {value, name}. Click copies the value; with name or value ($var) it also picks one, e.g. Swatches(["#2563EB"], "accent", $accent). · Swatches, drawn from the plugin’s own example · FollowUps · Suggested next questions as a quiet list; a click sends that prompt as the user's next message. · FollowUps, drawn from the plugin’s own example · Timer · A countdown from seconds with start, pause and reset; a stopwatch when seconds is omitted. · Timer, drawn from the plugin’s own example · Quiz · A self-check quiz, one question at a time, with the score at the end and a button to send it. · Quiz, drawn from the plugin’s own example · Flashcards · A deck to practise: flip each card, mark it known or again, move back and forth; keeps a tally. · Flashcards, drawn from the plugin’s own example · Walkthrough · A guide shown one step at a time with progress and previous/next; for procedures the user follows along. · Walkthrough, drawn from the plugin’s own example
- Time and planning · Timeline · Dated events in order down a rail: incidents, histories, changelogs. tone only for real state (good, warn, bad). · Timeline, drawn from the plugin’s own example · Calendar · Month grid of events with previous/next month; an agenda list on narrow widths. month (yyyy-mm) defaults to the first event's month. · Calendar, drawn from the plugin’s own example · Roadmap · Gantt of dated work by lane over a date axis, with a today line. status words the bar; milestone items are diamonds. · Roadmap, drawn from the plugin’s own example · Board · Kanban board: one column per status with counts. columns sets the order (default: statuses in order of first use). · Board, drawn from the plugin’s own example · Status · Workstream health rows: worded status, progress, owner, due and a note. For project or release check-ins. · Status, drawn from the plugin’s own example · Plan · A plan the user approves before work starts: numbered steps with files, risk and estimate, then Approve or Change something. · Plan, drawn from the plugin’s own example · Decision · Weighted comparison the user tunes: weights (0-5, default 3) per criterion re-rank options live; Go with X sends the pick. · Decision, drawn from the plugin’s own example · Choice · Options the user picks from, one large slide each in a carousel (arrows, dots, swipe): directions, designs, approaches. Each slide shows its image full width, then the points and a button labelled with the title that sends "Go with <title>". other (a placeholder, "" for the default) adds a free-text answer box. · Choice, drawn from the plugin’s own example · Estimate · Three-point estimates: a range bar and PERT mean per task, total P50 and P90. unit as written, e.g. h, d, points. · Estimate, drawn from the plugin’s own example · Acceptance · Is it really done: criteria with worded status and evidence, summary counts. columns (e.g. Claimed, Checked) give a grid via cells. · Acceptance, drawn from the plugin’s own example
- Structure and media · Tree · File or concept tree: path strings ("src/a.ts"; shared folders merge) or {label, children?, note?} nodes; folders fold. · Tree, drawn from the plugin’s own example · Json · Collapsible JSON explorer for an inline value (object, array, or a string holding JSON); the user can copy any path or value. · Json, drawn from the plugin’s own example · Diff · One file's unified diff (a patch with ---/+++ and @@ hunks); language names the file type when the patch has no file headers. · Diff, drawn from the plugin’s own example · Compare · Before and after, or reference against candidates: images side by side, as a wipe or a blink; the first image is the reference. · Compare, drawn from the plugin’s own example · Hotspots · Numbered pins on an image (https URL or thread file path); selecting a pin shows its text. List points in reading order. · Hotspots, drawn from the plugin’s own example · Sources · Numbered list of cited web pages, matching [1], [2] in the text; opens them in BB's browser. · Sources, drawn from the plugin’s own example · Entity · A product, place, person or organisation at a glance: facts is an object of label to value; image is an https URL or thread file path. · Entity, drawn from the plugin’s own example
- Workspace files · Snippet · Lines from..to (1-based, inclusive; omit for the whole file) of a file, numbered and highlighted, with a link that opens it at those lines. · File · A compact link to one workspace or thread-storage file that opens it in BB, optionally at a line. · File, drawn from the plugin’s own example · FileImage · An image file (png, jpg, gif, webp, svg, avif) from the workspace or thread storage, at its natural aspect ratio. · Logs · Build or server output: source is a log file path or the text itself (ANSI and JSONL fine); errors and warnings counted and jumpable. exit 0 reads as success. · Logs, drawn from the plugin’s own example · StackTrace · An error and its stack (JS/TS, Python, Java/Kotlin, Go, Rust, Ruby): trace is the printed text or a file path. App frames lead; library frames fold. · StackTrace, drawn from the plugin’s own example · Transcript · Transcripts compared word by word: the first track is the reference; each other track gets its word error rate and its substitutions, deletions and insertions marked.
- Reports · Tests · Test results, failures first with message and file:line. source: a thread file (vitest/jest --json, JUnit XML) or rows inline. · Tests, drawn from the plugin’s own example · Findings · Lint, type-check or review findings grouped by file. source: a thread file (eslint/biome/oxlint/ruff JSON, SARIF, tsc --pretty false) or rows inline. · Findings, drawn from the plugin’s own example · Coverage · Code coverage totals and files worst first. source: a thread file (lcov.info, coverage-summary.json) or rows inline with percentages. · Coverage, drawn from the plugin’s own example · Dependencies · Outdated packages by major/minor/patch gap and vulnerabilities by severity. source: a thread file (npm outdated/audit --json, pip list --outdated JSON) or rows inline. · Dependencies, drawn from the plugin’s own example · Pipeline · A CI run: jobs and steps with status and durations, failures open. source: a thread file (gh run view --json ...,jobs) or stages inline (duration in seconds); url links the run. · Pipeline, drawn from the plugin’s own example · Benchmark · Before/after measurements with the change in words, judged by `better` (default lower). source: rows inline or a thread file (hyperfine --export-json). · Benchmark, drawn from the plugin’s own example · Waterfall · Timings as bars on a shared time axis: spans inline (start and duration in `unit`, default ms; depth indents) or a HAR file from the thread. · Waterfall, drawn from the plugin’s own example · Provenance · What reached live, stage by stage from source, with facts (branch, sha, build, device...). Flags facts that differ from `expected` or from the stage before. · Provenance, drawn from the plugin’s own example
- BB project · Changes · Files changed in this thread's environment with +/- counts, each opening its diff. target: omit for the branch's work (uncommitted included), "uncommitted", or a commit sha. paths: files, folders or globs. · Changes, drawn from the plugin’s own example · Commits · This branch's commits since its base branch, newest first; each opens the files it changed. limit: most shown (default 20). · Commits, drawn from the plugin’s own example · PullRequest · This thread's branch's GitHub pull request, live: title and link, state, checks, review and merge state. No arguments. · PullRequest, drawn from the plugin’s own example · Threads · Live status of BB threads: title, status, opens the thread. ids: thread ids in this project; omit for this thread's subthreads. · Threads, drawn from the plugin’s own example · Environments · This project's environments (checkouts and worktrees): branch, its live threads, uncommitted and ahead counts, pull request. No arguments. · Environments, drawn from the plugin’s own example
- Maps, media and sandbox · Map · OpenStreetMap map with numbered pins and a list of the places. route draws a line through them in order, one per day; tour adds previous and next buttons to step through the stops. · Map, drawn from the plugin’s own example · ImageSearch · A freely licensed, credited photo from Wikimedia Commons for query (a short literal description, e.g. "red fox in snow"). aspect: wide (default), square or tall. · App · A small self-contained HTML, CSS and JS page run in a sandboxed frame with no network. Inline everything; see the notes for theme variables and bbui.send(text). · App, drawn from the plugin’s own example · Shader · A Shadertoy-style GLSL fragment shader: define void mainImage(out vec4 fragColor, in vec2 fragCoord); iTime, iResolution and iMouse are provided. Write line breaks as \n. · Shader, drawn from the plugin’s own example
On top of OpenUI’s own library · Stack · Tabs · Accordion · Steps · Separator · Modal · Card · CardHeader · TextContent · MarkDownRenderer · Callout · TextCallout · Image · ImageBlock · CodeBlock · InlineHeader · Table · EditableTable · BarChart · LineChart · AreaChart · RadarChart · HorizontalBarChart · PieChart · RadialChart · SingleStackedBarChart · Slice · ScatterChart · Form · Label · Input · TextArea · Select · DatePicker · Slider · CheckBoxGroup · RadioGroup · SwitchGroup · Chips · OptionCards · Buttons · IconButton · TagBlock · Tag · Icon · EntityList · ListBlock · SnippetCardBlock · OverviewCardBlock · ContextCardBlock · CompositeCardBlock · VisualCardBlock · Text · BoldText · IconText · ImageText · ImageTextLarge · MetricIndicatorInline · MetricIndicatorWithStrikethrough
In the real thing
The plugin itself, in bb.
- Tune a decision · Change the weights and the options re-rank. Go with names the leader, and sends it with your weights. · A Decision in bb after re-weighting: Throughput at 5 and Ops cost at 1, Redis queue leading at 85 percent, and Go with Redis queue · 1920 · 1200
- Approve a plan · Numbered steps with the files they touch, their risk and estimate, then Approve the plan or Change something. · A Plan in bb: four steps with files, risk and estimates, and the Approve the plan button · 1920 · 1200
- Failures first · A CI run with its failing job open, then the tests that failed, with message, file and line. · A Pipeline and a Tests report in bb: the e2e job failed, and the failing checkout test leads with its message and file · 1920 · 1200
- A map with a route · Numbered stops on OpenStreetMap, a route for each day, and the list of places. Web lookups can be turned off. · A Map in bb: six numbered stops across Lisbon on OpenStreetMap tiles, with a route for each of two days · 1920 · 1200
How it works
- Teach · A short prompt · Each thread a person reads gets about 3,000 tokens of instructions. Worker threads get none.
- Write · The agent writes a block · Where part of an answer is better seen or used than read, it writes an openui-lang block, and can fetch a component’s signature or check the block first.
- Draw · bb draws it inline · The block is drawn in the reply as it streams, in bb’s own fonts and colours. Charts draw once it stops.
- Answer · Your click goes back · A button, a pick or a form sends your answer into the thread as your next message.
Light and dark
Light
Dark
Blocks wear bb’s own theme, its fonts and colours, in light and dark mode.
Launch film
0:20
The 20-second launch film, made of the plugin’s own renders
Questions
Which agents can use it?
Any agent provider in bb. The plugin gives each one the same instructions and tools, and nothing in it depends on one model.
What does it cost in tokens?
About 3,000 tokens of instructions in each session a person reads; worker threads get none. Signatures for most components load only when the agent asks for them.
Do I need an OpenUI account or an API key?
No. There is no OpenUI Gateway and no key. Gateway’s automatic error correction is not used, so a block with no renderable root shows as its code.
What does my click send?
Words the agent reads, as your next message. Go with sends “Go with Redis queue (weights: Throughput 5, Ops cost 1, Delivery 4, Local dev 2)”; a plan sends “Approve the plan”; a quiz sends your score and what you missed; a form sends one line per field.
Does anything leave my machine?
Web lookups are on by default: Map asks Photon and OpenStreetMap, and Map and ImageSearch ask Wikipedia and Wikimedia Commons, which see your IP address and the request. Turn off the plugin’s Web lookups setting and nothing is fetched. Blocks also load the image URLs the agent writes, and source lists load site icons from Google’s favicon service.
Is what I type in a form kept?
No. It resets when the reply scrolls out of view or the thread reloads, and it is sent only when you click.
Can a block run code?
Only two. App runs a small page in a sandboxed frame with no network, and it can send a message only right after your click. Shader runs a GLSL fragment shader on your graphics card.
Can I run it with genui?
Turn one off. Together they give agents two UI languages and both prompts.
Requirements and costs
- bb · 0.49 or later · It uses the experimental code-fence renderer slot. Plugin SDK 0.6.132 or later.
- Agent · Any agent provider in bb
- Prompt · About 3,000 tokens · In each session a person reads. Worker threads get none.
- Keys · None · No OpenUI Gateway and no API key.
- Licence · MIT
Get it
Requires bb 0.49 or later. Or add the repository as a marketplace and install openui@ahsan7162.
bb plugin install git:github.com/ahsan7162/bb-plugin-openui@main