CODE-1884-voice-input-slash-command — Claude Code subagent
CODE-1884-voice-input-slash-command is a Claude Code subagent for adding /voice voice input to a headless TUI. Esc or Enter ends recording and starts transcription.
AGPL-3.0 ★ 720 updated 2026-11-10
.claude/agents/CODE-1884-voice-input-slash-command.mdWhat CODE-1884-voice-input-slash-command does
This subagent helps implement voice input in a headless TUI through the no-argument /voice slash command. It starts microphone capture, shows an animated listening outline and footer state, then sends the recording for transcription when Esc or Enter is pressed. The returned text is inserted into the composer without submitting it to the agent.
The task covers Listening and Transcribing states, Escape cancellation, inline-menu priority, and restoration of normal shell behavior after the session ends. Recording relies on the shared cpal backend together with the existing VoiceInput and VoiceTranscriber; macOS also checks microphone authorization. It requires an authenticated local TUI session, AI enabled, voice team policy enabled, the voice_input capability compiled, and voice requests available.
What it helps with
- add a no-argument
/voicecommand to the TUI - start microphone capture from the slash menu
- show listening and transcription states in the footer
- stop recording with Esc or Enter
- insert the transcription into the composer
Example prompts for the agent
- Add the
/voiceslash command for voice input in the headless TUI. - Implement Esc and Enter handling so recording stops and transcription begins.
- Test composer insertion and microphone-denial handling for the voice session.
How to install CODE-1884-voice-input-slash-command
Manually: put the files in place
.claude/agents/CODE-1884-voice-input-slash-command.mdFor all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention
Manually: put the files in place
.codex/agents/CODE-1884-voice-input-slash-command.tomlCodex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/
Manually: put the files in place
.cursor/agents/CODE-1884-voice-input-slash-command.mdCursor also reads .claude/agents/
Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean
Questions about CODE-1884-voice-input-slash-command
How do I install CODE-1884-voice-input-slash-command in Claude Code?
Place the subagent file at .claude/agents/CODE-1884-voice-input-slash-command.md.
What does CODE-1884-voice-input-slash-command do?
It describes a /voice implementation for the headless TUI: microphone capture, status rendering, stopping with Esc or Enter, and composer insertion after transcription.
What does CODE-1884-voice-input-slash-command require?
It requires an authenticated local TUI session, AI enabled, the voice team policy enabled, the voice_input capability compiled, and voice requests available. The implementation uses the shared cpal backend, VoiceInput, and VoiceTranscriber.