But how do you dump your entire code base into Gemini? Literally all I want is a good model with my entire code base in its context window.
Re:Ask HN: Cursor or Windsurf?
by mark_l_watson on Monday May 12, 2025 @11:49AM
(#43964378)
I wrote a simple Python script that I run in any directory that gets the context I usually need and copies to the clipboard/paste buffer. A short custom script let's you adjust to your own needs.
Legal issues aside (you are the legal owner of that code or you checked with one), and provided it's small enough, just ask an LLM to write a script to do so . If the code base is too big, you might have luck choosing the right parts. The right balance of inclusions and exclusions can work miracles here.
Re:Ask HN: Cursor or Windsurf?
by halfjoking on Monday May 12, 2025 @12:34PM
(#43964888)
Repomix can be run from the command line
Re:Ask HN: Cursor or Windsurf?
by satvikpendem on Wednesday May 14, 2025 @03:11AM
(#43981731)
Cursor can index your codebase efficiently using vector embeddings rather than literally adding all your text files into context. Someone else mentioned machtiani here which seems to work similarly.
Re:Ask HN: Cursor or Windsurf?
by mark_l_watson on Monday May 12, 2025 @11:48AM
(#43964359)
I agree! I like local tools, mostly, use Gemini 2.5 Pro when actually needed and useful, and do a lot of manual coding.
I get much better result by asking specific question to a model that has huge context (Gemini) and analyzing the generated code carefully. That's the opposite of the style of work you get with Cursor or Windsurf.
Is it less efficient? If you are paid by LoCs, sure. But for me the quality and long-term maintainability are far more important. And especially the Tab autocomplete feature was driving me nuts, being wrong roughly half of the time and basically just interrupting my flow.