claudecodeui icon indicating copy to clipboard operation
claudecodeui copied to clipboard

feat: Add thinking mode selector to chat interface

Open lvalics opened this issue 6 months ago • 8 comments

  • Added ThinkingModeSelector component with 5 thinking modes
  • Integrated selector into chat header next to permission mode
  • Automatically prefixes messages with thinking instructions
  • Resets to default mode after sending message

lvalics avatar Jul 11 '25 19:07 lvalics

@lvalics thinking mode does not exist in Claude Code.

Moreover the commit only adds a button in the Frontend

viper151 avatar Jul 11 '25 19:07 viper151

It is exist ... Try to add this words in your promot, actually it is add ONLY to the prompt. Not need any backend. Ask Claude to make a plan for how to approach a specific problem. We recommend using the word "think" to trigger extended thinking mode, which gives Claude additional computation time to evaluate alternatives more thoroughly. These specific phrases are mapped directly to increasing levels of thinking budget in the system: "think" < "think hard" < "think harder" < "ultrathink." Each level allocates progressively more thinking budget for Claude to use. https://www.anthropic.com/engineering/claude-code-best-practices

lvalics avatar Jul 11 '25 19:07 lvalics

I am using a lot to force Claude Code to get implementation more thinking, overthinking, but consume more credits (if you are on token) but is not consume if you are on MAX or PRO. I am using Claude Code quite a lot, from the first version, it is used by engineers a lot.

lvalics avatar Jul 11 '25 19:07 lvalics

image Just to see how is react.

lvalics avatar Jul 12 '25 13:07 lvalics

I know it exists but as you mentioned it's only when you mention it within the prompt itself. What I missed in your code was this if (selectedThinkingMode && selectedThinkingMode.prefix) { messageContent = ${selectedThinkingMode.prefix}: ${input}; }

I like it and want to merge, but doesn't it clutter a bit too much the interface? We nw also have the planning mode "pill" above the chat interface input. Think of the mobile interface.

viper151 avatar Jul 12 '25 13:07 viper151

You can add it and see what people think an of course you can move else later if needed. Normally near that button is ok I think.

lvalics avatar Jul 12 '25 15:07 lvalics

It is a feature in Claudia

zuodajiang-1m avatar Aug 12 '25 10:08 zuodajiang-1m

image image

It also has a mode selection function

zuodajiang-1m avatar Aug 12 '25 10:08 zuodajiang-1m