Most recently, it'd had to be how I added event generation upon completion of commands over ssh at
https://nudgenotifier.com/ without installing Nudge on the server side.
I look for hostname@ in the streaming stdout of my ssh process and if I see one, in addition to other heuristics, I notify that a command completed over ssh.