What
Claude Code has new code for prompts that are too long to send to the model. It sits behind two experiment switches, settings Anthropic's server can turn on remotely.
- Prompt as a file: when
tengu_paper_heronis true, Claude Code writes the largest oversized prompt you typed or pasted to a file and adds aprompt_as_fileattachment giving the prompt's id, the file path and its length in characters. This only happens when a Read tool (the tool Claude uses to open files) is available, the session is allowed to do it, and the prompt is under a maximum size. Otherwise it records why it skipped:no_read_tool,not_allowedorover_max_bytes. - Head and tail: when
tengu_lucky_craneis true, a message too long to send is cut down to its first and last characters, and a note tells the model what is missing. If the prompt was saved as a file, the note gives its path. - New names:
refused_prompt_noteandprompt_as_filewere added to a list of event or notice types. A list of environment variables that includesCLAUDE_CODE_USER_DELEGATED_SESSIONgained one more entry whose name could not be worked out.
When these switches were read, the flag server returned off for both tengu_paper_heron and tengu_lucky_crane, for this site's account and for an anonymous account. Neither has been read under this release yet.
Why
If turned on, a very long prompt would no longer simply fail to send: the model would get either a file to read or a shortened copy with a note explaining what was cut.
tengu_lucky_crane Not enough to sayNothing here resolved what this flag was doing on this version, so nothing here should be read as on or off.
This account: no value returned · anonymous baseline: off · compiled default in v2.1.326: 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.
Read once, for one account on one subscription tier, against v2.1.326. It isn't a statement about your account. What a flag value here can and cannot tell you
A reading is one sample. Claude Code evaluates its flags remotely, so no client sees the targeting rule behind a value and this says nothing about your account.
A reading is one sample. Claude Code evaluates its flags remotely, so no client sees the targeting rule behind a value and this says nothing about your account.
A reading is one sample. Claude Code evaluates its flags remotely, so no client sees the targeting rule behind a value and this says nothing about your account.
A reading is one sample. Claude Code evaluates its flags remotely, so no client sees the targeting rule behind a value and this says nothing about your account.
A reading is one sample. Claude Code evaluates its flags remotely, so no client sees the targeting rule behind a value and this says nothing about your account.
A reading is one sample. Claude Code evaluates its flags remotely, so no client sees the targeting rule behind a value and this says nothing about your account.
A reading is one sample. Claude Code evaluates its flags remotely, so no client sees the targeting rule behind a value and this says nothing about your account.
A reading is one sample. Claude Code evaluates its flags remotely, so no client sees the targeting rule behind a value and this says nothing about your account.
New in this build: tengu_lucky_crane