I worked on something similar but with a more naive text matching approach that's saved me many many times so far. https://github.com/sirmews/claude-hook-advisor
Yours is so much more involved. Keen to dig into it.
Yours is so much more involved. Keen to dig into it.