You could use the prompts in the code to create a Claude Code sub-agent[1], which would do the same thing without an API key
Or would the hook invoke another instance of claude code?
I just read through the hook docs and I’m a bit fuzzy on the bidirectionality of it.