# Why are the edit tools so flaky?

**URL:** <https://forum.cursor.com/t/why-are-the-edit-tools-so-flaky/93294>\
**Category:** Bug Reports\
**Created:** [May 18, 2025, 7:40pm UTC](https://forum.cursor.com/t/why-are-the-edit-tools-so-flaky/93294 "2025-05-18T19:40:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dchersey](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/dchersey/32/19877_2.png) [@dchersey](https://forum.cursor.com/u/dchersey)\
**Post date:** [May 18, 2025, 7:40pm UTC](https://forum.cursor.com/t/why-are-the-edit-tools-so-flaky/93294/1 "2025-05-18T19:40:51Z")

</div>

I am always getting messages like  
It seems there was an issue creating the file. Let’s try again directly:

or the edit was not applied by the model.

or Model provided invalid arguments to terminal tool.

or It seems our edit didn’t replace the existing date validation code, but instead just added the new code. Let’s look at the full content of the current script:

or It seems that our edit completely replaced the file instead of just updating the date validation section. Let’s recreate the full script with the correct validation:

It seems this should be the easier problem to solve – the model already knows what it wants to do and seems to be all thumbs in changing the code.

This wastes a lot of time and tokens.

---

<div class="post-metadata">

**Author:** ![effi](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/effi/32/6912_2.png) [@effi](https://forum.cursor.com/u/effi)\
**Post date:** [May 20, 2025, 7:38am UTC](https://forum.cursor.com/t/why-are-the-edit-tools-so-flaky/93294/3 "2025-05-20T07:38:35Z")

</div>

Yeah, I have experienced this as well, more with gemini-2.5 than Claude-3.7, especially when it with large files (over 700 rows).  
In both cases if I see the agent is finding if difficult to make simple edits I ask it to tell me what to change and do it myself.

---

<div class="post-metadata">

**Author:** ![dchersey](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/dchersey/32/19877_2.png) [@dchersey](https://forum.cursor.com/u/dchersey)\
**Post date:** [May 21, 2025, 5:53pm UTC](https://forum.cursor.com/t/why-are-the-edit-tools-so-flaky/93294/4 "2025-05-21T17:53:27Z")

</div>

Now it is literally echoing strings \>\> a shell script because it can’t seem to edit it directly

---

<div class="post-metadata">

**Author:** ![Boss](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/boss/32/58002_2.png) [@Boss](https://forum.cursor.com/u/Boss)\
**Post date:** [May 24, 2025, 12:01pm UTC](https://forum.cursor.com/t/why-are-the-edit-tools-so-flaky/93294/5 "2025-05-24T12:01:40Z")

</div>

I concur.  
One step forward. One step back.

---

<div class="post-metadata">

**Author:** ![xpdev](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/xpdev/32/54831_2.png) [@xpdev](https://forum.cursor.com/u/xpdev)\
**Post date:** [May 28, 2025, 9:43am UTC](https://forum.cursor.com/t/why-are-the-edit-tools-so-flaky/93294/6 "2025-05-28T09:43:10Z")

</div>

came here looking for answers to:

[Model provided invalid arguments to terminal tool.]

wastes so much time! 🕰

but i suppose we are still moving 10x faster overall? 🤞

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [June 27, 2025, 9:44am UTC](https://forum.cursor.com/t/why-are-the-edit-tools-so-flaky/93294/7 "2025-06-27T09:44:04Z")

</div>

Closed on June 27, 2025, 9:44am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
