{"version":"2.1.333","anchor":"piped-stdin-prompts-kept-separately-when-agent-initialprompt","canonical_anchor":"piped-launch-prompt-handling-and-slash-as-text-notice","heading":"Prompts piped in at launch are handled separately, and piped slash commands are sent as text","tier":"notice","area":"Prompt Input","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/piped-stdin-prompts-kept-separately-when-agent-initialprompt","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Prompts piped in at launch are handled separately, and piped slash commands are sent as text\n\nText piped into Claude Code at launch is now kept as its own prompt, and a piped slash command is sent as a message rather than run\n\n**What**\n\nYou can start Claude Code with a prompt piped in from another program, for example `echo \"...\" | claude`. Two things changed for that case:\n\n- 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\".\n\n- The piped prompt is now kept as its own value, `pipedLaunchPrompt`, and passed through when the session is prepared. The agent's `initialPrompt` template and the settings-fix prompt are now applied to it as well as to the main prompt. Before, only the single `inputPrompt` was rewritten.\n\n**Why**\n\nScripts 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.\n\n- Area: Prompt Input\n- Names: `initialPrompt`\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: yes"}