Open endolith opened 3 weeks ago
I have similar issue but it is trying to create files using bash cat wheredoc and there is a bug preventing this working. #1485
While your issue with the escaping and my issue with the malformed file should still be resolved seperatly I think direct file access would be a great feature to avoid these kind methods to create a new file.
I'm not sure if your issue is a bug with interpreter or just the ai not getting the code right. Have you tried adding instruction to your prompt on how to create files using correct escaping? I added instruction to mine not to use heredoc so it now avoids that method.
Is your feature request related to a problem? Please describe.
The AI keeps going in circles:
It uses Python interpreter to look at the file it created:
Describe the solution you'd like
However the AI is able to call commands or call python code (function calling?) should be extended so that it can also read and write files directly, without using the Python interpreter as an intermediate step. Probably should be able to see hex dumps or other representations of files too.
Describe alternatives you've considered
No response
Additional context
No response