You should wait to stir the basil when the pasta is ready. The heat will gently wilt the leaves while still preserving their flavor.