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

Claude Code v2.1.309 ·

Filling the prompt box can now set the cursor position

prompt.fill and the plugin text-injection hook now take an optional cursor value that sets where the caret lands after text is placed

Group of 2 Use it now Improvements
JSON All of v2.1.309
Use it nowTier: how much it should matter to you
3Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
Prompt InputArea: what it touches
ImprovementsKind: in v2.1.309,
What probably matters to youSection of the release

What

$.prompt.fill lets a plugin (an add-on) or a script place text into the box where you type your prompt. Until now it accepted mode and decorations. It now also takes an optional cursor value, which sets where the text cursor (caret) lands:

  • cursor must be a whole number of zero or more. It counts positions in the text as UTF-16 units, which for most text means characters.
  • A value that is not a whole number is rejected with "cursor must be an integer", through the same error path as the other fields.
  • If no cursor is given, the caret ends after the placed text, as before.
  • The plugin hook that injects text into the prompt now passes cursor along with mode and decorations, and the returned result includes cursor when one was given.

Why

Plugins and scripts that pre-fill the prompt can now leave the cursor in a useful place, such as inside a template where you are meant to type, instead of always at the end.

Read from
Names in the bundleprompt.fill
What the documentation says

See this entry in the whole of v2.1.309 →

Feedback