GRAPPA: Generalizing and Adapting Robot Policies via Online Agentic Guidance