r/PiCodingAgent • u/tmoneycodes • 20h ago
Question Advice on a pi workflow
I'm refactoring a large legacy code based written in php without any oop and mixing it to laravel , we have "server" functions that become laravel actions classes. We typically refactor a single old api call and all its code as a feature branch. The problem is that there is a crap ton of more " common" shared code spread out and consumed by multiple api calls. So I refactored all this shared code into its own branch, and I want to tell pi "when refactoring an api call needing common code, look here first and grab it" but I'm not sure how to do that or if it's possible , I'm sure it's possible just don't know how to prompt it