The UX pattern language for AI agents
Distilled from the teams pioneering AI workflows. Agentic patterns with machine-readable specs. Each pattern ships with a UX spec the harness can read, not just markup — guardrails for what to render, when, and why.
Try it
New
| order_id | placed_at | product | channel | total | status |
|---|---|---|---|---|---|
| ORD-1000013 | Oct 30 | Standing desk | Web | $640 | Shipped |
| ORD-1000116 | Oct 30 | Noise-cancelling headset | Mobile app | $289 | Placed |
| ORD-1000201 | Oct 29 | 4K monitor | Phone | $420 | Placed |
| ORD-1000187 | Oct 24 | Webcam | Web | $129 | Shipped |
| ORD-1000142 | Oct 18 | Ergonomic chair | Mobile app | $515 | Returned |
| ORD-1000098 | Oct 11 | Ring light | Mobile app | $59 | Shipped |
| ORD-1000077 | Oct 3 | Desk lamp | Web | $74 | Shipped |
| ORD-1000054 | Sep 27 | USB microphone | Web | $149 | Cancelled |
| ORD-1000031 | Sep 19 | Monitor arm | Phone | $112 | Shipped |
| ORD-1000012 | Sep 8 | Mechanical keyboard | Mobile app | $165 | Returned |
| Pattern | Category | Updated | Status |
|---|---|---|---|
| Tool Approval | permissions | Oct 28, 2026 | Stable |
| Human in the Loop | agents | Oct 21, 2026 | Stable |
| Thinking Loader | loaders | Sep 12, 2026 | Stable |
| Analysis List | loaders | Oct 30, 2026 | Beta |
| Background Tasks | agents | Oct 14, 2026 | Beta |
| Rate Limit | errors | Oct 2, 2026 | Stable |
| Generation Error | errors | Nov 1, 2026 | Stable |
| Listening State | voice | Aug 19, 2026 | Beta |
| Live Transcript | voice | Sep 3, 2026 | Beta |
| Confidence Indicator | indicators | Oct 9, 2026 | Stable |
| Source Trust Card | text | Oct 25, 2026 | Stable |
| Multi-Agent Trace | traces | Sep 27, 2026 | Beta |
Ask the customer for a photo of the damaged or missing item and check it against ReadOrder details.
- IF
Thank the customer and TagEvidence verified
ELSE- Escalate to
- 1.
- 2.
Type / after a space to pick a tool, then a connector.
The agent at work
Show what the agent is doing, and let people step in before it matters.
Human in the Loop Question
A compact dialog that pauses an agent mid-task to collect a structured choice — radio options, a free-text fallback, skip/continue controls, and multi-step pagination.
Tool Approval
A pending tool-call prompt with allow, always-allow, and deny actions.
Streaming Text
A streamed answer with inline sources, actions, and follow-ups.
Expandable Trace
A collapsible "Thought for Xs" summary that expands into a step-by-step trace.
Tool Call Chip
An inline pill naming an in-flight tool call that resolves into a result summary.
Thinking Loader
A loader with a shimmering label and a live elapsed-time counter.
Analysis List
A full-width indeterminate progress bar over a list whose items resolve from skeletons one by one.
Background Tasks Drawer
A side drawer that tracks an agent's background work live — running tasks with elapsed time, stats, and stop controls, plus an expandable history of finished commands and output.
Terminal Stream
An auto-scrolling, collapsible panel streaming raw command output line by line.
Diff Summary Card
A collapsed summary of a batch of file edits, with undo and an overflow list.
Diff Tabs
Per-file chips that switch an inline diff viewer between a batch of changed files.
Answers you can trust
Cite, compare and steer — so a response earns belief instead of assuming it.
Tailwind v4 moved its configuration into CSS itself, dropping the old tailwind.config.js file entirely. Motion, formerly Framer Motion, now ships a smaller core bundle aimed specifically at this kind of micro-interaction.
Sources Stack
An overlapping stack of source favicons with a count, expanding into a linked source list.
Source Trust Card
A paginated single-source card with a trust badge and domain pills for jumping between sources.
Confidence Indicator
A badge or inline dot signaling how sure an AI answer or extraction is.
Response Compare
A side-by-side pair of response panels with independent regenerate and a single preferred pick.
Chat Bubble with Actions
A message bubble with feedback thumbs, edit-and-resubmit, retry/regenerate, and a version stepper.
Selection Actions
A floating toolbar on text selection for describing edits, explaining, or improving a passage.
Follow-Up List
A vertical list of suggested next questions shown after a response, each sendable with a tap.
Input
Compose, attach and interrupt without losing the thread.
Try typing @ to reference a source or / for commands.
Stop Generation Button
A send button that morphs into a stop control mid-stream and back on completion.
Attachment Chip
A composer's file/image attachment tray with drag-drop, upload progress, and inline preview.
Command Palette
A searchable ⌘K overlay for jumping to sessions or running quick actions.
Image Peek
A row of tiny image thumbnails that grows into an anchored preview card with a label, counter, and prev/next stepping.
Voice
Listening, speaking and transcribing as first-class states.
Building agents
Give people the controls to define when and how an agent runs.
New agent
Name your agent
Give it a name, instructions, and an icon.
- Require approvalHuman must approve before any write action
- Read-only by defaultCannot push code or send messages directly
- Limit to 1 action per triggerPrevents runaway loops on rapid events
Agent Triggers
A configuration panel for listing and toggling the external events that activate an agent, with a manual run control.
Flowchart
Workflow trigger and condition steps on a dotted canvas.
Connector Panel
A settings panel for connecting an app or MCP server — shows capabilities overview, groups tools by type, and lets users set per-tool permission levels.
When things go wrong
Fail honestly, keep the partial work, and offer the next step.
Something went wrong
The response couldn't be generated.
Partial Response
A cut-short assistant reply with Continue and Retry actions.
Rate Limit
A quota-exceeded state with a live countdown to when the user can send again.
Connectivity Error
A dismissible card surfacing a network connection failure with a description and retry/details actions.
Console Error Card
A structured card surfacing a browser console error with a code frame, call stack, and navigation.
Onboarding & teams
Get people to a first good prompt, then bring their team along.
Add AI Patterns to your app
Paste this prompt into an AI coding tool like Claude Code or Cursor — it picks a pattern and builds it in your design system.
Add one pattern from the ai-patterns catalogue to this app: a real screen, built in this codebase's own design system, that I can open and use. 1. Read the catalogue index at https://github.com/carlosmarch/ai-patterns/tree/main/plugins/ai-patterns/skills/ai-patterns/reference/index.md and shortlist patterns that fit a screen this app already has or needs (e.g. a composer, a pending-response loader, a tool approval prompt). 2. Detect the stack and design system: framework, styling (Tailwind, CSS modules, tokens), and component library. Note what's already installed. 3. Pick one pattern, open its spec (<category>/<slug>.md in the same folder) and follow it: Anatomy, Behavior, Content guidelines, Accessibility. 4. Build it into the existing components folder. If the app has its own design system, re-express the reference implementation with its components and tokens; only use the demoed Tailwind + Motion code verbatim if there's none. Add only the dependencies the pattern needs (e.g. motion, lucide-react). 5. Render it on a real route, run the app, and summarize the files you changed and where to see the pattern.
Setup Checklist
A stepped onboarding card with circular arc progress, dashed-circle pending states, and strikethrough for completed steps.
Collaborative Presence
An avatar stack showing who has access to a shared record and who is actively viewing it right now.
Invite Members
A two-step modal for searching or emailing people to a record and assigning each a role, with a live current-members list.
