The three major political parties have agreed to extend the term of the Constituent Assembly by a year, according to Nepali Congress Spokesperson Arjun Narsingh KC.

Prime Minister Madhav Kumar Nepal will resign as part of the deal, KC said. The three parties came to an agreement just an hour before the term of the Constituent Assembly was due to expire.

It is unclear when Nepal will hand his resignation. KC said he will resign at an appropriate time after paving way for a national government.

The meeting of the legislative-parliament, to vote on the extension, began 20 minutes before midnight on Friday. Maoist leader Dev Gurung and Sadbhavana Party leader Sarita Giri withdrew their parties' objection to the government bill seeking extension of the CA term.

UPDATE: The parliament has passed the government bill to extend the CA by 580 - 5 votes.