This agreement is supposed to prevent these people from coming across the border into Afghanistan, from attacking Pakistani military, and, in general, it's supposed to be a cease-fire on both sides.
NPR: Pakistan and Afghan Presidents meet to Discuss Security