@cas yes ollama would be the first comming to mind. I have tried a couple times and yet failed. You can build a RAG with it, hence make it understand your own code. The problem i had so far is, that its either to slow (bigger models) or too bad (little models). But i think it could be done, maybe i haven't found the right combination.