paul-gauthier / aider

aider is AI pair programming in your terminal
https://aider.chat/
Apache License 2.0
17.95k stars 1.68k forks source link

Aider streaming the whole file! #1131

Closed hadi-nayebi closed 1 week ago

hadi-nayebi commented 3 weeks ago

Issue

When using aider, it keeps writing the whole file in the response (stream, ) even if it changes a single word. How one can stop this behavior? is this the default behavior? I have a relatively large file and every time it makes a small edit, I have to sit and wait for aider to stream the whole updated file for minutes.

Version and model info

No response

andrewsgeller commented 3 weeks ago

You are likely using the /chat-mode while setting. Try changing to “diff”

Sent from my iPhone


From: Hadi Nayebi @.> Sent: Monday, August 19, 2024 11:16 PM To: paul-gauthier/aider @.> Cc: Subscribed @.***> Subject: [paul-gauthier/aider] Aider streaming the whole file! (Issue #1131)

Issue

When using aider, it keeps writing the whole file in the response (stream, ) even if it changes a single word. How one can stop this behavior? is this the default behavior? I have a relatively large file and every time it makes a small edit, I have to sit and wait for aider to stream the whole updated file for minutes.

Version and model info

No response

— Reply to this email directly, view it on GitHubhttps://github.com/paul-gauthier/aider/issues/1131, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJ65MRR6JIHHHDZGCFPMWZDZSKYIDAVCNFSM6AAAAABMY7TQA2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ3TINRSHA2TMNA. You are receiving this because you are subscribed to this thread.Message ID: @.***>

hadi-nayebi commented 3 weeks ago

I get this, aider: error: unrecognized arguments: --diff and when using --show-diffs, still get the same behavior.

the other clue is that, it streams the whole file after

path/to/idea.md

content of the file

hadi-nayebi commented 3 weeks ago

I just realized what you mean. There are all these options for the /chat-mode

Chat mode should be one of these:

Or a valid edit format:

I can understand the top three options. First question: which one is the default? what is the practical difference between these? is there any article or tutorial to go through these and when to choose each?! Some times, i like to work on the idea.md which is not a code source, sometimes I work on the cookbook.md, and some times the src code. Is research behind having all these options?

hadi-nayebi commented 3 weeks ago

Another related question I have is whether the continuous edit are possible. When I prompt aider to continue identifying edits, and commit and repeat, it never makes an intermediate commits. It seems that it does propose many changes but until it is done responding, the commits never happen. The behavior I am looking is to follow my prompt, identify items to edit, commit and continue to the next item without stopping. I intend to use this behavior for expanding ideas not the source code directly. I have an idea.md file which I have a seed on an idea and my current partial implementation, I want aider to only focus on the idea.md and expand this file step by step and take the seed into a well thought out idea. Later I will use the idea.md file as a core file that will guide the code implementation workflow. I hope the behavior I am describing is clear.

paul-gauthier commented 2 weeks ago

This doc may be helpful:

https://aider.chat/docs/scripting.html

paul-gauthier commented 1 week ago

I'm going to close this issue for now, but feel free to add a comment here and I will re-open or file a new issue any time.