Skip to documentation content

Honest AI

Copy components for prompts, agent traces, tool calls, and approvals into your project.

Honest AI is a set of interface pieces an agent or chat product needs around its model: a field for the prompt, a trace of what the agent is doing, a record of the tools it called, and a way to ask the person a question before it acts.

Each component renders the state you pass in. None of them calls a model, streams a reply, or runs a tool. Your application does that work and passes the result as props. Because of that, a component never shows progress your application did not report.

For interfaces generated by a model, open Generative UI. It adds an Honest AI Lang parser and streaming renderer, component libraries backed by Honest components, and a chat state and transport layer.

Honest AI is built on Honest UI. The Honest UI CLI copies each component into your project under components/ai, along with the Honest UI components it uses, so you can change the source directly.

Available components

Conversation

ComponentUse it for
Chat ThreadLaying out a scrolling conversation with the composer under it, and showing a message's files, editor, and versions
Chat WelcomeGreeting a new conversation with starters before the first message
Context MeterShowing how full the model's context window is
Guardrail NoticeShowing what a guardrail masked, blocked, or flagged, the rule that fired, and why
MarkdownRendering a reply's Markdown, including Markdown that is still arriving
Message ScrollerFollowing streamed output and revisiting messages with a preview navigation rail
Message UsageShowing the tokens, cost, and latency of one reply or a whole thread, with the breakdown on demand
Prompt BarCollecting a prompt, with optional @ sources, / commands, attachments, a model menu, and a Stop button
Prompt SuggestionsOffering prompt starters a person can send with one click
Prose Code BlockShowing a code block inside a reply, with its language and a copy button
Search ListFiltering a short list, such as saved prompts
Sidebar NavNavigating destinations and past conversations
Streaming TextRendering a reply as it arrives, then its copy, retry, and feedback actions, sources, and follow-up prompts

Agent activity

ComponentUse it for
Agent HandoffShowing one agent handing a conversation to another, with the reason and the context that went with it
Agent ScreenShowing what an agent that drives a browser or desktop sees
CheckpointMarking a point in the conversation the work can be restored to
FlowchartLaying out a workflow as steps joined by connectors
Loading StateShowing that long work is in progress, with the time elapsed
Memory ViewerShowing what an agent remembers, grouped by kind, with search, edit, pin, and forget
PlanProposing the steps an agent will take, with Approve and Revise
QueueHolding messages sent while the agent is busy, to reorder, edit, or send now
Task RowsListing the tasks in a run with the status of each
Thinking StateShowing that the agent is working, with its steps, reasoning, searches, and sources behind a disclosure
Tool ChipsListing the tool calls in a run, what each returned, and the files the run changed
Trace WaterfallShowing an agent run's spans on one time axis, with the latency, tokens, and cost of each step

Decisions

ComponentUse it for
Approval CardAsking the person one or more questions before the agent continues
Diff TableReviewing the rows an agent proposes to add or remove
Fine-tune CardAdjusting a result with a compact panel of controls
Input RequestPausing an agent mid-run to ask for structured input, with why it asks and what it does next
Recommendation CardProposing one action with its confidence, and the alternatives
Selection ActionsOffering AI edits for selected text, then keeping or discarding the result

Results

ComponentUse it for
Artifact PanelGiving a file or document an agent made a surface beside the conversation
Code ViewShowing a file's code or a diff of it
Context CardsShowing the passages an agent retrieved, with their sources
Eval CompareComparing outputs from several models or prompt versions side by side, with a word diff and a scorecard
Filter TableFiltering a table's rows with counted chips
Insight CardsShowing a set of findings one at a time
Records TableShowing records with columns an agent fills in cell by cell

Developer

ComponentUse it for
File TreeBrowsing a project's files with the ones an agent added, changed, or deleted
Stack TraceReading an error's frames, with library frames folded away
Terminal OutputShowing a command and its output as it streams, with its exit status
Test ResultsSummarizing a test run and showing the error for each failure
Web PreviewPreviewing a page an agent built in a sandboxed frame with browser controls

Voice

ComponentUse it for
Audio PlayerPlaying a spoken reply or voice message with a waveform scrub bar
Live WaveformDrawing live audio from a microphone stream or a level
Transcript ViewerFollowing a transcript in sync with playback and seeking from a line
Voice InputRecording a spoken prompt with a level meter and timer, for your transcription service
Voice OrbShowing whether a voice agent is listening, thinking, or speaking

Styles

StylesheetUse it for
ProseStyling rendered Markdown or plain HTML with one class, in any project

What your application supplies

  • The model and the transport. Call your model from a route or server action and stream the result however your stack does it.
  • State. Map your agent's events onto props: a status for Thinking State, an array of calls for Tool Chips, a list of questions for Approval Card, the text so far for Streaming Text.
  • Words. Each component takes a labels prop for every string it writes, including the names read by screen readers. Replace the English defaults when you translate.
  • Failure handling. Tell the component when something failed. Components that show progress have an error status. Components that send a decision, such as Approval Card and Diff Table, show an error when the promise you return rejects, and keep what the person chose.

Reading the previews

The previews on these pages have no model behind them. Where a preview moves, a timer is standing in for an agent, and the text under the preview says so. Where a preview has a result, it shows the object your handler would receive.

Theming

The components use Honest UI's theme tokens, and they are built from Honest UI components: Button, Collapsible, Popover, Menu, Dialog, Table, Command, Select, and the form controls. A change to your theme or to one of those components carries through.