Follow Discord
Sweep 22 Sep 2026 · 17:19Z Build v2.1.280 501 read Stable v2.1.267 Latest v2.1.280 Next v2.1.280 Feeds RSS JSON llms.txt Unofficial
Claude Code v2.1.275 ·

Slash commands and plugins can now append or insert into the input box, not just replace it

Plugins and hooks can fill the prompt input box in replace, append, or insert mode, with new APIs to read and stamp these actions

TierUse it nowhow much it should matter to you
Useful4my rating, 1 to 5
Signal3worth watching, 1 to 5
AreaSettingswhat it touches
KindNew Featuresin v2.1.275,
Group of 4 Use it now Notable

Plugins and hooks can fill the prompt input box in replace, append, or insert mode, with new APIs to read and stamp these actions

What

The internal system plugins and hooks use to put text into your input box (the "draft") has been extended.

  • The fillDraft API, used by plugins and hooks to populate the input box, now takes a mode: replace (the old default, replaces everything), append (adds text to the end of what's already there), or insert (inserts text at your cursor position).
  • A companion readDraft API (also exposed as the hook method $.prompt.read) lets a plugin read the current input box text and cursor position before deciding what to do.
  • Slash-command-triggered plugin actions of type prompt.fill (defaulting to replace mode) and prompt.suggest now get the same default plugin-origin metadata that command.run actions already had.
  • A new settings layer called memory was added alongside the existing managed/user/project/local layers, and the replace/append/insert modes are validated against an explicit list, with an error shown for invalid modes.

Why

This gives plugins finer control over how they interact with whatever you're already typing, instead of always overwriting it. A plugin can now add a suggestion after your text or insert something right where your cursor is, and it can check what's already in the box first.

Read from
Names in the bundlereplaceappendinsert
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 insert, on optimizing-for-cost-and-intelligence. Anthropic measured the triage job from [Trim input and context tokens](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#trim-input-and-context-tokens) with pauses inserted before some turns to si… about-claude/models/optimizing-for-cost-and-intelligence see the edit
Added since A small documentation edit on compliance-sessions touched a line naming insert after this was published. * `synthetic_marker` marks records generated by the endpoint itself, such as the marker that stands in for the system prompt. When the client rewrites or compacts its conversation history mid-session (for example, after context compaction)… manage-claude/compliance-sessions see the edit
Confirmed since Anthropic's documentation has since written up replace, on How Claude remembers your project. * **A `CLAUDE.md` that tells Claude in words to read `AGENTS.md`**: Claude sees `AGENTS.md` only if it decides to open the file. Delete the `CLAUDE.md` so Claude reads `AGENTS.md` directly, or replace the sentence with an `@AGENTS.md` impo… memory see the edit
Confirmed since Anthropic's documentation has since written up append, on How Claude remembers your project. You can also run [`/import`](/docs/en/commands) to bring a supported coding agent's configuration into Claude Code, which appends a one-time copy of instruction files such as `AGENTS.md` to the matching `CLAUDE.md` and carries over MCP ser… memory see the edit
Added since A small documentation edit on Run Claude Code behind a corporate launcher touched a line naming replace after this was published. * A session you start yourself in a terminal, which runs however you invoked it. To cover these sessions, put a script named `claude` in a directory earlier on `PATH` that runs your launcher with the real binary; don't replace the managed … corporate-launcher see the edit
Added since A small documentation edit on Explore the context window touched a line naming append after this was published. * **Before you type anything**: CLAUDE.md, auto memory, MCP tool names, and skill descriptions all load into context. [AGENTS.md files](/docs/en/memory#agents-md) can load too, on their own or alongside CLAUDE.md. Your own setup may add mo… context-window 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 doubtHow the new `memory` layer and the replace/append/insert edit modes are actually exposed or used isn't stated.
Anthropic's documentation agreesA small documentation edit on Explore the context window touched a line naming append after this was published.

See this entry in the whole of v2.1.275 →

Feedback