A landmark peace conference between the Taliban and influential Afghans, including government officials, has agreed a "roadmap for peace" that could hasten the end of the 18-year war.
A statement called for an end to civilian casualties and the protection of women's rights within an "Islamic framework".
The non-binding agreement comes as the US and Taliban continue to negotiate an American withdrawal.
The US toppled the Taliban in 2001.
A seventh round of talks between American negotiators and the insurgents is expected to resume later on Tuesday. They hope to reach an agreement that would see US troops pull out in return for a commitment that Afghanistan would not be used as a base for terrorism.
The Taliban are refusing to hold direct negotiations with the Afghan government until the US announces a timetable for the withdrawal.
But the two-day conference in Qatar, which saw senior Afghan officials attend in a personal capacity, is seen as having laid the ground for formal talks in the future.
"Afghans meeting with the Taliban was a big success," US lead negotiator Zalmay Khalilzad told reporters on Monday.
"It's not an agreement, it's a foundation to start the discussion," Mary Akrami, executive director of the Afghan Women's Network and a delegate at the conference, told the AFP news agency. "The good part was that both sides agreed."
The so-called roadmap for peace is based on conditions including the repatriation of displaced people and "zero interference" from regional powers. The joint statement stressed that Afghanistan was "suffering daily".
"Afghanistan shall not be the witness of another war in the country and [an] intra-Afghan agreement between different levels of the society is vital and crucial," it said.
More than 45,000 members of the security forces have been killed in the conflict in the past five years. In just the first three months of this year, 581 civilians were killed and nearly 1,200 injured, according to the UN.
The commitment that both sides would reduce civilian casualties to zero and avoid attacks on schools, hospitals and markets came a day after a Taliban car bomb targeting a government building in the town of Ghazni killed 14 people and wounded many school children.
An Afghan government air strike in Baghlan province on Monday is also reported to have killed seven members of a family, sparking protests on a major highway. The government said it was investigating.