|
|
|
|
|
by hegem0n
1168 days ago
|
|
I want to see the evolution of context management tools for coding with GPT. - implement a function, providing structural context (e.g. model, service, controller) with stubbed modules, but leave out utilities/libraries and database model
- drop the structural context, and ask it to expand the stub implementation with some additional context about the database model
- drop the database model context, and ask it to refactor the solution with some additional context about utilities/libraries I think this is doable, if we can build up some utilities for context management and iterative development, GPT should start to be usable on large code bases. It could work similarly to how one person wrote an entire novel using GPT. |
|
I've tried a few things:
1. Summarize/collapse the code.
2. Explicitly ask GPT "which parts of the code are relevant to this change request" or "which parts of this code would need to be modified to make the needed changes", etc.3. Again using ReAct, give GPT tools to "grep" and "cat" the code so that it can explore the codebase to find and understand relevant chunks. I've even armed it with bash in a sandbox. It started importing and running parts of the python code I was operating over.
None of these approaches have panned out fully yet. But there are promising signs.
[1] This is the small webapp that GPT wrote for me. I'm working on it mainly as a forcing function to explore these sorts of "GPT as junior developer / coding collaborator" workflows.
https://github.com/paul-gauthier/easy-chat#created-by-chatgp...