Skip to content

[ENHANCEMENT] Remove <thinking> tags from prompts (cleaner, fewer tokens) #8318

@hannesrudolph

Description

@hannesrudolph

Type

Enhancement

Problem / Value

The tags in our prompts don’t improve reasoning, but they add clutter and can confuse models into treating the tags as special syntax. They also bury the real rule (“confirm tool success before reuse”) inside markup, wasting tokens and diluting the core instruction. Since Roo Code doesn’t parse or store these tags, they provide no functional value and can lead to inconsistent outputs if a model overfits to the format. Removing them makes prompts simpler, clearer, and more reliable.

Context

Affects all modes that include our system/objective/tool-use instructions. The tags appear in descriptive text shown to models and are reinforced by tests that expect this wording. Users and contributors benefit through cleaner prompts and fewer malformed outputs; models get clearer guidance without extraneous markup.

Constraints/Preferences

  • Remove references to “” from system and tool instructions, and update tests/snapshots accordingly.
  • Keep provider-level “reasoning/thinking” features (budgets/streams) unchanged.
  • Keep any runtime sanitization that strips model-emitted “thinking” content as-is.
  • Retain the behavioral rule itself (confirm previous tool success before reuse) in plain language without tags.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue - In ProgressSomeone is actively working on this. Should link to a PR soon.enhancementNew feature or request

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions