pub fn is_hook_invoked(cmd: &Command) -> bool
Commands that agents and git run from installed hooks. Their output is parsed (or shown inside the agent), so nothing extra may be printed there.