How do you solve the communication cut-off?

Claude 3.7 Sonnet Agent Composer on both 0.45 and 0.46 seems to have a force cut-off (force termination that makes the generation fails and exit) at composing long files at ~500 lines.

Do you experience the same phenomenon? If yes, how do you solve this problem?

ahm. Apply SRP and restrict files to 500 lines :slight_smile:

Wellt that may be unconventional for traditional DX where people used to write thousands of lines in a file which was bad for DX even then.

But yes, cursor team, please make larger files work. Specially with switch to Agent the files need to be up to 1k lines at times.

One of the issues is Curors internal merge model i think from forum posts and my own tests.

1 Like

I ran into this last night - while I enforce files having less than 500 lines for maintainability, there were a couple instances where I was working with claude to create new API connectors using schema definitions and it failed every single time to generate the file (in hindsight, the file would have been 1500~ lines). Instead I had to get claude to work in increments and break the functionality into more reusable, modular parts.

It’s not a big deal, as there is no way I would have wanted a 1500 line file for my own sanity. But it would have been nice to know the reason claude was failing so I didn’t waste 10 credits coming to the conclusion myself :slight_smile: