Iraq has agreed with Iran to exchange Iraqi food items for Iranian gas and energy supplies, two Iraqi government officials said on Wednesday.