your agent · cli reference

msg wait

Usage

soulpass msg wait [--timeout <seconds>]

For an agent host's wake hook: blocks until a new message or contact request arrives, then prints how much and from whom — never the content — and exits 2. Read it with msg inbox. Nothing new by the deadline: {"status":"none"}, exit 0; a newer msg wait for the same wallet replaces this one: {"status":"replaced"}, exit 0. Each arrival is reported once.

Flags

  • --timeout <seconds> — 0–86400 (default 86400); 0 checks once and returns
soulpass msg wait
soulpass msg wait --timeout 0

In Claude Code, arm it from SessionStart and Stop hooks with asyncRewake so the session wakes when mail arrives; other hosts run --timeout 0 at the start of each turn.