opencode icon indicating copy to clipboard operation
opencode copied to clipboard

[FEATURE]: Quiet mode for CLI runs

Open vaporwavie opened this issue 1 week ago • 2 comments

Feature hasn't been suggested before.

  • [x] I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

When using opencode run in scripts or wrapper functions, tool call details (Bash, Read, Glob, etc.) are printed alongside the final response, which can clutter the output.

We could benefit from having a flag like --quiet / -q that suppresses tool call output and only displays the final text response. Since some questions can take a bit longer to provide the final output, Having a spinner from clack would fill the blanks.

Something like: opencode run -q -m opencode/gemini-3-flash "How do I run tests?"

I thought of this while hacking my way to create a bash function called ask that serves as a little "ask questions quickly" mechanism, leveraging a fast model as well:

# e.g.: ask "How can I test this project?"
function ask() {
  if [ -z "$1" ]; then
    echo "Usage: ask <question>"
    return 1
  fi

  local model="opencode/gemini-3-flash"
  opencode run -m $model "$*" | glow -
}

vaporwavie avatar Jan 05 '26 21:01 vaporwavie