The Detroit Pistons have reached an agreement in principle with Stan Van Gundy to make him their new coach and president of basketball operations, according to sources with knowledge of the talks.