Agent panel
UnderstoryUsage
The app shell mounts it. Its pieces live in @/components/agent.
When to use
Use it for
- The whole agent surface:
AskPillto start,DockedAgentPanelto work beside the page,AgentChatfor the conversation,UserQuestionwhen the agent needs a choice. - The agent asks with
UserQuestionand concrete options, not in prose. - Replies cite the files they touched, and edits show a diff before they apply.
Avoid
- A chat surface of its own for one feature. Extend the panel.
- Spinners or sparkles while the agent works: the mark and a present-tense line say it.
Accessibility
Checks
- ⌘J opens it, and everything in it works from the keyboard,
UserQuestionoptions included.
API
Read from each component's stories, the same source as COMPONENTS.md, and kept in step by check:design-system.
AskPill
Its stories don't declare
argTypes, so no props are listed. The variants show its states.Also exportsAgentAskPillAskPillComposerAskPillFade
VariantsCollapsedExpanded
DockedAgentPanel
Its stories don't declare
argTypes, so no props are listed. The variants show its states.Also exportsDASHBOARD_AGENT_CARD_CLASS
VariantsDefaultEditorPanelSurface
AgentChat
Its stories don't declare
argTypes, so no props are listed. The variants show its states.Also exportsAGENT_DISCLAIMERAssistantMessageCOMPOSER_PLACEHOLDERSLOADING_PLACEHOLDERSPillInput
VariantsDefaultAdminWithoutSlackSharedWithATeammateLongTranscriptWithToolStepsWithAFailedToolStep
UserQuestion
The questionnaire the agent surfaces instead of asking in prose, rendered in the transcript under the reply that asked. Every option is a row that is clickable end to end. A lone single-select question submits on pick, with no confirm step; anything richer collects first and sends on Send answers. Skip defers to the judgment of the agent (an MCP-style decline). The selections become the next user message (see formatUserQuestionResponse), and the card is shown only while the agent is still waiting on it — including after a reload, so a pending question is never stranded.
Its stories don't declareargTypes, so no props are listed. The variants show its states.VariantsDefaultMultipleQuestionsFreeTextBesideAChoicePanelDisabled
Keep going
- AgentMarkThe Fern Agent's mark, at rest or thinking.Fiddle
- CommandPalette⌘K navigation, search and agent entry.Understory
- Side panelsAnimatedSidepanelContainer and PanelResizeSeparator for detail views.Understory
Design language
The macro guidelines that define design at Fern.
Agent mark
The Fern Agent's mark, calm at rest and moving while it works.