Skip to content

feat: quiet mode for CLI runs#18317

Open
vaporwavie wants to merge 3 commits intoanomalyco:devfrom
vaporwavie:run-quiet-flag
Open

feat: quiet mode for CLI runs#18317
vaporwavie wants to merge 3 commits intoanomalyco:devfrom
vaporwavie:run-quiet-flag

Conversation

@vaporwavie
Copy link

@vaporwavie vaporwavie commented Mar 20, 2026

Issue for this PR

Closes #6999

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

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. Since this is a stainless run, it won't allow asking for permissions or anything that defeats the purpose of a quiet mode.

How did you verify your code works?

  • Ran bun turbo typecheck successfully via the pre-push hook, had to fix a couple of type issues
  • Smoke-tested opencode run -q locally using:
    • bun run --conditions=browser src/index.ts run -q -m opencode/gemini-3-flash "list me the files in this directory"
    • bun run --conditions=browser src/index.ts run -q -m opencode/gemini-3-flash "list me the files in this directory" | cat
  • Confirmed quiet mode suppresses tool-call output, keeps the spinner in TTY mode, and prints only the final response

Screenshots / recordings

opencode-quiet-mode.mov

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

If you do not follow this template your PR will be automatically rejected.

@github-actions github-actions bot added needs:compliance This means the issue will auto-close after 2 hours. and removed needs:compliance This means the issue will auto-close after 2 hours. labels Mar 20, 2026
@github-actions
Copy link
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

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