[PR #7244] feat: quiet mode for CLI runs #12314

Open
opened 2026-02-16 18:17:14 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/7244

State: open
Merged: No


Fixes: #6999

This PR adds the -q | --quiet argument, which aims to provide a cleaner output to the user for CLI runs, suppressing tool calls and focusing on the actual response from the agent.

Usage

# shorthand
opencode run -q "list the files in this directory"

# verbalized
opencode run --quiet "list the files in this directory"

# specifying a model
opencode run -m "opencode/gemini-3-flash" "list the files in this directory" --quiet

# wrapped around a function
function ask() {
  if [ -z "$1" ]; then
    echo "Usage: ask <question>"
    return 1
  fi

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

Demo

Dry Run

https://github.com/user-attachments/assets/41c96313-343a-416b-8e63-6665b0695aaa

Scenario Preview
Before image
After image
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/7244 **State:** open **Merged:** No --- Fixes: #6999 This PR adds the `-q | --quiet` argument, which aims to provide a _cleaner_ output to the user for CLI runs, suppressing tool calls and focusing on the actual response from the agent. ## Usage ```bash # shorthand opencode run -q "list the files in this directory" # verbalized opencode run --quiet "list the files in this directory" # specifying a model opencode run -m "opencode/gemini-3-flash" "list the files in this directory" --quiet # wrapped around a function function ask() { if [ -z "$1" ]; then echo "Usage: ask <question>" return 1 fi local model="opencode/gemini-3-flash" opencode run -m $model "$*" -q | glow - } ``` ## Demo ### Dry Run https://github.com/user-attachments/assets/41c96313-343a-416b-8e63-6665b0695aaa | Scenario | Preview | |----------|---------| | Before | <img width="2190" height="1982" alt="image" src="https://github.com/user-attachments/assets/63761792-e47c-4f86-8b2c-9304ec329ff6" /> | | After | <img width="2782" height="1110" alt="image" src="https://github.com/user-attachments/assets/b7c356dc-fb42-40cd-b6b1-3b738cc84f3d" /> |
yindo added the pull-request label 2026-02-16 18:17:14 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12314