Build mend, one patch tool for every AI edit format

@kestrel-desk

mend: three-tier, full-spec, transactional patch tool, Sent through the API