Spread about 2 1/2 tablespoons softened cream cheese across the middle of the dough; fold the bottom third of the dough over. Spread another 2 1/2 tablespoons cream cheese and 2 tablespoons pesto over the folded part, then fold the top third of the dough over the filling. Roll out again, cut into strips and twist into pretzels. Brush with beaten egg and sprinkle with coarse sea salt and dried basil; bake.
Photograph by Victor Schrager