Protein-based biosensors or activators have been engineered to visualize molecular signals or manipulate cellular functions. Here we integrate these two functionalities into one protein molecule, an integrated sensing and activating protein (iSNAP). A prototype that can detect tyrosine phosphorylation and immediately activate auto-inhibited Shp2 phosphatase, Shp2-iSNAP, is designed through modular assembly. When Shp2-iSNAP is fused to the SIRPα receptor which typically transduces anti-phagocytic signals from the 'don't eat me' CD47 ligand through negative Shp1 signaling, the engineered macrophages not only allow visualization of SIRPα phosphorylation upon CD47 engagement but also rewire the CD47-SIRPα axis into the positive Shp2 signaling, which enhances phagocytosis of opsonized tumor cells. A second SIRPα Syk-iSNAP with redesigned sensor and activator modules can likewise rewire the CD47-SIRPα axis to the pro-phagocytic Syk kinase activation. Thus, our approach can be extended to execute a broad range of sensing and automated reprogramming actions for directed therapeutics.Protein-based biosensors have been engineered to interrogate cellular signaling and manipulate function. Here the authors demonstrate iSNAP, a tool to detect tyrosine phosphorylation and activate desired protein enzymes allowing the control of phagocytosis in macrophages.