Confirm the commercial relationship first
Decide whether the developer is invisible, introduced as a technical partner or allowed direct contact for a defined purpose. Put those boundaries in writing before client communication begins.
The agency should remain the owner of pricing, account strategy and relationship decisions unless another arrangement is explicit.