Get started
Install agent-tts
Load the plugin for Claude Code, Cursor, or Antigravity, then enable speech once.
Speech starts disabled. You need:
- Python 3.9+
- A speech engine:
sayon macOS, SAPI on Windows,espeak-ngon Linux - A clone of this repo
Claude Code
git clone https://github.com/TailraceHQ/agent-tts.git ~/src/agent-tts
claude --plugin-dir ~/src/agent-ttsIn the session:
/tts onTo load it every time, wrap claude in your shell so --plugin-dir is always passed.
Cursor
git clone https://github.com/TailraceHQ/agent-tts.git ~/src/agent-tts
~/src/agent-tts/hosts/cursor/install.shinstall.sh writes the stop hook into ~/.cursor/hooks.json, installs /tts, and symlinks tts to ~/.local/bin/tts. Then:
tts onOr /tts on in Agent chat.
Antigravity
git clone https://github.com/TailraceHQ/agent-tts.git ~/src/agent-tts
agy plugin install ~/src/agent-tts
~/src/agent-tts/hosts/antigravity/run cli onDirect CLI
All hosts share ~/.agent-tts/ and the same CLI. After scripts/install-cli.sh:
tts status
tts closing
tts stop/tts in chat waits on the model. Use the tts binary for stop, skip, pause, and resume.
Confirm it works
- Enable with
tts on. - Ask the agent a short question.
- When the turn completes, you should hear the lead paragraph (summary mode).
- Run
tts previewto print the utterance queue without audio.
If nothing plays, check ~/.agent-tts/debug.log. TTS failures never block the agent turn.