FWIW - that is what claude code does, at least how I use it. It uses the BashTool to call `gh`