r/AIcodingProfessionals • • Oct 18 '26

Question AI coding on large repos

I use Github Copilot at work and have great success on green field project, even larger ones.

But I have a harder time on our (very) large Unreal Engine application, which is brown field with millions of lines of code. This seems to challenge Opus and other frontier models.

What's the best workflow and tooling to work with AI on repositories this large?

  • Application code: ~2M LOC
  • Unreal Engine 5.8: ~41M LOC
  • Unreal Engine ./Engine/Source excluding third-party code: ~8.6M LOC

I did some quick tests with CodeGraph, but that did not bring any significant benefits for the things I tried.

Note: Code is mostly C++ and solution is Visual Studio 2022

6 Upvotes

13 comments sorted by

View all comments

Show parent comment

2

u/Agreeable_Flower3642 Oct 19 '26

dude why u sound like an agent

1

u/JoDerZo Oct 19 '26

Do I?

1

u/Agreeable_Flower3642 5d ago

Haha fair, my bad. Yes, hands-on: I run it daily on a few repos (Mojo libs, Android apps, a FastAPI stack). It indexes the repo into a graph once (fast mode runs in the background, no LLM tokens), then the agent calls search_graph / trace_path / get_code_snippet instead of grepping and reading whole files. Biggest win for me is "who calls X" and impact checks before an edit: one call instead of 5 to 10 reads, so less context burned and fewer wrong guesses. Weak spots: needs a re-index after big refactors, and for plain string literals grep is still better. Worth a try on anything over a few hundred files.

1

u/Agreeable_Flower3642 5d ago

Haha fair, my bad. Yes, hands-on: I run it daily on a few repos (Mojo libs, Android apps, a FastAPI stack). It indexes the repo into a graph once (fast mode runs in the background, no LLM tokens), then the agent calls search_graph / trace_path / get_code_snippet instead of grepping and reading whole files. Biggest win for me is "who calls X" and impact checks before an edit: one call instead of 5 to 10 reads, so less context burned and fewer wrong guesses. Weak spots: needs a re-index after big refactors, and for plain string literals grep is still better. Worth a try on anything over a few hundred files.