So "Where does this function get called from", "What does this function do?", "Rewrite this function as-is with better variable names", "Make a document outlining the structure of this project", or "Review this PR and watch out for any places that may be lacking the fix" are all reasonable things to ask of an AI.
When you're in a big project and aren't sure where this is supposed to go or how things get A from B, AI can be extremely helpful.
In which sector is your company active where this is allowed? Or do you run on your own infra?
Yes, I imagine this is trickier in more sensitive applications, but I'm sure this isn't a new concern. AWS has Private Cloud, surely you can get a LLM with whatever assurances a more sensitive project needs at this point. But in my current environment that's not really a concern, so I've not personally looked into it.
Nit: not all of those questions require statistical language models. IDEs like IntelliJ have been adept at syntactical queries and refactors for many years using purely deterministic data structures and algorithms.
Like if you have some code that's been intentionally obfuscated, or made by somebody who names everything "a", "b" and "c", a LLM is likely to be of at least some help.
And yeah, you can do things like finding all the places where func() is called, but a LLM can also be helpful in saying where something needs to be done, which is a much fuzzier task.
Usually, If you don’t know that, you shouldn’t modify the system either. Just because you know how to unscrew a bold, you shouldn’t go about removing the head cover of an engine. Locating the area of interest takes a lot less time than actually understanding how it integrate, the guarantees provided by other systems and the guarantees that it offers.
Modularity in software architecture. By reducing the links between parts of the code, it’s easier for someone else to navigate the system and answer these questions. But it does require careful design and caring about the code.
In my own projects I'm also quite capable of forgetting stuff. Double checking with a LLM whether I forgot about one of the more obscure corners doesn't hurt.
But, how is AI fixing this? Unless the perverse answer is: no one’s reviewing code anymore so I can just merge my technical fix.