notify-me
Send a message to the user via Google Chat and optionally wait for their reply. All stdout is JSON.
Modes
New message + wait for reply
notify-me "Your question here"
Reply in existing thread (fire-and-forget)
notify-me --reply THREAD_NAME "Follow-up message"
Reply + wait for response
notify-me --reply-wait THREAD_NAME "Question in existing thread"
Wait for next reply (no send)
notify-me --wait THREAD_NAME LAST_MESSAGE_ID
Output
All modes that wait return:
{"thread": "spaces/.../threads/...", "reply": "user's text", "message_id": "spaces/.../messages/..."}
Fire-and-forget --reply returns:
{"thread": "spaces/.../threads/...", "message_id": "spaces/.../messages/..."}
Typical agent flow
# Start conversation
RESULT=$(notify-me "Build done. Deploy to staging? (yes/no)")
THREAD=$(echo "$RESULT" | jq -r '.thread')
REPLY=$(echo "$RESULT" | jq -r '.reply')
# Continue in same thread
RESULT=$(notify-me --reply-wait "$THREAD" "Deployed. Run tests too?")
Requirements
gwsCLI authenticated withchat.messagesandchat.spacesscopesjqandcurlon PATH