Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Architect mode automatically updating code #3543

Open
dopper opened this issue Mar 14, 2025 · 3 comments
Open

Bug: Architect mode automatically updating code #3543

dopper opened this issue Mar 14, 2025 · 3 comments
Labels
question Further information is requested

Comments

@dopper
Copy link

dopper commented Mar 14, 2025

Issue

It appears like architect mode automatically updates without asking user now.

Version and model info

Aider v0.77.0
Main model: o3-mini with architect edit format, reasoning high
Editor model: claude-3-5-sonnet-20241022 with editor-diff edit format
Weak model: gpt-4o-mini
Git repo: .git with 89 files
Repo-map: using 8192 tokens, files refresh

@paul-gauthier
Copy link
Collaborator

Thanks for trying aider and filing this issue.

Yes, that's the new default. You can do --no-auto-accept-architect if you prefer the old behavior.

@dopper
Copy link
Author

dopper commented Mar 14, 2025

Got it, that makes sense and closing.

@github-actions github-actions bot added the question Further information is requested label Mar 15, 2025
@brianredbeard
Copy link

FYI, there are at least some issues with this:

architect> /help how do i disable the auto-edit-architect feature?                                                                                                                                                                                       

To use interactive /help you need to install the help extras

/Users/bharrington/.local/share/uv/tools/aider-chat/bin/python3 -m pip install --upgrade --upgrade-strategy only-if-needed 'aider-chat[help]' --extra-index-url https://download.pytorch.org/whl/cpu
Run pip install? (Y)es/(N)o [Yes]:                                                                                                                                                                                                                       

Installing: /Users/bharrington/.local/share/uv/tools/aider-chat/bin/python3 -m pip install --upgrade --upgrade-strategy only-if-needed 'aider-chat[help]' --extra-index-url https://download.pytorch.org/whl/cpu
                
Installation complete.

Generating embeddings: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 534/534 [00:08<00:00, 62.18it/s]
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
► THINKING                                                                                                                                                                                                                                               

Okay, let me try to figure out how to disable the auto-edit-architect feature in aider. The user mentioned this feature, so I need to look through the provided documentation to find the relevant options.                                              

First, looking at the docs, there's an option called --architect which enables the architect mode. Architect mode uses two models: one for planning and another for editing. The user wants to disable this automated architect editing feature.         

In the options, I see --auto-accept-architect which is enabled by default. This might automatically accept changes proposed by the architect mode. If the user wants to disable the auto-edit by the architect, maybe turning off auto-accept would help.
The docs say to use --no-auto-accept-architect to disable it.                                                                                                                                                                                            

Alternatively, since architect mode itself is triggered by --architect, perhaps disabling that would turn off the feature entirely. But if the user wants to keep architect mode but not have it auto-apply edits, then --no-auto-accept-architect is the
right choice.                                                                                                                                                                                                                                            

So the steps would be to either disable the architect mode or disable the auto-acceptance of its edits. Based on the user's question, the best approach is to use the --no-auto-accept-architect flag when running aider. This should stop the automatic 
application of architect changes, requiring manual acceptance instead.                                                                                                                                                                                   

─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
► ANSWER                                                                                                                                                                                                                                                 

To disable the auto-edit-architect feature in aider, you can use either of these methods:                                                                                                                                                                

 1 Use the command line flag when starting aider:                                                                                                                                                                                                        

                                                                                                                                                                                                                                                         
 aider --no-auto-accept-architect                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                         

 2 Set an environment variable before starting aider:                                                                                                                                                                                                    

                                                                                                                                                                                                                                                         
 export AIDER_AUTO_ACCEPT_ARCHITECT=False                                                                                                                                                                                                                
 aider                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                         

These will disable the automatic acceptance of architect changes, requiring manual confirmation before applying edits when using architect mode. Note this can also be toggled during a session with /auto-accept-architect off.                         

The difference between architect mode and auto-acceptance:                                                                                                                                                                                               

 • Architect mode (--architect) enables the two-stage LLM process (design + edit)                                                                                                                                                                        
 • Auto-accept-architect controls whether suggested edits are automatically applied or require confirmation                                                                                                                                              


Tokens: 32k sent, 462 received. Cost: $0.07 message, $0.68 session.
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Formula/a/arm-linux-gnueabihf-gcc.rb                                                                                                                                                                                                                     
architect> /auto-accept-architect off                                                                                                                                                                                                                    

Invalid command: /auto-accept-architect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants