A memorandum of understanding to share information against Taliban which was signed by spy agencies of Pakistan and Afghanistan a day previously has been criticised by former Afghan president Hamid Karzai, who wants it to be cancelled.
Karzai reportedly said "he is deeply concerned" about the pact, calling for its immediate cancellation on Wednesday, according to the Afghan news agency.
The agency quoted a statement issued by Karzai's office as saying "such agreements are against the national interests of the country."
Pakistan's military announced the signing of the agreement between spy agencies on Twitter, saying it includes "intelligence sharing, complementary and coordinated operations on respective sides."
The deal came after Pakistani PM Nawaz Sharif's visit to Kabul last week, along with spy and army chiefs, promising better relations.
The Afghan news agency has also claimed that some current and former officials were angered by the pact, including Afghanistan's National Directorate of Security (NDS) chief Rahmatullah Nabil.
The two neighbors have long accused each other of supporting militants belonging to different but allied Taliban groups, but since Afghan President Ashraf Ghani's election victory relations between the countries have started to improve.
Local media has reported that the pact allows for the joint interrogation of suspects, training cooperation and coordinated operations against Taliban militants.