Question: idle is going up and down?
Answer: Most likely you have a clogged (or failing) idle air control valve. Take it out, clean it, put it back… should solve the problem. There's a disconnect between the amount of air the computer thinks your engine is getting and the amount it's really getting, so it keeps trying to correct itself and almost dies/comes back.