agent-zero icon indicating copy to clipboard operation
agent-zero copied to clipboard

Generated file not found in working directory after code generation

Open saladinlorenz opened this issue 1 year ago • 3 comments

After generating code using Agent Zero, the agent confirms that the file has been saved, providing the filename with the extension. However, when checking the working directory, the file is not present.

Steps to reproduce:

Run the agent to generate code. The agent indicates that the file has been saved (e.g., script.py). Check the working directory for the file, but it is missing. image

saladinlorenz avatar Sep 26 '24 15:09 saladinlorenz

Same here. I had to tell it to save the file to the work directory.

inzi avatar Sep 26 '24 16:09 inzi

Yes I have this problem also, and I use what inzi said. Sometimes I tell agent0 to use, ls -l /root/

MovLab2 avatar Sep 26 '24 19:09 MovLab2

@inzi Thanks for the info, I’ll try specifying the working directory manually as well.

@MovLab2 Thanks for your input! I tried using ls -l /root/ like you mentioned, but it didn’t work for me. Could you explain in more detail how you’re using this command with Agent Zero? Is there a specific step I need to follow before running it?

saladinlorenz avatar Sep 26 '24 21:09 saladinlorenz