The warring parties in Sudan have reached an agreement to avoid harming civilians, but have made little progress on a ceasefire.