The different kinds of artifacts CRHQ supports: HTML, code, documents, markdown, diffs, images, and React apps, and how each one renders, edits, and versions.
CRHQ supports several artifact types, each with its own rendering and interaction capabilities. Every type, regardless of how it renders: supports Refresh, automatic versioning, and (for shareable types) public links.
The most versatile type. Agents create HTML artifacts for:
HTML artifacts render in a sandboxed live preview with full CSS and JavaScript support. The toolbar offers a Preview / Code toggle so you can switch between the rendered output and the raw source. Always built to be mobile-responsive.
Shareable.
Markdown content (.md files, language: markdown, or document artifacts) renders as styled text by default. The toolbar offers a Preview / Code / Edit toggle:
# Heading source for direct inspectionDefaults to Preview when first opened.
Code files render as syntax-highlighted artifacts:
.md, .txt, .json, .yaml, .html, .css, .js, .ts, .jsx, .tsx, …): saves write to disk and bump the versionBefore committing code changes, agents can show a diff artifact:
Agents can build interactive React components that render live in the artifact panel as self-contained apps with full React 19 support. The toolbar offers a Preview / Code toggle the same way HTML artifacts do.
Shareable.
Screenshots, diagrams, and generated images display in the artifact panel with:
Shareable.
| Capability | When it applies |
|---|---|
| Refresh | Always. Re-fetches from server, or reloads from disk for file-backed types |
| Versioning | Always. Every content change creates a new immutable version |
| History modal | Once versionNum > 1. Browse, preview (with Preview/Code toggle), restore |
| Share | HTML, React, Image |
| Edit | Documents, editable file extensions, anything with editable: true |
| Listed in Session Details | Always. Even after you close the panel tab |