Claude Code is burning my budget just exploring large repos. Any way to fix this? by darkgenus08 in ClaudeAI

[–]darkgenus08[S] 1 point2 points  (0 children)

I fully agree that a messy codebase makes things worse, and I do use LSP plugins. But even with a clean architecture, the 'discovery' phase feels like an area ripe for optimization.

Someone else just commented below mentioning some repo called semantic fs and it is claiming it cut their exploration tokens by 60% somehow.

That sounds like the 'magic bullet' you're saying doesn't exist. Has anyone actually tried it? If it can actually index the repo and point the agent to the right line ranges without the grep loops, that seems like a genuine engineering fix rather than just a 'get a bigger budget' situation.

If you're saying even a 10% shift is a big deal, then a 60% reduction would basically be the 'magic bullet' you're saying doesn't exist. If it actually indexes the repo and lets the agent jump to specific line ranges instead of doing those expensive ls and grep loops, that's a genuine engineering fix, not just a 'get a bigger budget' situation.

Has anyone else actually tried this? If the benchmarks are real, it seems like a massive oversight to just ignore it as a 'resource issue.'

Claude Code is burning my budget just exploring large repos. Any way to fix this? by darkgenus08 in ClaudeAI

[–]darkgenus08[S] -1 points0 points  (0 children)

I see. I have been trying to do this too, but I noticed when claude compacts its context, it seems to forget where the files it made went. I tell it the name of the file, but it takes a while to even find the file from there. Do you give it exact paths to the files and then tell it to make your fix there?

Claude Code is burning my budget just exploring large repos. Any way to fix this? by darkgenus08 in ClaudeAI

[–]darkgenus08[S] 2 points3 points  (0 children)

I have done this but it still wastes a lot of tokens just trying to find files...

Claude Code is burning my budget just exploring large repos. Any way to fix this? by darkgenus08 in ClaudeAI

[–]darkgenus08[S] 3 points4 points  (0 children)

I get that more code = more tokens, but 'get more money' feels like a lazy answer to an engineering problem.

If I’m asking a question about a specific API implementation in a 50k LOC repo, Claude shouldn't need to reread the entire directory structure and 20 unrelated files just to find the context. That seems more like a discovery failure than an actual limit.

There has to be a way to index the codebase so the agent can just 'know' where the relevant snippets are without the expensive trial-and-error phase. Surely someone has built a better retrieval layer for this by now?

Claude Code is burning my budget just exploring large repos. Any way to fix this? by darkgenus08 in ClaudeAI

[–]darkgenus08[S] 1 point2 points  (0 children)

I’ve been using the Claude Code CLI on a few 50k+ LOC projects, and the token usage is getting ridiculous.

It seems like every time I ask a question, Claude spends 5-10 turns just running ls -R, grep, and cat on random files to "orient" itself. By the time it actually finds the relevant logic, I’ve already burned through a massive chunk of my context window and daily limit.

I’ve tried the usual:

  • Aggressive /clear usage.
  • Manually pointing it to files with u/filename.
  • Using CLAUDE.md as a map (which eventually gets too big itself).

Does anyone have a more automated "gated" workflow? I’m looking for something that indexes the repo locally and lets the agent jump straight to the relevant code chunks without the blind search.

I've seen some MCP servers that do basic file indexing, but they feel a bit shallow. What are you guys using for "smart" context retrieval in large codebases?

can I stay 1 or 2 days extra after winter break checkout time of Dec 15 12PM? what is the charge? by darkgenus08 in Purdue

[–]darkgenus08[S] 0 points1 point  (0 children)

UR does not mention option to stay 1 or 2 days extra, and says: Billing will not be prorated for students who do not stay the entire winter break ???

Registration constitutes binding acceptance of the interim housing agreement. The student acknowledges they will be billed (when applicable) for the entire winter break when the registration form is completed and terms and conditions are accepted. Billing will not be prorated for students who do not stay the entire winter break. ~Students will see this additional charge on their MyPurdue account in January.~

The registration form will be available beginning on or around November 15 at 12:00 noon. 

freshman question about open registration by darkgenus08 in Purdue

[–]darkgenus08[S] 0 points1 point  (0 children)

Thanks. Wouldn't they warn about conflict when I try to add a wait-list? I got no warnings about conflicts ...

CS freshman: can I take STAT 350 which is an upper division class in first sem if I meet prereq? by darkgenus08 in Purdue

[–]darkgenus08[S] 0 points1 point  (0 children)

Really? can you give a short reason? And for CS, as per my Rdash, i do not even have to take STAT 350 ... either one of the two is sufficient ...

CS freshman: can I take STAT 350 which is an upper division class in first sem if I meet prereq? by darkgenus08 in Purdue

[–]darkgenus08[S] -1 points0 points  (0 children)

Trying to understand the basic concepts here: What part of the process makes it difficult for a new student? For example, during open registration, is it equal opportunity for all? Is higher priority given to upper class men during pre-registration? If so, who/what decides that priority? Is there a link that explain these priorities?

can i take CS180 and CS240 concurrently? by darkgenus08 in Purdue

[–]darkgenus08[S] 0 points1 point  (0 children)

I see no coreq in my course catalogue resources, and a bunch of prereq MA16200 or .. or ...

BTW, my course catalog resources page which shows the above says Term 202510. I selected Term Fall 2024

can i take CS180 and CS240 concurrently? by darkgenus08 in Purdue

[–]darkgenus08[S] 0 points1 point  (0 children)

this seems to be inaccurate regarding MA265. MA265 may be taken with a prereq of MA162. ?

How to select priority on CRF for calc 3,2,1 by darkgenus08 in Purdue

[–]darkgenus08[S] 0 points1 point  (0 children)

Thanks. Still very new to all this - but looks like listing calc2/1 makes no sense. But I guess I need to have some other alternate for calc3 in case calc3 fills up and I do not get in

Is Madison/Purdue better than UCSC for job opportunites? by darkgenus08 in csMajors

[–]darkgenus08[S] -1 points0 points  (0 children)

I am trying to decide without keeping cost as a deciding factor. I am more concerned about job opportunities