{"version":"2.1.331","anchor":"slash-commands-in-headless-mode-alias-and-secret-handling-r","canonical_anchor":"slash-commands-in-headless-mode-alias-and-secret-handling-r","heading":"Unavailable slash commands in non-interactive mode can hide secret arguments","tier":"notice","area":"Slash Commands","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331\/e\/slash-commands-in-headless-mode-alias-and-secret-handling-r","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331","markdown":"### Unavailable slash commands in non-interactive mode can hide secret arguments\n\nIn non-interactive runs, an unavailable slash command can now suggest an alternative and shows secret arguments as ***\n\n**Unclear.** Which commands treat their arguments as secret is not stated.\n\n**What**\n\nA slash command is a command typed with a leading `\/`. Non-interactive mode runs Claude Code from a script, with no one typing at a prompt. When a slash command is not available there, Claude Code now does two things differently:\n\n- It looks up an alternative command to suggest.\n\n- It checks whether that command treats its arguments as secret. If it does, the arguments are shown as `***` instead of being repeated back.\n\nA command Claude Code does not recognise at all is still passed on to the model, as before.\n\n**Why**\n\nThe message you get for some unavailable commands is different, and secret values are not printed back into the output.\n\n- Area: Slash Commands\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}