Hide Chain-of-Thoughts when use opencode run #721

Closed
opened 2026-02-16 17:28:02 -05:00 by yindo · 2 comments
Owner

Originally created by @leporel on GitHub (Jul 15, 2025).

Originally assigned to: @thdxr on GitHub.

Can opencode run strip Chain-of-Thoughts from output?

Now I have this result with ollama qwen3

# opencode --model "ollama/qwen3:8b-q4_K_M" --mode default run "hello"

@  ollama/qwen3:8b-q4_K_M
█▀▀█ █▀▀█ █▀▀ █▀▀▄ █▀▀ █▀▀█ █▀▀▄ █▀▀
█░░█ █░░█ █▀▀ █░░█ █░░ █░░█ █░░█ █▀▀
▀▀▀▀ █▀▀▀ ▀▀▀ ▀  ▀ ▀▀▀ ▀▀▀▀ ▀▀▀  ▀▀▀


<think>
Okay, the user said "hello". I need to respond in a friendly and helpful manner. Since there's no specific project mentioned, I'll keep it general. Let me make sure to greet them back and offer assistance. Maybe add a smiley to keep it warm. Alright, that should work.
</think>

Hello! 😊 How can I assist you today? If you have any questions or need help with something, feel free to ask!
Originally created by @leporel on GitHub (Jul 15, 2025). Originally assigned to: @thdxr on GitHub. Can `opencode run` strip Chain-of-Thoughts from output? Now I have this result with ollama qwen3 ``` # opencode --model "ollama/qwen3:8b-q4_K_M" --mode default run "hello" @ ollama/qwen3:8b-q4_K_M █▀▀█ █▀▀█ █▀▀ █▀▀▄ █▀▀ █▀▀█ █▀▀▄ █▀▀ █░░█ █░░█ █▀▀ █░░█ █░░ █░░█ █░░█ █▀▀ ▀▀▀▀ █▀▀▀ ▀▀▀ ▀ ▀ ▀▀▀ ▀▀▀▀ ▀▀▀ ▀▀▀ <think> Okay, the user said "hello". I need to respond in a friendly and helpful manner. Since there's no specific project mentioned, I'll keep it general. Let me make sure to greet them back and offer assistance. Maybe add a smiley to keep it warm. Alright, that should work. </think> Hello! 😊 How can I assist you today? If you have any questions or need help with something, feel free to ask! ```
yindo added the model-problem label 2026-02-16 17:28:02 -05:00
yindo closed this issue 2026-02-16 17:28:02 -05:00
Author
Owner

@jessevdp commented on GitHub (Jul 23, 2025):

Wouldn't it also be a good idea to strip these away in other modes? I just tested Qwen3 via Ollama and had this happen:

Image Image
@jessevdp commented on GitHub (Jul 23, 2025): Wouldn't it also be a good idea to strip these away in other modes? I just tested Qwen3 via Ollama and had this happen: <img width="1249" height="1309" alt="Image" src="https://github.com/user-attachments/assets/91eb23a8-e5d2-4f9c-8141-402db40fbf4c" /> <img width="765" height="136" alt="Image" src="https://github.com/user-attachments/assets/fa8c2ee8-9dd1-4b96-aa71-8ddad14ab305" />
Author
Owner

@rekram1-node commented on GitHub (Dec 27, 2025):

[automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!

@rekram1-node commented on GitHub (Dec 27, 2025): [automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#721