With one of the first new homeless shelters in Mayor Bill de Blasio’s homelessness policy set to be built in Brooklyn’s Bedford-Stuyvesant neighborhood, the mayor had to expect some pushback at his Bed-Stuy town hall Thursday night. But who would have thought the loudest critic would be Brooklyn Borough President Eric Adams?

Standing just feet from de Blasio, but never looking at him, Adams immediately attacked de Blasio’s new homelessness policy after town hall co-host City Councilman Robert Cornegy handed him the mic.

“I don’t agree with the plan as it’s laid out,” he said. “And the mayor’s a friend, but you know I’m candid on my analysis.”

Adams hedged his criticism somewhat in the passionate, five-minute speech, giving credit to de Blasio for having a plan at all. But he invited town hall attendees to “join me at Borough Hall” to “come up with our own community plan.”

Adams’ critique could be a harbinger of neighborhood opposition to building of 90 new homeless shelters. Notably, Adams is a de Blasio ally. The one-time rumored mayoral candidate endorsed de Blasio for re-election back in November.