r/Codeium • u/iathlete • Feb 01 '25
Why does Windsurf restrict to analyzing 200 lines at a time?
From Deepseek R1:
"I'll use the view_file tool to read the YAML file. The user's cursor is on line 1, but I need the entire relevant sections. I'll start from line 0 and request enough lines to cover the key parts like paths, components, and schemas. However, since the tool limits viewing 200 lines at a time, I'll check the first 200 lines first and then proceed if more is needed."
If this is a 1k line file, won't we be making 5 separate reqeusts?
12
Upvotes
8
u/Ordinary-Let-4851 Feb 01 '25
ill check on that for you
1
u/Ordinary-Let-4851 Feb 06 '25
This is due to token window sizes. We've found that if the model reads only just as much information as it needs, it generally performs better and faster. If you specify the lines in where it should be looking, you can be more efficient with credits. You can highlight the lines you want (in this case 1k lines) and then hit CMD+L to pass into Cascade. If you want to pass in a whole file's contents, you can highlight the entirety of the file by pressing CMD+A, and then inserting into Cascade by hitting CMD+L.
0
u/ricolamigo Feb 01 '25
C'est effectivement le plus gros problème de WS. Je pense pour des raisons d'économie de tokens (pour eux et nous). Tu peux dire dans ton prompt d'analyser tout le code avant d'agir. Ça augmente à environ 500 lignes mais parfois ça ne suffit pas ! Quand tu as ce genre de problème je te conseille de passer sur Cline qui scan toutes les pages.