aider icon indicating copy to clipboard operation
aider copied to clipboard

Feature: Thinking command

Open pcfreak30 opened this issue 8 months ago • 7 comments

Issue

Add a /thinking or /think command to toggle between basic and think/CoT mode. this should either switch models or set the budget for the thinking stage.

Version and model info

No response

pcfreak30 avatar Mar 12 '25 03:03 pcfreak30

Thanks for trying aider and filing this issue.

The fix is available in the main branch. You can get it by installing the latest version from github:

aider --install-main-branch

# or...

python -m pip install --upgrade --upgrade-strategy only-if-needed git+https://github.com/Aider-AI/aider.git

If you have a chance to try it, let me know if it works for you.

paul-gauthier avatar Mar 12 '25 03:03 paul-gauthier

Thanks for trying aider and filing this issue.

The fix is available in the main branch. You can get it by installing the latest version from github:

aider --install-main-branch

# or...

python -m pip install --upgrade --upgrade-strategy only-if-needed git+https://github.com/Aider-AI/aider.git

If you have a chance to try it, let me know if it works for you.

Cool however I don't like that i need to pass a number of tokens. it should have a default and be toggle so i can switch easily.

pcfreak30 avatar Mar 12 '25 04:03 pcfreak30

The fix is available in the main branch.

Do you mean the /thinking-tokens command? Does it fully toggle thinking back off, though? When I initially launch Aider, I see:

Main model: openrouter/anthropic/claude-3.7-sonnet with ask edit format, prompt cache, infinite output

Then if I run, say, /thinking-tokens 2k followed by /thinking-tokens 0 the line is not exactly back to the same state:

Main model: openrouter/anthropic/claude-3.7-sonnet with ask edit format, 0k think tokens, prompt cache, infinite output

I don't understand reasoning models and how Aider controls them well enough to know if these two states are completely equivalent.

vphantom avatar Mar 19 '25 02:03 vphantom

I'm labeling this issue as stale because it has been open for 2 weeks with no activity. If there are no additional comments, I will close it in 7 days.

Note: A bot script made these updates to the issue.

github-actions[bot] avatar Apr 02 '25 12:04 github-actions[bot]

not stale

pcfreak30 avatar Apr 02 '25 15:04 pcfreak30

I'm labeling this issue as stale because it has been open for 2 weeks with no activity. If there are no additional comments, I will close it in 7 days.

Note: A bot script made these updates to the issue.

github-actions[bot] avatar Apr 17 '25 12:04 github-actions[bot]

not stale

pcfreak30 avatar Apr 18 '25 01:04 pcfreak30

Do you mean the /thinking-tokens command? Does it fully toggle thinking back off, though? When I initially launch Aider, I see:

Main model: openrouter/anthropic/claude-3.7-sonnet with ask edit format, prompt cache, infinite output

Then if I run, say, /thinking-tokens 2k followed by /thinking-tokens 0 the line is not exactly back to the same state:

Main model: openrouter/anthropic/claude-3.7-sonnet with ask edit format, 0k think tokens, prompt cache, infinite output

I don't understand reasoning models and how Aider controls them well enough to know if these two states are completely equivalent.

I would like to add my experience with the thinking-tokens:

I switched them on with claude-3.7-sonnet over amazon bedrock

That worked fine until the editor got into infinite-output mode , so I guess it's just resubmitting on the end of generation and this loop broke since bedrock/sonnet expected thinking but resubmitting just want to keep generating.

So I tried to deactivate thinking again via setting /thinking-tokens to 0 but this is not deactivating the thinking but just set them to 0 , so my bedrock thinking error remained and I had to resolve via restart.

The sentences

  1. infinite output is incompatible with thinking.
  2. once thinking is enabled it cannot be disabled

are philosophical correct but impractical. ;-)

As I understand this Issue here is related to sentence 2 and I'm yet to find an Issue for the first sentence.

p-a-x avatar May 08 '25 08:05 p-a-x