+1 on the vac leak. That would cause an erratic idle. Just run through and make sure all hoses are secure and are not cracked...I am wondering if it may have to do with the brake booster considering when your holding the brake at a light it seems to idle fine.