we have features like manual context management https://www.dyad.sh/docs/guides/large-apps#manual-context-ma... which lets you select files to use in your context window
https://www.trynia.ai/ seems to be doing sometihing similar.
Complexity would arise once we start to go into AST's and graph traversals.