Libya's warring factions have agreed on an "agenda" to form a unity government after two days of UN-brokered talks in Geneva, the UN said Friday.