A terminal client for Tangled.

cli: refactor pr patch logic and handle missing repo records master