Hey, could the tool do this itself? Like using code embeddings?

https://www.trynia.ai/ seems to be doing sometihing similar.

very interesting - when we ship MCP support you should be able to use nia!

How about local support? First draft is simple enough to implement: chunk => embed => store. And then one simple lookup function.

Complexity would arise once we start to go into AST's and graph traversals.