# Agent rewrites entire file every time

**URL:** <https://forum.cursor.com/t/agent-rewrites-entire-file-every-time/153679>\
**Category:** Bug Reports\
**Tags:** composer, review\
**Created:** [March 5, 2026, 10:09am UTC](https://forum.cursor.com/t/agent-rewrites-entire-file-every-time/153679 "2026-03-05T10:09:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DjWarmonger](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/djwarmonger/32/28495_2.png) [@DjWarmonger](https://forum.cursor.com/u/DjWarmonger)\
**Post date:** [March 5, 2026, 10:09am UTC](https://forum.cursor.com/t/agent-rewrites-entire-file-every-time/153679/1 "2026-03-05T10:09:41Z")

</div>

### Where does the bug appear (feature/product)?

Cursor IDE

### Describe the Bug

Agent is rewriting full file every time. At least so does it look in UI, may be only display issue.

### Steps to Reproduce

This is new file created by this agent.  
May be random, but already happened to me twice in a row.

### Expected Behavior

Agent only edits lines relevant to issue to reduce noise and save tokens.

### Screenshots / Screen Recordings

 ![Agent rewrite.jpg](https://us1.discourse-cdn.com/cursor1/original/3X/6/7/677e20e0ca6c63c36f5fd2f742fdafb525ba32a4.jpeg)

### Operating System

Windows 10/11

### Version Information

Version: 2.6.11 (user setup)  
VSCode Version: 1.105.1  
Commit: 8c95649f251a168cc4bb34c89531fae7db4bd990  
Date: 2026-03-03T18:57:48.001Z  
Build Type: Stable  
Release Track: Default  
Electron: 39.6.0  
Chromium: 142.0.7444.265  
Node.js: 22.22.0  
V8: 14.2.231.22-electron.0  
OS: Windows\_NT x64 10.0.26200

### For AI issues: which model did you use?

Composer 1.5

### For AI issues: add Request ID with privacy disabled

da084045-68dc-4a9e-ac32-fa5ef0d2d297

### Does this stop you from using Cursor

No - Cursor works, but with this issue

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [March 5, 2026, 11:31am UTC](https://forum.cursor.com/t/agent-rewrites-entire-file-every-time/153679/3 "2026-03-05T11:31:20Z")

</div>

2 posts were merged into an existing topic: [Laggy agent chat](https://forum.cursor.com/t/laggy-agent-chat/153629)

---

<div class="post-metadata">

**Author:** ![MidnightOak](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/midnightoak/32/77882_2.png) [@MidnightOak](https://forum.cursor.com/u/MidnightOak)\
**Post date:** [March 5, 2026, 10:30am UTC](https://forum.cursor.com/t/agent-rewrites-entire-file-every-time/153679/4 "2026-03-05T10:30:41Z")

</div>

I believe this has been reported many times in this thread

> [@Laggy agent chat](https://forum.cursor.com/t/laggy-agent-chat/153629):
>
> Hello Am i the only one who observed very bad performance since updating to today’s update on windows 10 ? I can’t seem to work in correct conditions due to strong IDE lags, i’m thinking of temporarily switching to sublime the time it’s solved (yes it’s that bad). I wonder if i’m the only one having this issue? Best

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [March 5, 2026, 11:31am UTC](https://forum.cursor.com/t/agent-rewrites-entire-file-every-time/153679/5 "2026-03-05T11:31:30Z")

</div>


