Some ide’s already have this. In zed you can stick it “ask” mode.
Being able to use it as a rubber duck while it can also read the code works quite well.
There are a few APIs at work I have never worked on and the person that wrote them no longer works with us so AI fills that gap well.