can’t you just make agent hooks that do this with plain git?