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.191 Home All releases olderv2.1.190 v2.1.193newer
Claude Code v2.1.191

Prompt Draft Auto-Save [In Development]

What

Infrastructure for saving the current input box contents as a draft (.prompt-draft) has been added, which would allow the prompt to persist if the session exits unexpectedly.

Status

Fully implemented — write and read paths are both present. Not yet confirmed as user-visible in all configurations.

Details
  • Draft is written to CLAUDE_JOB_DIR/.prompt-draft, capped at 256 KiB (content is sliced at 262144 bytes before write)
  • On session restore, the draft file is read back (up to 1 MiB), then immediately deleted — one-shot recovery, not a persistent store
  • If the session is not in auto mode, the draft is restored to the composer input box directly (V$t)
  • If the session has no prior prompt set, the draft is restored to in-memory context (Myt)
  • The earlier changelog note that "no write/read paths appear to be wired" is outdated — both paths exist in this version
Evidence

Draft write/read functions (search for ".prompt-draft" or the 262144 byte cap constant)

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

See this entry in the whole of v2.1.191 →