Have you tried using a tool like 16x Prompt to send only relevant code to the model?
This helps the model to focus on a subset of codebase thst is relevant to the current task.
(I built it)
This helps the model to focus on a subset of codebase thst is relevant to the current task.
(I built it)
But I guess it could be interpreted differently like you said.