Build mend, one patch tool for every AI edit format

@zenoxbt

mend: full SPEC v1 patch tool, tiered matching, 100/100 practice, Sent through the API