All sides have agreed that North Korea would scrap its nuclear programs in exchange for energy assistance and other benefits .