What
You can start Claude Code with a prompt piped in from another program, for example echo "..." | claude. Two things changed for that case:
- A piped slash command, meaning text that starts with
/, is now sent to Claude as an ordinary message instead of being run as a command. A notice appears: "Piped text sent as a message, not run as a command". - The piped prompt is now kept as its own value,
pipedLaunchPrompt, and passed through when the session is prepared. The agent'sinitialPrompttemplate and the settings-fix prompt are now applied to it as well as to the main prompt. Before, only the singleinputPromptwas rewritten.
Why
Scripts that pipe text beginning with / into claude no longer trigger a command, so check any script that relied on that. Agent start-up prompts and settings fixes now also apply to the piped text.