Reads the last answer out loud.

Reads the last answer out loud.
Status: stub. Tested with Claude Code 2.1.287.
hooks/register.ts 15 lines1import type { Register } from 'claude-code'
2
3// STUB. Loads, validates, and answers /read-aloud with what it will become.
4// The shape it is heading for: /say: $.process runs the system voice on the last assistant message
5export const register: Register = on => {
6 on('session.start', async ($, e, next) => {
7 await $.command.register({ name: 'read-aloud', description: "Reads the last answer out loud." })
8 return next(e)
9 })
10
11 on('command.run', { command: 'read-aloud' }, async () => {
12 return { text: 'Not built yet. ' + "Reads the last answer out loud." }
13 })
14}
15