opencode icon indicating copy to clipboard operation
opencode copied to clipboard

[FEATURE]: Quiet mode for CLI runs

Open vaporwavie opened this issue 1 month 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

yeah i think thats fine idk what the flag should be called tho, pr welcome

rekram1-node avatar Jan 06 '26 03:01 rekram1-node

I'll have a PR implementing this and we can iterate over what the arg should be called. Thanks!

vaporwavie avatar Jan 07 '26 01:01 vaporwavie

I have the same grievance but for normal interactive/TUI mode. I prefer the claude code approach where only the first 3-5 lines of bash tool output is shown and you have to hit a keyboard shortcut to see full output (toggle). This would also apply to other areas like: using a slash command (which currently dumps the entire slash command contents to output). All of this makes it very difficult to keep track of the work an agent is doing due to the clutter.

So perhaps something better than a CLI option would work here? Something that also works for interactive sessions in the TUI?

rcdailey avatar Jan 08 '26 14:01 rcdailey