# Branching AI chat thread with reply versions, cited sources and code artifacts

> A standalone conversation under one minimal header: a tabbed thread switcher over pinned and recency lists, a favorite toggle and a fold for earlier turns, above replies that arrive as small documents with sections, bullets and code artifacts in markdown, yaml, json, typescript and sql, each one folding its working away behind a thought row and listing the sources its inline citations point back to, over a thread held as a tree so a regenerate or an edit adds a version on the fork rail instead of overwriting the turn.

A paid shadcn/ui block sold by the [@reui](https://reui.io/?utm_source=shadcn.exchange) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/reui/ai-chat-9).

- Page, with a preview: https://shadcn.exchange/r/reui/ai-chat-9
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/reui/ai-chat-9-light-91510c8f59ac3f39.png
- Listed: 2026-10-13

## Buy and install

@reui sells this block, and its code is not on shadcn.exchange. Buy it from the registry, which installs it for those who have: https://shadcn.exchange/out/reui/ai-chat-9

## Dependencies

- npm packages: `cn`, `sonner`
- Registry items: `@reui/badge`, `@reui/code-block`, `@reui/icon-stack`, `attachment`, `bubble`, `button`, `collapsible`, `dropdown-menu`, `empty`, `field`, `input-group`, `kbd`, `marker`, `message`, `message-scroller`, `popover`, `spinner`, `tabs`, `tooltip`
