← Claude Docs

Share session output as artifacts - Claude Code Docs

Claude Docs · June 18, 2026
Artifacts are interactive web pages that Claude Code publishes to private URLs on claude.ai, making it easier to view and share complex output like annotated pull requests, dashboards, and design comparisons instead of terminal text. Users can create them on request or allow Claude to create them automatically, update them as work progresses, and share them with organization members, though they are limited to self-contained HTML pages without backend functionality.

Detailed Analysis

Claude Code's artifact feature represents a significant expansion of how AI-assisted development sessions can communicate and share output beyond the terminal. An artifact, as defined in the documentation, is a live, interactive web page published from a Claude Code session to a private URL on claude.ai, capable of updating in place as work continues. The feature targets a fundamental friction point in developer workflows: terminal text is poorly suited for communicating complex structured outputs like annotated diffs, dashboards, investigation timelines, or side-by-side design comparisons. Claude can either autonomously decide to publish an artifact when output warrants a visual format, or users can prompt it directly with plain-language descriptions. The system writes the page to an HTML or Markdown file in the project, then publishes it — requesting user permission on first publish, but silently republishing on subsequent updates to the same artifact.

The sharing model reveals deliberate architectural choices around organizational trust boundaries. Artifacts are scoped exclusively within an organization: viewers must be signed-in members of the same organization that published the page, with no mechanism for external sharing. This positions artifacts as an internal collaboration tool rather than a public-facing publishing surface. The versioning system — where each republish creates a new version and the author controls which version viewers see — preserves authorial authority while enabling iterative updates. Notably, artifacts are viewable but not co-editable, reinforcing the design philosophy that the session author remains the sole writer, and shared viewers are passive consumers of published state. Cross-session updates are also possible by supplying the artifact URL to a new Claude session, which prevents orphaned or duplicated artifacts as work evolves across multiple sessions.

The technical constraints of the artifact system illuminate what Anthropic is explicitly not building. Artifacts are defined as single self-contained HTML pages with no backend, no API call capability at view time, no form persistence, and no multi-route serving. This constraint is not a gap but a deliberate boundary: the documentation explicitly redirects use cases requiring a hosted backend to the user's own infrastructure. The scoping of artifacts to "HTML, CSS, and inline JavaScript" keeps the surface area predictable and auditable, avoiding the security and complexity concerns of a full hosted application runtime. This reflects a pattern visible across AI tooling in 2025–2026, where capabilities are deliberately bounded to reduce attack surface and maintain clear lines of responsibility between AI-generated output and production systems.

The artifact feature connects to a broader trend in agentic AI development tooling: the shift from text-only output to richly formatted, interactive deliverables that match the communicative norms of professional software teams. As AI coding assistants evolve from autocomplete tools into long-running agents executing multi-step investigations and build processes, the output of those sessions increasingly resembles project deliverables rather than command-line responses. Anthropic's decision to integrate artifact publishing directly into Claude Code — with gallery management at claude.ai/code/artifacts, browser auto-open behavior, and Ctrl+] terminal shortcuts — suggests a deliberate effort to make artifact creation a first-class, low-friction workflow rather than an afterthought. The feature essentially creates a lightweight asynchronous communication layer between the engineer running a Claude Code session and the teammates who need to review or act on its findings, without requiring those teammates to have their own Claude Code sessions or reproduce the work themselves.

Read original article →