Chat & AI
Prompt input
Accent
Scheme
Backdrop motion
Chat & AI

Prompt input

Where the person writes: the input with its tools, menus and submit button, then what sits around it: a model selector, suggestions, the context meter and a questionnaire.

Prompt Input

The root is a form. It draws the attachments and the text field; its children are the footer.
The whole inputEnter sends, Shift+Enter breaks the line, and a file let go over it is added. Send something: the submit button goes through submitted and streaming (press the square to stop), then back to ready.
sketch.png
brief.pdf
Open files
src/app.mote
README.md
statusthe page's; sending sets it
filesmaxFiles=3: a fourth is refused in error
disabled
errorwritten by the input, shown under the field
What the page holds
sent 0: nothing yet status: ready · mode: Agent · web: false · files: 2 · error: none
PromptInputSubmitIts icon follows status. Ready and error are the form's submit button; while a reply is on its way a press calls press instead, to stop.
ready
submitted
streaming
error
disabled
Inside a form the first and fourth send it. Here they stand alone, so only the two in the middle answer a press.
press called 0 times
bare: the parts by handWith bare=true the root is only the form: put PromptInputHeader, PromptInputBody and PromptInputTextarea under it yourself. The field grows with its text up to maxHeight, then scrolls.
Replying to Ada: “Shall we ship it today?”
0 characters
maxHeight120px
header
Sent
nothing yet
Buttons, tools, dictationPromptInputButton is ghost as it comes, or outline or default; pressed makes it a toggle. PromptInputTools is the row they sit in. The speech button writes what it hears into a value.
The page's state
think: false · web: true · pressed: 0
Dictated
Press the microphone and speak (the browser asks leave; not every browser can).
PromptInputSelectOne of a few. With options it draws itself and writes value back; or compose the trigger, the value, the content and the items.
From options
By handitems with icons; the value shows its own words
effort: Balanced · scope: project
Action menu, adding attachmentsA plus that opens a menu. PromptInputActionAddAttachments asks for a file (fs.pick) and adds it to files, within the limits it is given.
No files yet. Open the menu and add up to two.
last: nothing yet · files: 0 of 2 · error: none
Hover card with tabsA card that shows on hover or focus, for what the prompt can see. Tick files below: the card lists them.
Hover or Tab to it
Open files
src/app.mote
README.md
Rules
Answer in plain words
Quote the docs
src/app.mote, README.md
PromptInputCommandA list to search: commands, files to mention. The page narrows it by the search's value; here it also answers up, down and Enter through key.
Thread
Tools
Ran
nothing yet
Found
5 of 5
Type to narrow, move with the arrows, Enter runs the one that is lit.

Model Selector

A modal window with a search. Type to narrow (name, provider, id), up and down, Home and End, Enter to choose, Escape to leave.
From a list of modelsGiven models it draws the button, the window, the search and the list. value and open are written back; change is handed the id.
A model chosen
Mote
Others
None yetplaceholder=
Mote
Others
value: otter-4 · open: false · change handed: nothing yet second: (none)
Composed by handThe same window from its parts: the page holds the search and narrows the list. ModelSelectorDialog is ModelSelectorContent under its other name.
ModelSelectorContent
Mote
Others
ModelSelectorDialoga trigger with two logos
Compare the first with
model: mote-small · compared with: otter-4 · open: false

Suggestion

Things to ask, in a row that scrolls sideways, faded at its edges.
SuggestionsA press hands the page the suggestion. label shows other words; a child goes before them.
Handed to the page (0)
nothing yet

Context

How full the model's context window is. Each part is given the numbers it shows; what things cost is the page's to say.
The meter and its cardContextTrigger is the percentage and a ring; hovering it (or Tab) shows ContextContent. Beside it the card's parts are laid open, with a ContextUsageLine of the page's own.
The triggerhover it
37.5%
48K/128K
Input
28.8K• $0.09
Output
12K• $0.18
Reasoning
4.8K
Tools
2.4K
Total cost$0.27
Used tokens48000
The window
37.5%
48K/128K
Input
28.8K• $0.09
Output
12K• $0.18
Reasoning
4.8K
Tools
2.4K
Total cost$0.27

Questionnaire

Questions, one at a time, with their progress. Single choice is the browser's radios, multiple its checkboxes, input a free answer beside or instead of them.
From a list of itemsNext refuses an unanswered item; Skip shows on items that are not required; the last has Submit. A shortcut key picks an answer, left and right move between items.
shortcuts
Question 1 of 3
How big is the team?

This one must be answered.

answers (written as they are given)
{}
submit was handed
not submitted yet
Composed by handEvery part, with the stepping the page's own: three items shown by active, an error, and the four buttons by visible.
Question 1 of 3
How big is the team?

Required: there is no Skip on this one.

The page's state
item 1 of 3 · size: (none) · tools: (none) · invalid: false
esc
Pages
StartStart
Buttons & badgesComponents
Cards & disclosureComponents
Dialogs & drawersComponents
Menus & commandsComponents
Dates & tablesComponents
ChartsComponents
Chart galleryComponents
FieldsComponents
ChoicesComponents
DisplayComponents
NavigationComponents
Popovers & sheetsComponents
MessagesChat & AI
Prompt inputChat & AI
Reasoning & toolsChat & AI
Developer partsChat & AI
ConversationChat & AI
Code artifactsChat & AI
VoiceChat & AI
Code blocksChat & AI
MarkdownChat & AI
EditorElements
TerminalElements
FlowElements
3D boxesElements
PaintElements
SurfaceElements
MediaElements
IconsElements
PrimitivesElements
SQLBatteries
StorageBatteries
Net & resourcesBatteries
Crypto & bytesBatteries
ZipBatteries
TablesBatteries
PDFBatteries
TimeBatteries
ImagesBatteries
ScanBatteries
Video & audioBatteries
SearchBatteries
SyntaxBatteries
PatternsBatteries
NotifyBatteries
ShareBatteries
State & logicLanguage
WorkersLanguage
Events & elementsLanguage
StylingLanguage
RoutesLanguage
ShortcutsLanguage
Long listsLanguage
Failures & tryLanguage
Back endBack end
Models & writesBack end
Rules & failuresBack end
Jobs & schedulesBack end
Running itBack end
ExtensionsBack end
AIBack end
AnalyticsBack end
AboutAbout
↑↓move
↵open
676 places · ranked by BM25