Use CasesVoice-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

  1. Describe your goal: /ptt "I need to find all Python files modified in the last 24 hours and count their total lines."
  2. The AI suggests: find . -name "*.py" -mtime -1 | xargs wc -l
  3. Hear the command via /tts-speak. Review it for correctness.
  4. Copy the command and run it. Check the output.
  5. If the output is unexpected, describe it: /ptt "The count seems too low — maybe the mtime flag is wrong?"
  6. 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.

Want to try this workflow?

Install interrupt →