Skip to main content

is_slash_command

Function is_slash_command 

Source
fn is_slash_command(content: &str) -> bool
Expand description

Checks if content looks like a slash command.

Slash commands (e.g., /commit, /sigint:augment) should not be echoed in hook output to prevent Claude’s injection detection from flagging the user’s own commands as potential attacks.