Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.242 Home All releases olderv2.1.241 v2.1.243newer
Claude Code v2.1.242

Artifact write_db accepts a batch of writes under one approval

Use it now
Useful3 Signal2
Artifacts not in their notes

Artifact database writes can be batched so several documents commit under one approval.

write_db
What

The artifact database tool takes db_op: "batch" with a writes array, so several set, update and delete operations commit together under a single approval instead of prompting once per call. Each entry can supply its document inline or point at a local JSON file to read it from. The tool description now tells the model to prefer a batch over separate calls when it has more than a couple of documents to write.

Details
  • each entry in writes names an op of set, update or delete, plus collection, doc_id, and exactly one of data (the document inline) or file_path (a local file holding a JSON object to use as the document)
  • a batch is capped at a fixed number of entries
  • where the server supports batch writes the whole batch commits all-or-nothing; where it does not, the entries are applied one at a time in order, the result states which of the two modes ran, and a failure part-way through names the entries already written
  • two entries targeting the same document in one batch are refused with the error db_batch_duplicate
  • reading a file_path goes through the normal Read permission rules, and the approval is re-checked before the batch runs so entries cannot be added, removed or switched between inline and file after you approved it
  • collection paths were tightened from 1-31 to 1-15 slash-separated segments, each segment allowing letters, digits and _ - . ~ : @ +, so subcollections nest like boards/b1/columns
  • available wherever the artifact tool is offered, with no separate flag or setting to turn it on
Evidence

applied one at a time in order (this server has no batch write yet); a failure part-way leaves earlier entries written, such writes at once, Database collection path: 1-15 "/"-separated segments (letters, digits, _ - . ~ : @ + per segment), so subcollections nest like "boards/b1/columns". Required for read_db and write_db.

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

Related

Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.

See this entry in the whole of v2.1.242 →