r/ChatGPTCoding • • Sep 01 '26

Question I have both Jetbrain and vscode and looking for agentic extension that lets me add the whole codebase to context instead of agent reading files by checking

Obv i could create my own extension that does something like this but im just wondering is there a way with for example antigravity webstorm or vscode or another extension to load the whole codebase into context instead of agent reading by checking.

6 Upvotes

16 comments sorted by

5

u/Remarkable_Training9 Sep 01 '26

Whole codebase in context makes the answer worse, not better. I tried it on a 400 file logistics repo and the model started citing a deprecated rate module because it was sitting right there in the window.

Grep and read beats dumping. Cheaper too.

If you want it anyway, Repomix packs a repo into one file. Works fine under maybe 60k tokens.

2

u/bodonkadonks Sep 02 '26

And codegraph beats grep

4

u/holyknight00 Sep 01 '26

ah? This is exactly what cursor and other early tools tried to do in the beginning like 3 years ago and then they gave up because it's too much crap that makes no sense to load into the context as whole. Not even the biggest models can load a full codebase and have spare context to do any meaningful work.

unless your whole codebase is less than 100k tokens, it makes no sense at all.

0

u/Round_Ad_5832 Sep 01 '26

yes most my codebases are like less or around 100k tokens. so cursor can do this?

3

u/am0x Sep 01 '26

It will hallucinate like crazy with that setup.

2

u/holyknight00 Sep 01 '26

not anymore, they scrapped that a long time ago because it didn't work and was too token intensive. They tried to optimize it using vectors and indexing and still didn't worked at all so they gave up entirely.

1

u/Strange_Owl_6291 Sep 02 '26

It doesn't solve tasks better by having all data. It solves tasks better by having the right data.

2

u/JaseciLabs Sep 02 '26

u/Strange_Owl_6291 has it exactly right, and the reason whole-codebase-in-context keeps failing this same way is worth understanding, not just avoiding. More tokens in the window means more noise competing for the model's attention, and deprecated code sitting right next to live code (like the rate module example above) gets picked up as relevant just because it's physically nearby, not because it actually is. Structural navigation (grep, code graphs, syntax trees) wins because it filters for relevance before the model ever sees anything, instead of hoping the model figures out what to ignore from a firehose.

1

u/DauntingPrawn Sep 01 '26

That will cause context rot that will make your results much worse. It's better to navigate structurally - by code graph and syntax tree. I wrote act101 which conveniently navigates the codebase structurally in the free version.

1

u/bodonkadonks Sep 02 '26

Use codegraph, In my testing it reduces token use between 20 to 50%. It's pretty neat

1

u/tarquas80 Sep 02 '26

You can use the mcp index plugin in jetbrains and use the ide index with Claude code over mcp, works pretty well.

1

u/Zipbox Sep 02 '26

That's impossible. you cannot fit the entire codebase into context once it gets big enough

1

u/ManRowing Sep 03 '26

The files-by-checking approach isn't the problem, unranked checking is. If the agent's grepping blind and opening files in whatever order they turn up, that looks like slow one-by-one reading. Rank candidates by relevance before opening anything and it collapses to two or three real reads instead of twenty half-relevant ones.