President Donald Trump met his top national security advisers on Friday as his team prepares to unveil an Afghanistan peace agreement with the Taliban that would help bring an end to America's longest war, according to a person familiar with the matter.

Among those discussing the matter with Trump at his resort in Bedminster, New Jersey, were Secretary of State Michael Pompeo and National Security Advisor John Bolton, the person said. The U.S. special envoy for the talks, Zalmay Khalilzad, will then present the plan to Taliban leaders in a new round of discussions in Qatar in the coming days, according to another person with knowledge of the discussions.

Khalilzad briefed analysts in Washington on the plan Friday. He has led the talks for months with the initial goal of cutting U.S. troop levels in exchange for guarantees from the Taliban not to allow terror groups such as Islamic State to infiltrate the country.

Afghan authorities have been largely sidelined in the process and the Taliban have escalated attacks in Afghanistan as the negotiations continue. The Taliban have so far refused to hold talks with the authorities in Kabul until it first reaches a binding deal with the Trump administration on withdrawing foreign forces.

Trump campaigned for the presidency on ending what he called endless wars and bringing American troops stationed overseas back home. But the fear that a rapid U.S. withdrawal might lead to chaos in Afghanistan has loomed over proposals to scale back. Even now, the Taliban control or contest about half the country's territory, more than at any time since it was ousted from power in 2001 by an American-led invasion following the Sept. 11, 2001 terrorist attacks.

In July, a report issued by the U.S. Special Inspector General for Afghanistan Reconstruction said Afghanistan's army remains seriously shorthanded, and the problem may be worse than anyone fully understands because payrolls are inflated by police who have resigned, been fired or died, with their salaries diverted to a group of conspirators.

The meeting with Trump also included Defense Secretary Mark Esper and Gen. Joe Dunford, the outgoing chairman of the Joint Chiefs of Staff, the person said. Garrett Marquis, a spokesman for the National Security Council at the White House, declined to comment.

Despite criticizing former President Barack Obama for telegraphing U.S. plans for troop draw-downs, Trump and his team have made no secret of their desire to get American soldiers out of Afghanistan as quickly as possible. In July, Pompeo was asked if the U.S. planned to reduce troops in Afghanistan before the 2020 presidential election.

"That's my directive from the President of the United States," Pompeo told David Rubenstein at the Economic Club of Washington. "He's been unambiguous: End the endless wars, draw down, reduce."

Pompeo later said there was "no deadline" for a troop withdrawal. The U.S. currently has about 14,000 troops in Afghanistan, and defense officials suggested late last year the administration was planning to withdraw about half of them as an initial step.

Trump has also come under pressure from members of his own party to maintain some troops in the country to make sure Islamic State, al-Qaeda and other terror groups don't spread there.

"Any peace agreement which denies the US a robust counter-terrorism capability in Afghanistan is not a peace deal," South Carolina Senator Lindsey Graham said in a statement Friday. "A bad agreement puts the radical Islamist movement all over the world on steroids."

