Some models overwrite the main.py in write tool implementation

With this given prompt asking it to read the readme, prompt says “Read README.md and create the required file.”, but there is no instruction there.

Infact for Haiku it usually ends up overwriting the main.py file for me.

./your_program.sh -p "Read README.md and create the required file. File should have 1 line. Reply with 'Created the file'"

Hey @areebkhan91, could you confirm whether this happens locally or on our tester?

Also, could you share a complete tool call trace that leads to the file being overwritten? That would help us better understand what’s happening.