Excluding reasoning context to reduce token usage #3201

Open
opened 2026-02-16 17:39:05 -05:00 by yindo · 1 comment
Owner

Originally created by @luigicampanaro on GitHub (Nov 29, 2025).

Question

Is there an existing or planned feature in opencode that exclude AI reasoning content from 1) model prompts and 2) session compaction to optimize token consumption?

Thanks in advance :)

Originally created by @luigicampanaro on GitHub (Nov 29, 2025). ### Question Is there an existing or planned feature in opencode that **exclude AI reasoning** content **from** **1) model prompts** and **2) session compaction** to optimize token consumption? Thanks in advance :)
Author
Owner

@github-actions[bot] commented on GitHub (Nov 29, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #3035: Do not send reasoning traces and tool calls made during reasoning when switching from reasoning model to non reasoning model - directly addresses excluding reasoning content to reduce token waste
  • #4113: Is there any way to debug compaction/token usage/prompts? - discusses excessive token usage and compaction issues
  • #254: Ridiculously big usage of input tokens for simple tasks - raises concerns about high token consumption
  • #2637: Configuration to Limit Input Tokens per Request - requests token limit controls to reduce consumption
  • #3032: Soft compaction / AI global workspace metabolism - proposes alternative compaction strategies to reduce token bloat
  • #4317: Feature: generic /compact command, auto-compaction, and fork-aware conversations - comprehensive compaction feature request

Feel free to ignore if your specific case involves a different aspect of token optimization.

@github-actions[bot] commented on GitHub (Nov 29, 2025): This issue might be a duplicate of existing issues. Please check: - #3035: Do not send reasoning traces and tool calls made during reasoning when switching from reasoning model to non reasoning model - directly addresses excluding reasoning content to reduce token waste - #4113: Is there any way to debug compaction/token usage/prompts? - discusses excessive token usage and compaction issues - #254: Ridiculously big usage of input tokens for simple tasks - raises concerns about high token consumption - #2637: Configuration to Limit Input Tokens per Request - requests token limit controls to reduce consumption - #3032: Soft compaction / AI global workspace metabolism - proposes alternative compaction strategies to reduce token bloat - #4317: Feature: generic /compact command, auto-compaction, and fork-aware conversations - comprehensive compaction feature request Feel free to ignore if your specific case involves a different aspect of token optimization.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3201