This commit is contained in:
Paul Gauthier 2024-01-24 10:07:56 -08:00
parent 18c3b67ec2
commit 448735a604
2 changed files with 10 additions and 3 deletions

View file

@ -116,8 +116,15 @@ session with the `/add` and `/drop` chat commands described below.
If you or GPT mention one of the repo's filenames in the conversation,
aider will ask if you'd like to add it to the chat.
Aider will work best if you think about which files need to be edited to make your change and add them to the chat.
Aider has some ability to help GPT figure out which files to edit all by itself, but the most effective approach is to explicitly add the needed files to the chat yourself.
Think about the change you want to make and which files will need
to be edited -- add those files to the chat.
Don't add *all* the files in your repo to the chat.
Be selective, and just add the files that GPT will need to edit.
If you add a bunch of unrelated files, GPT can get overwhelmed
and confused (and it costs more tokens).
Aider will automatically
share snippets from other, related files with GPT so it can
[understand the rest of your code base](https://aider.chat/docs/repomap.html).
Aider also has many
additional command-line options, environment variables or configuration file

View file

@ -4,7 +4,7 @@
- [Install git](#install-git)
- [Get your OpenAI API key](#get-your-openai-api-key)
- [Windows install](#windows-install)
- [Mac/Linux install](#mac-linux-install)
- [Mac/Linux install](#maclinux-install)
## Install git