This commit is contained in:
Paul Gauthier 2023-05-23 06:18:16 -07:00
parent c73a29a8a9
commit 4f43d542e4

View file

@ -14,16 +14,17 @@ when we ask it to accomplish a coding task. Specifically, we need to:
- Help GPT understand the overall codebase, so that it - Help GPT understand the overall codebase, so that it
can decifer the meaning of code with complex dependencies and generate can decifer the meaning of code with complex dependencies and generate
new code that respects existing abstractions. new code that respects and utilizes existing abstractions.
- Convey all of this "code context" to GPT in an - Convey all of this "code context" to GPT in an
efficient manner that fits within the 8k-token context window. efficient manner that fits within the 8k-token context window.
To address these issues, `aider` has To address these issues, `aider` now
a new experimental feature that utilizes `ctags` to provide sends GPT a **concise map of your whole git repository**.
GPT with a **concise map of your whole git repository** that includes that includes
all declared variables and functions with call signatures. all declared variables and functions with call signatures.
This *repo map* enables GPT to better comprehend, navigate This *repo map* is built using `ctags`
and edit the code in larger repos. and enables GPT to better comprehend, navigate
and edit code in larger repos.
To get a sense of how effective this can be, this To get a sense of how effective this can be, this
[chat transcript](https://aider.chat/examples/add-test.html) [chat transcript](https://aider.chat/examples/add-test.html)