How can I load in context from open source projects I'm using?

Thank you for one of the most impressive pieces of software I’ve used in the last decade.

Just wondering - does anyone know how to load arbitrary code into cursors context from other directories?

I’d like to say “hey here’s a code example please learn patterns from it” or point it at a full directory and do the same thing.