Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.299 ·

Artifact publish can edit the local file in the same call

The artifact publish tool takes old_str/new_str edits, applies them to the local file, publishes it, and reports edits applied or not written

Group of 8 You'll notice Improvements
JSON All of v2.1.299
You'll noticeTier: how much it should matter to you
4Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
ArtifactsArea: what it touches
ImprovementsKind: in v2.1.299,
What probably matters to youSection of the release

Unclear What the publish_edits option does is not stated.

What

An artifact is a page or file Claude can publish and share. The artifact publish tool can now change the local file and publish it in one call. It takes an edits parameter, a list of old_str/new_str pairs, where each pair replaces one piece of text with another.

  • edits are applied in order to the file at file_path. Either all of them apply or none do, and the file is saved to disk before it is published.
  • If an edit fails, no edits are applied and nothing is published. The reason is reported, for example "edits[N] old_str does not occur in the file".
  • edits works only on text files, and non-text files are refused.
  • edits is rejected on a publish that also uses action, type_url, files, root, pr_review, a live doc or a chain, because edits changes only the file at file_path. The tool tells Claude it is also making N edits to the local file on disk.
  • A publish with edits gets a write-permission check and can fail with write_denied.
  • Results gain two optional fields. editsApplied is a positive count. editsNotWritten gives the reason edits did not reach disk: write_failed, not_writable, changed_during_publish or hard_linked.
  • When the live page has changed, the warning Claude gets is reworded for edits. It tells Claude to merge the live page into its file and then resend the same publish with edits.
  • The Artifact input schema now includes publish_edits next to assets and copy_from.

The feature is switched on by the environment variable CLAUDE_CODE_ARTIFACT_PUBLISH_EDITS, or failing that by a remote config value publishEdits set to true. The fallback is false. A new flag, tengu_toasty_hammock, was added in the same change. Nothing has been read about that flag.

Two other artifact changes came with it. When Claude reads an artifact type's files, it is shown a limited number of them with an "about ... characters" size, and the rest are listed under "Not read:". Responses can also carry an optional owned field.

Why

Claude can make a small change to a page without first reading the file, then editing it, then publishing it as separate steps. When an edit does not make it to disk, the result now says why.

Read from
Names in the bundlepublish_editsassetscopy_from
What the documentation says
Since it was published

The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.

Confirmed since Anthropic's documentation has since written up assets, on pdf-support. curl -sL "https://assets.anthropic.com/m/1cd9d098ac3e6467/original/Claude-3-Model-Card-October-Addendum.pdf" | build-with-claude/pdf-support see the edit
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtWhat the `publish_edits` option does is not stated.
Anthropic's documentation agreesAnthropic's documentation has since written up assets, on pdf-support.

See this entry in the whole of v2.1.299 →

Feedback