External Triggers & Attention Alerts

Triggered by Anything, Spoken in Order

Whether an Antigravity turn finishes, a Signal message arrives, a Pixel voice note syncs, or a nightly build script completes, every caller feeds into one warm local daemon with a serialized, priority-aware speaker queue.

Roshi listening hands-free over tea in his dark-wood acoustic study as his computer delivers a glowing cyan-and-gold spoken briefing and chime notification
Hands-free local briefings: one shared playback queue prevents overlapping voices even when multiple agents, hooks, and background watchers fire together.
Antigravity Hooks

Automatic Attention Hooks

Non-blocking hooks.json + run_hook.py returns in <50 ms while alerting you asynchronously when:

  • ask_question — Agent asks you a question
  • stop_done — Long task finished and idle
  • stop_error / stop_limit — Needs attention
  • tool_error — Optional tool failure alert
Localhost HTTP + OpenAI

Warm Local Trigger Daemon

Runs locally on http://127.0.0.1:8765 keeping Kokoro-82M warm in memory:

  • POST /speak & POST /notify
  • POST /chime, POST /play, POST /stop
  • POST /v1/audio/speech — drop-in OpenAI TTS API (tts-1 → Kokoro, tts-1-hd → Qwen3)
Zero-Code Automations

Drop-Folder Inbox Watcher

Drop any .txt or .json file into ~/RoshiSpeech/inbox/ from batch scripts, cron, or Task Scheduler. The daemon speaks it within 500 ms and archives it to inbox/processed/.

Wire Into Roshi's Recorder MCP & Signal MCP

# Recorder MCP watch rule command action (new Pixel voice note synced):
powershell -NoProfile -File "$HOME\.gemini\config\plugins\roshi-speech-mcp\speech-tool.ps1" notify attention "New Google Recorder note: {title}"

# Signal MCP watch rule command action (priority message arrived):
powershell -NoProfile -File "$HOME\.gemini\config\plugins\roshi-speech-mcp\speech-tool.ps1" notify attention "New Signal message from {sender}: {preview}"

# Drop-folder trigger from any script:
Set-Content -Path "$HOME\RoshiSpeech\inbox\alert.txt" -Value "Backup completed successfully."