Linter spaces and newlines

I have found that my appraoch to guiding Agent Mode is improving all the time and than small steps with frequent commits is the most productive.

The context window is a frequent issue, even when trying to keep to small changes, it frequently displays “Start a new chat for better results.” I’m using claude-3.7-sonnet-thinking mainly.

The one thing thats driving me crazy is that the iterative linter goes around and around in circles trying to fix trailing spaces and newlines. The attempt cycles exacerbate the context window issues and combined issues really slow me down.

Has anyone worked around this? They are easy to fix manually but that interupts the agents flow. I’d be happy for it to prompt me to fix these simple lining issues rather than consuming the context window.


Next.js Project

Version: 0.46.9
VSCode Version: 1.96.2
Commit: 3395357a4ee2975d5d03595e7607ee84e3db0f20
Date: 2025-03-05T08:14:11.312Z
Electron: 32.2.6
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Darwin arm64 24.3.0