issues
search
ykdojo
/
kaguya
A ChatGPT plugin that allows you to load and edit your local files in a controlled way, as well as run any Python, JavaScript, and bash script.
http://kaguya.ai/
MIT License
1.2k
stars
192
forks
source link
Add these tips in README
#12
Closed
ykdojo
closed
1 year ago
ykdojo
commented
1 year ago
Best to keep each file under 100 lines of code, particularly for writing
Writing more than ~80 lines of code at once is not recommended. It's slow and it might not even be able to finish the task.
You can have it read more code though. However, reading more than 500-600 lines of code at once is not recommended.
If the target file you want to edit is long, you may want to explicitly ask it to use search and replace.
It may not get the intention of your instructions right away. It's meant to be a conversational tool.
If the assistant starts hallucinating, it may be helpful to start a new conversation or limit the length of each file being loaded.