Claude Blog 中文翻译

create: 2026-06-18
update: 2026-08-10
author: thinkycx
title: 【译】Claude Code 现已支持 Artifacts
description: Claude Code 新增 Artifacts 功能,可以将会话中的工作成果转化为实时可交互的网页——如 PR 走查、系统架构图、仪表盘和发布清单——并基于完整的会话上下文自动构建和更新。团队成员可通过同一链接实时查看最新版本,适用于调试、评审、运维等多种场景。
category: translation
tags: claude, blog, translation, artifacts, claude-code

Claude Code 现已支持 Artifacts

原文发布于 2026 年 6 月 18 日


Claude Code 现在可以将工作成果生成为 Artifact——实时、可交互、可分享的网页。 从今天起,Claude Code 可以将工作进度捕获为 Artifact,将 PR 走查、系统说明、仪表盘、发布清单等内容转化为会随会话推进而自动更新的可视化页面。

一个 Claude Code 会话可能涵盖排查事故、重构服务或分析数月数据等场景。Artifacts 将这些工作翻译成任何人都可以打开并探索的网页——比如一个可以过滤和排序的仪表盘,或一份随着工作进展自动填充的发布清单。Artifacts 让协作更顺畅,团队可以把更多时间花在构建上,而不是同步状态。


基于会话完整上下文构建

Artifact 利用会话的全部上下文——代码库、连接器和对话本身——来构建页面。 一个事故排查页面可以同时整合:来自代码的失败测试和相关函数、来自监控工具的错误率飙升数据、以及来自会话的根因分析推理。你不需要手动接入数据源或搭建基础设施——只需告诉 Claude Code 你想要什么页面,它就会从已有信息中构建出来。


实时更新的页面

每次发布都是同一链接的新版本,团队成员打开即可看到最新内容。 当 Claude Code 更新一个 Artifact 时,已打开的页面会原地刷新,队友能立即看到更新。每次发布都有版本历史,可以随时恢复;一个画廊视图让你浏览和管理所有创建过的 Artifacts。

一个典型的调试场景如下:工程师在站会前启动事故调查。Claude Code 推进调查并发布一个 Artifact:时间线、可疑提交和错误率图表。她从页面头部分享链接给团队。站会开始时,Claude 已经随着调查进展重新发布了两次,融入了最新信息。有了 Artifacts,团队成员和利益相关方不需要"给我们讲讲 Agent 找到了什么"——因为大家看的是同一个视图、同一份上下文。


对组织内部私有

Artifact 默认仅对作者可见,分享后也仅限组织内已认证成员查看,不可公开。 准备好之后,可以直接从页面将其分享给队友和组织。管理员可以通过组织级开关和基于角色的权限控制管理访问,设置保留策略,并通过合规 API 获得组织范围的可见性。


快速上手

向会话请求一个 Artifact,或者直接要求一些可视化的东西。 以下是按角色分类的使用创意:

角色 用法示例 Prompt 示例
法务 / 开源 依赖库许可证审计,标记 copyleft "Build an artifact listing every third-party dependency and its license, flagging anything copyleft."
隐私 个人数据流向图 "Trace where we touch personal data across the codebase into an artifact for the privacy review."
安全 安全发现报告,关联代码行 "Build an artifact of the auth findings from this review, each linked to the code."
FinOps 云资源和成本驱动因素 "Map our cloud resources from the Terraform into an artifact, grouped by service, with the big cost drivers."
软件工程师 PR 走查 "Make an artifact walking through this PR — the diff, the reasoning, and what I tested."
前端/设计 多种 UX 方案 "Give me an artifact with 5 UX variations of this signup form, built from our component library."
Staff 工程师/架构师 服务架构图 "Map how the payments service fits together into an artifact, from the code."
SRE / On-call 事故页面 "Turn this incident into an artifact — timeline, suspect commits, error spike from our monitoring — and republish as I work through it."
工程经理 周报 "Build an artifact of what merged on my team this week from the PRs, grouped by project."

Claude Code 构建页面并返回链接。在浏览器或桌面应用中打开,从页面头部分享——更新会自动发布到同一 URL。


可用性

Artifacts 目前以 Beta 形式向 Claude Team 和 Enterprise 组织开放,可从 Claude Code CLI 和桌面应用使用,页面可在任何浏览器中查看。

开始使用 Claude Code