Seeing LLMs struggle with file edits sometimes degenerates into this:
Model: let me edit the file to remove comments.
Tool(edit_file): old_str is not present in the file
Model: I see there is an issue with editing the file, let me try again
Tool(edit_file): old_str and new_str must be different
Model: Let me try a different approach
Tool(bash): sed -i "s/\"ol…
Keep reading with a 7-day free trial
Subscribe to The Cultivated Engineer to keep reading this post and get 7 days of free access to the full post archives.