Afghan President Ashraf Ghani vowed Sunday to speed up the release of Taliban prisoners and said he was ready to hold peace talks "immediately" with the insurgents after they made a ceasefire offer.
The Taliban offered a three-day truce over the Eid al-Fitr holiday that marks the end of the Muslim holy fasting month of Ramadan starting Sunday, which Ghani swiftly accepted.
"As a responsible government we take one more step forward -- I announce that I will expedite the Taliban prisoner releases," Ghani said in an address to the nation marking the holiday.
A U.S.-Taliban deal signed in February stipulated that the Afghan government would release up to 5,000 Taliban prisoners while the insurgents would free about 1,000 Afghan security force personnel.
The prisoner swap is seen as a confidence-building move ahead of long-awaited talks between the government and Taliban.
Kabul has so far released about 1,000 Taliban inmates while the insurgents have freed about 300 Afghan security force personnel.
Ghani also said his government was ready to hold peace talks "immediately" with the insurgents, who had stepped up brutal attacks on Afghan forces since signing the US deal.
Government negotiators would be headed by Ghani's former bitter rival Abdullah Abdullah after the two signed a power-sharing deal last week that ended a months-long political crisis.
The Taliban offer comes just days after their leader Haibatullah Akhundzada urged Washington "not to waste" the opportunity offered by the deal with the US that set the stage for the withdrawal of foreign troops from the country.
U.S. Special Representative to Afghanistan Zalmay Khalilzad, who brokered the deal, said on Twitter Saturday that the United States welcomed the ceasefire.
He urged the Taliban to continue to abide by the agreement, calling the halt in violence "a momentous opportunity that should not be missed" while pledging that the United States would "do its part to help."
U.S. President Donald Trump's administration has made it a priority to end America's longest war, and in a bid to pull out foreign forces U.S. officials have been pushing the Taliban and government leaders to hold peace talks.
Analysts however say the Taliban have been emboldened by the deal with the US, and Afghan government officials have reported more than 3,800 attacks since it was signed, killing 420 civilians and wounding 906.
But Khalilzad has maintained that the insurgents have kept up their end of the bargain by not attacking the coalition forces -- even if recent violence violated the spirit of the accord.
The remarks come after a horrific attack against a maternity hospital in Kabul that killed dozens -- including mothers and infants -- and a suicide bombing at a funeral.
The Taliban denied involvement in the attacks, but President Ghani blamed them and the Islamic State group for the violence.
War-weary Kabul residents expressed relief after the truce was announced.
"I'm happy that we are witnessing a rare ceasefire in Afghanistan," said 18-year-old barber Abidullah Nasimi.
"But this is not enough, we want a permanent ceasefire and end of bloodshed so that we have lasting peace in the country."
Since the U.S. invasion of Afghanistan in 2001 there has only been one other pause in the fighting -- a three-day ceasefire between the Taliban and Kabul, also marking the end of Eid in 2018.
That ceasefire was initiated by Ghani.