Auto-refine diffs, and add one color for deadline items in the agenda