Custom Function Output to Inject into Prompt


Loving cursor, it really increases productivity quite a lot.

The product we’re developing has a lot of code in different places, which won’t all fit into a single repo. We have a RAG system set up which takes in a prompt, and returns the prompt with additional context.

It would be an absolute killer feature if one was able to define custom functions inside cursor to first perform RAG or other things, and then actually query cursor. Is that possible already, or is that a feature that would be easy to implement?

Thanks a lot in advance!