Use Cases › Voice-Driven Terminal Workflows with OpenCode
💻
Voice-Driven Terminal Workflows with OpenCode
The Problem
Complex terminal workflows involve multiple commands, pipes, and flags. Recalling exact syntax while managing context breaks focus.
The Solution
Use OpenCode as a terminal companion. Describe what you want to do, the AI generates the command, and you review via TTS before executing.
Workflow
- Describe your goal: /ptt "I need to find all Python files modified in the last 24 hours and count their total lines."
- The AI suggests:
find . -name "*.py" -mtime -1 | xargs wc -l
- Hear the command via /tts-speak. Review it for correctness.
- Copy the command and run it. Check the output.
- If the output is unexpected, describe it: /ptt "The count seems too low — maybe the mtime flag is wrong?"
- The AI adjusts the approach. Iterate until the command works.
Tips
• Terminal commands contain special characters (pipes, wildcards, flags). Speak them clearly: "pipe", "star dot py", "dash mtime".
• OpenAI API transcription handles shell syntax better than whisper base model.
• Use /tts-speak to hear long command outputs read aloud — useful for parsing log files and JSON responses.