[BUG] I think claude's "thinking" regexes need tightening up

Resolved 💬 8 comments Opened Apr 26, 2025 by obra Closed Jan 9, 2026

Environment

  • Platform (select one):
  • [x] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: 0.2.86
  • Operating System: MacOS 14.3
  • Terminal: Ghostty

Bug Description

Claude code's regexes that look for indications that the user wants thinking mode trigger in cases when they really shouldn't. For example, when the user writes "I think..." or "I don't think ...."

Steps to Reproduce

  1. Enter the prompt "I think we should try building a new widget" or "I don't think we should consider the foo approach here"

Expected Behavior

Claude treats the input as the user making assertions

Actual Behavior

Claude thinks about it.

Additional Context

<img width="801" alt="Image" src="https://github.com/user-attachments/assets/c9d6f398-348d-4f56-a018-57fdbdf78e4a" />

View original on GitHub ↗

This issue has 8 comments on GitHub. Read the full discussion on GitHub ↗