{"version":"2.1.328","anchor":"project-write-gains-an-edits-mode","canonical_anchor":"project-write-supports-searchreplace-edits","heading":"Projects documents can be edited in place with SEARCH\/REPLACE blocks","tier":"notice","area":"Projects","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328\/e\/project-write-gains-an-edits-mode","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328","markdown":"### Projects documents can be edited in place with SEARCH\/REPLACE blocks\n\nproject_write gains an edits option that changes only the passages that differ, instead of resending a whole Project document\n\n**Unclear.** What decides whether edits are available in a session is not known.\n\n**What**\n\n`project_write` is the tool Claude uses to write documents in a Project. It now accepts exactly one of `content`, `local_path` or a new `edits` argument. `edits` holds SEARCH\/REPLACE blocks: each names a passage to find and what to put in its place, so only the changed parts are sent.\n\n- Limits: edits are refused unless the document's whole current text is in the conversation. `edits` cannot be used from a script or combined with `content` or `local_path`. Content made only of SEARCH\/REPLACE blocks is refused when it would replace an existing document.\n\n- Response: when `edits` is used, the response always carries a version.\n\n- Fallback: when `edits` is unavailable, the tool steers Claude back to passing whole content.\n\n- Guidance: when a flag is on, Claude's instructions tell it to call `project_write` with `edits` that hold only what changes. Otherwise they still say to read the document and write the full updated content back.\n\n- Refused writes: after a refused write, the document text is re-read and shown through a new helper, now gated by `tengu_candid_lantern` (falls back to false) or by `tengu_velvety_leaf` (not resolved). Before, this only ran under `tengu_candid_lantern`.\n\n- The description text for `tengu_lovely_rain` was updated alongside.\n\nThese gates are switches Anthropic can set remotely. The flag server returned off for `tengu_candid_lantern`, `tengu_velvety_leaf`, `tengu_lovely_rain` and `tengu_lucky_nebula` for this site's account and for an anonymous account; no reading has been taken under this release. Nothing has been read about `tengu_toasty_owl`, which is unread, not off.\n\n**Why**\n\nLarge Project documents can be changed without resending the whole text, and the safety checks stop Claude from editing a document it has not fully seen.\n\n- Flag `tengu_lovely_rain`: Off in both readings (read for one account on one subscription tier against v2.1.328; this account: off, anonymous baseline: off, compiled default: off) These values were read against a different version of Claude Code, so treat them as the nearest reading available instead of one taken on this release.\n- Area: Projects\n- Names: `tengu_lovely_rain`\n- Tier: You'll notice\n- Useful: 4\/5\n- Signal: 4\/5\n- Scope: individual\n- Heads-up: no\n- Present in the build but not switched on"}