Skip to content

Conversation

@vaporwavie
Copy link

@vaporwavie vaporwavie commented Jan 7, 2026

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

opencode-quiet-mode.mov
Scenario Preview
Before image
After image

@github-actions
Copy link
Contributor

github-actions bot commented Jan 7, 2026

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

@github-actions
Copy link
Contributor

Hey! Your PR title feat(cli/run): quiet mode doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

@vaporwavie vaporwavie changed the title feat(cli/run): quiet mode feat: quiet mode for CLI runs Jan 12, 2026
@github-actions
Copy link
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]: Quiet mode for CLI runs

1 participant